How come when i load up my .obj file in java 3d it loads up with no color? Is there any other type of file that java can load up and it will display the color?
thanks very much.
> How come when i load up my .obj file in java 3d it
> loads up with no color? Is there any other type of
> file that java can load up and it will display the
> thanks very much.
This is the best way I've found: Download a program called [b]AccuTrans3D[/b], load your model into it, mess about with the colours(yes, I'm British) and even textures if you want, and then save it as a new .obj file. Java should then be fine with loading the object into a scene with all it's material attributes applied.
Here's a tip though: I've found that the objects always appear too bright so, if you think you have the same problem, make sure you 1) turn down shininess to 1.0 and 2) set specular colour to black(seems stupid I know).
The easiest way to add colors to an .obj file is to add usemtl lines in it.
Please see the message https://sourceforge.net/forum/message.php?msg_id=4565941 for detailed instructions.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.