CHAI3DCHAI3D

normal Loading mesh along with texture

More
20 Aug 2016 00:19 #1

Hi

I am new to this mesh modelling.

Is there a way that i can load mesh object along with the texture rather than assigning the texture to the mesh object in the code.
Because i see in the example-21 object, the object loaded is Leica.3ds and no texture is loaded in the program, which means the texture is loaded/present in 3ds file(.3ds documentation also says that).

But when ever i use blender and export it to 3ds file. It always white(may be its default) in color, no texture is applied. And the transparent parts of the object appeared as opaque in chia3d.

I also used
camera->setUseMultipassTransparency(true);

I am not sure if i am doing it currently or not, any suggestions on this ?


Thanks

Please Log in or Create an account to join the conversation.

More
21 Oct 2016 20:28 #2

Please try using the OBJ file format. Make sure not to copy the material and texture files with the OBJ file. The same applies to the 3DS format. If you look at example 21-object you will notice that the Leica camera object contains texture maps.

Please Log in or Create an account to join the conversation.