I created a 3 d model in 3ds max and converted it in to .h format using a perl script. While creating 3d model i added materials and textures over the model. But when i use that model in my imagetarget program all those textures and materials are made hidden by the texture defined in that code and the model becomes single coloured. I want to retain the materials and textures which was added to 3 d model while creating it.please help me to do that
Re: queation related to texture
You can add your own texture images to the project's "assets" folder. Then, if you're using one of our samples, you can load them in Java in the loadTextures method (e.g. in ImageTargets.java). Finally, you need to bind the texture in the native renderFrame method (e.g. in ImageTargets.cpp):
const Texture* const thisTexture = textures[textureIndex]; glBindTexture(GL_TEXTURE_2D, thisTexture->mTextureID);
Note that textureIndex is defined by the order you added textures in the loadTextures method (with 0 being the first one).
I recommend using a single texture per model, otherwise you'll need to break your model into texture groups and render each group separately.
Are you sure you want to delete this message?
Are you sure you want to delete this conversation?