I have found may tutorials on loading an obj, but nothing on how to load it and use it with java, anyone have links to any useful tutorials?
The closest that I could find were:
Keep in mind that JOGL is a very low-level API. Some of the higher-level APIs (JMonkeyEngine, and Java3D) have sophisticated APIs built in for handling this sort of thing. With JOGL, you will be doing much of the work yourself. Obviously, there are advantages and disadvantages to each approach.
Not a tutorial, but how about some sample code? Unfortunately it uses the "Fixed Function Pipeline" rather than using the new "do everything with shaders" approach, but I like to think the code is clear.
http://darksleep.com/oObjLoader/
Also, I should note that it does use VBOs and not direct rendering or display lists, so it is fairly efficient.
来源:https://stackoverflow.com/questions/775648/loading-an-obj-with-jogl