Log in or register to post comments

Texture problem

July 18, 2012 - 6:02pm #1

Hi!

 

I replaced the teapot with a cup noodles. Now, I would like to know how to change the texture of the lid of the cup noodle. or simply how will I change the texture of my new 3D model? Hoping for your response. Thanks! I have no idea how to change it.

Texture problem

July 18, 2012 - 7:23pm #3

Thanks for your reply!!!! it is greatly appreciated!!! =)

 

Texture problem

July 18, 2012 - 6:20pm #2
  1. Add the texture images to the assets folder.
  2. In the main activity class (e.g. ImageTargets.java) find the loadTextures() method. Add additional calls to mTextures.add for each of your image files. Note that the order in which the textures are added determines their order in the native texture array.
  3. In the native renderFrame() method (e.g. in ImageTargets.cpp) find the point at which the texture object is obtained (textures[textureIndex]). Change the texture index to select the desired texture. The indices start at 0, where index 0 is the first texture added in the loadTextures() Java method.
Log in or register to post comments