Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
change a texture in runtime

Registered User
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.


Create reply:

Posted by: (you are not logged in)

Enter the missing letter in: "Interna?ional" (you are not logged in)




Possible Codes

Feature Code
Link [url] [/url]
Bold [b]bold text[/b]
Image [img][/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]



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