How to get the texture of obj files

Started by alex, April 08, 2009, 09:42:01 AM

Previous topic - Next topic

alex

My program used *.obj files.
in the document of the jpct ,I found out the method readTextureNames3DS(java.lang.String filename)  in Loader Class .
if i load *.obj files, Loader class have no suitable method likes readTextureNames3DS() ?

please give me some suggestion.Thank U.

EgonOlsen

The texture names are located in the .mtl-file you provide (IF you provide one). It should be easy to load that and parse it for the names, it's plain ASCII.

alex

Oh! I know .
I forgot the mtl files ,Thanks!