Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
change a texture in runtime

cosmo
Registered User
Quote
2014-05-02 11:38:56

How to smoothly change a texture of a model from one to another?
Simple approach:

b1.getMaterial(0).Tex1 = engine.getTextureManager().getTexture("newtexture.jpg", true);
in runtime makes my model blink even when "newtexture.jpg" is already loaded.

EDIT: my error. The texture was not loaded. When it is loaded there in no blink.

Mariusz


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inte?national" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact