By Binjam
on Fri, 04/05/2013 - 07:51
Hi,
i change the sourceCode of ImageTargets.cpp to get my own 3D Model.
with mymodelVerts, mymodelNormals, and myModelTexCoords.....
I also put the pictures (png) in the assets folder.
When i start my 3d model after running ndk. I see my modelĀ with the textures of the Teapot.
What did i wrong?
I made UV Mapping with Blender.
Changing Texture in ImageTarget Sample
Hi,
in the renderFrame() function in ImageTargets.cpp, you can find this code:
Changing Texture in ImageTarget Sample
Hi,
i made:
Changing Texture in ImageTarget Sample
What is the width and height of your textures ? (myone.png, etc.);
on most devices you need to use power-of-two sizes, i.e. acceptable sizes are for instance 128 x 128, or 256 x 256, or 512 x 512, or 512 x 256, 256 x 128, etc...
That could explain the black effect..
Changing Texture in ImageTarget Sample
Hi Alessandro,
now i changed the size to 128 * 128.
And i saw the first png its blue.
But i have 4 Colors.
How can i put 4 colors to my model?
Changing Texture in ImageTarget Sample
How can i put 4 colors to my model?
Not sure what exactly you mean; a texture is an image which can contains thousands of colors... can you clarify ?
Changing Texture in ImageTarget Sample
I put 4 png Files in the assetsFolder, each of them are in an other color ( yellow, blue, red, green). Like = red.png, blue.png......
And i want to set each color to one side of the Cube. Like i made it in Blender with UVMapping.
Changing Texture in ImageTarget Sample
Hi,
now i made my 3D Model UV Mapping with just one png includes all 4 colors.
I just use one png in the sourceCode and it works.
I think i have to think in an other way for UV Mapping :-)
Thanks
Changing Texture in ImageTarget Sample
Glad that you managed to sort it out!