Forum for discussion on 3D games for mobile platform and doubts related to M3G, Mascot capsule and other rendering engines.
I want to know how to change texture of a object by code. For an example suppose I want to add several textures to a single m3g object each time (like dresses of a player should change according to the country they belong). Please can some one show me a path to do this...
- Posts: 4
- Joined: Tue May 04, 2010 8:02 am
- Code: Select all
model.getAppearance(0).setTexture(0, new Texture2D(new Image2D(Image2D.RGB, /* Image */)));
(or Image2D.RGBA etc
- Posts: 24
- Joined: Wed Jul 09, 2008 10:36 am
- Location: Czech republic
Return to 3D Mobile Game (M3G)
Who is online
Users browsing this forum: Google [Bot] and 1 guest