JOGL-ES Ch. 2 Online: Loading OBJ Models

Dear All,

I’ve just added a second chapter on JOGL-ES (JSR-239) to the Pro Java 6 3D Game Development website at http://fivedots.coe.psu.ac.th/~ad/jg2/. It’s called “JOGL-ES Chapter 2. Loading OBJ Models”.

This chapter’s about how to load OBJ models into a 3D scene. The trick is to translate the OBJ format into a series of arrays and variables which JOGL-ES can process.

Comments are appreciated.

  • Andrew

Would the discussion in this chapter be helpful to someone who is attempting to learn how to read an obj file into a normal JOGL program? I have been studying JOGL for some time and have reached the point of starting work on my application that I want to write and one of the main tasks I need to do is to be able to read files from software tools like Autocad or Lightwave that write out these type of .obj or other cad type geometry files.

eddiegene,

This technique should work in JOGL, but I’ve not tested it.

You might prefer to use my OBJ loader written for JOGL, which is the main topic of the third chapter on JOGL at my Pro Java 6 3D Game Development website, http://fivedots.coe.psu.ac.th/~ad/jg2/. It’s chapter 17, Picking on the Models.

  • Andrew