I see that one of the most often asked questions for JOGL is where can I get model loader or is there any example code for doing
I am in the process of writing a few loaders and utilities for JOGL (JSR-231) which will be used in my personal java.net project JGLMark.
JGLMark (https://jglmark.dev.java.net/) is open source and I intend it to be a Java OpenGL benchmark.
I will make regular update posts here as I progress with the loaders and utlities in hopes that I can receive FeedBack from the community on them and so that I may best optimize them as well as give something back to help improve the community as a whole.
I am also always looking for good help to join the JGLMark team as well…
NEW
I have ported some of the RedBook examples to JOGL (JSR-231), additionally I am adding some examples using the code snipets throughout the book which were never formed into full .c examples. An example is the primitives from chapter 2, the primitves are explained and there are a few code examples of them but nothing as a full example. For more info see below…
So on to the good stuff…
The code can be downloaded from JGLMarks Downloads section here:
https://jglmark.dev.java.net/servlets/ProjectDocumentList?folderID=5582&expandFolder=5582&folderID=0
The Main Entry point is GLDemoApp. For now to fire up the different Listeners, modify this line:
canvas.addGLEventListener();
The Code thus far:
PACKAGE---------------------------------------------------------------------------------------------------------------------------------------------------
GL.JOGL
Textures
Status: Done
Listener: SimpleTextureListener
Dependent Utility Classes: none
Desciption: Example of loading and using Textures in JOGL (JSR-231)
GLSL
Status: Done
Listener: SimpleGLSLListener
Dependent Utility Classes: GLSLShaderUtil
Desciption: Example of loading and using GLSL Vertex and Fragment Shaders in JOGL (JSR-231)
JOGL OBJ Model Loader
Status: In Progress
Listener: SimpleOBJModelListener
Dependent Utility Classes: OBJModel, OBJModelVBO
Desciption: Example of loading and using OBJ Models in JOGL (JSR-231)
So Far I have implemented loading and handling of:
- Vertex data
- 3D texture coordinate data
- Normal Data
- Load models using Vertex Arrays (OBJModel)
- Load models using VBO’s (OBJModelVBO)
- draw the model
TO BE DONE… - Implement support for OBJ Groups
- Implement support for OBJ Materials and Textures
- Implement support for OBJ Mesh Smooth Groups
Vertex Buffer Objects (VBO)
Status: Done
Listener: SimpleVBOListener
Dependent Utility Classes: none
Desciption: Very Simple Example of using VBO’s in JOGL JSR-231
Lighting and Materials
Status: Done
Listener: LitTeapotListener
Dependent Utility Classes: OBJModelVBO
Desciption: Very Simple Example of using Lighting and Materials in JOGL JSR-231
PACKAGE---------------------------------------------------------------------------------------------------------------------------------------------------
GL.LWJGL
Textures
Status: In Progress
Class:
Dependent Utility Classes: none
Desciption: Example of loading and using Textures in LWJGL
GLSL
Status: In Progress
Class:
Dependent Utility Classes: GLSLShaderUtil
Desciption: Example of loading and using GLSL Vertex and Fragment Shaders in LWJGL
LWJGL OBJ Model Loader
Status: In Progress
Class: OBJModelDemo
Dependents Utility Classes: OBJModelVBO
Desciption: Example of loading and using OBJ Models in LWJGL
So Far I have implemented loading and handling of:
- Vertex data
- 3D texture coordinate data
- Normal Data
- Load models using VBO’s (OBJModelVBO)
- draw the model
TO BE DONE… - Implement support for OBJ Groups
- Implement support for OBJ Materials and Textures
- Implement support for OBJ Mesh Smooth Groups
Vertex Buffer Objects (VBO)
Status: In Progress
Class:
Dependent Utility Classes:
Desciption: Very Simple Example of using VBO’s in LWJGL
NEW
OpenGL Programming Guide (RedBook) examples as well as code snipets from the book formed to full examples
Status: In Progress
Package: RedBook.zip
Please post or Email me your suggestions, feedback, and or if you’d like to volunteer to help the effort/Join the JGLMark team.