Hey all!
I'm a newbie @ Java3D - just learning it. I need to load an OBJ file to view the model. After googleing it, I keep getting sent back to this code:
http://www.java2s.com/Code/Java/3D/ObjectFileLoader.htm
I managed to make it run on my comp, though I'd like to post a few questions...
1) is there an smaller, more basic code for this problem, that is easier for me to understand and learn from? I don't need
applet and such..
2) I'm trying to load different OBJ files with this code, namely the following:
2.a) GoogleSketchUp .dae -> converted to OBJ with MeshLab -> RESULT: OBJ file,where the basics are TRIANGLES 2.b) 3D Studio Max -> converted to OBJ with 3ds -> RESULT: OBJ file, TRIANGLES 2.c) 3D Studio Max -> converted to OBJ with 3ds -> RESULT: OBJ file, POLYGONS 2.d) Blender -> converted to OBJ with blender -> RESULT: OBJ file, TRIANGLES 2.e) Blender -> converted to OBJ with blender -> RESULT: OBJ file, POLYGONS
Overall result: the above linked code can load every OBJ, except the first type (2.a) ). Of course, that would be the one I'd like to work with...
I was studying the code however, and got eyes on this piece of it:
I think this is where the problem lyies, but not sure what is it..
Any idea, observation is appreciated!