How To Load Texture For Meshes (not A3d Object!) In Renderscript?
I have been creating meshes using equations, but applying texture seems to be an issue. I have created a cube and cylinder but when texture is applied, the texture is not getting
Solution 1:
Texturing these meshes is definitely possible. It likely isn't the only solution to your problem, but one reason you are not getting any texturing of the cylinder is that you never declare texture coordinates for that mesh when you create it. You are for the cube though so just transfer that method over. As for why the texture is not showing up, I don't see anything immediately wrong with your code. What is the GLSL code for your custom shaders? Is it the same as from the MiscSamples example? What about your definition for setupCustomShaderLights() and loadTextureRGB()? Are they also the same from the example code?
Post a Comment for "How To Load Texture For Meshes (not A3d Object!) In Renderscript?"