JOGL Loaders

Hello,

I am have some questions and problems with the loaders already available. The MD3 loader works perfectly for the Lara model included with the loader, but if you download MD3 models from PolyCount they don’t work because of naming issues … don’t know if someone fixed this already to be more widely available ?

Euh has someone already made a loader for the .pk3 which uses the md3 loader … ? Has the obj and 3ds loaders already been ported to JOGL … ?

Would be easy to know if someone already did this, else I’ll start on them later tonight cause I am need of one …

.pk3 is just a .zip file so you should be able to use standard zip archive classes to open them, no need for a specific loader :slight_smile: Either that or i missed your question…

I’m the author of the jogl .md3 port, I’m gonna try some other model and I’ll get back to you :slight_smile:

Great thanx … !

Then I’ll do the OBJ loader tomorrow. Will post it here later than.

Here is a general 3ds loader: http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=share;action=display;num=1061796369

I wrote an OBJ loader for Xith3D a few days ago but I don’t suppose that would work in your scenegraph? If you’re interested in the source its at:

http://www.newdawnsoftware.com/resources/xith3d

<two_cents>
Although this brings up another point, these “JOGL Loaders” are just going to end up being example code right? The actual loading of the data file will be reusable but the rendering won’t be?

The general 3DS loader above looks really good, but the source is provided :frowning: However, I think that library takes the right approach, seperating the loading code from the renderer completely. This gives an actual nice reusable code base.
</two_cents>

Kev

So is there an “official” place where we can archive this kind of utility classes? It’s silly having to go over lots of forum messages hoping to find a download link somewhere.

This way people new jo JOGL can see what kind of “extras” are available besides the official package. And it also shows how “alive” this community is.

It would be great if someone would volunteer to collect many of these ports into separately compilable units for inclusion in the demos.util package of the jogl-demos project.

Here is obj loader … the loader is based on the gametutorials.com one, but heavely changed so it feels more “Java”. I also added a small test program ObjTester.java so you can see you to use it … actually it is very simple. In the contructor make a ObjLoader. Load an .obj file and extract the model from it. Add materials if you want (will make a mtl loader later I think which is mostly added to the obj file for material information) and in the init method, call init on the model to load the textures and then simply call model.display(gl) to draw it …

Works for the bone obj included with the GameTutorials.com tutorial, but haven’t tested it yet on other obj … if someone could it would be great.

Here is the link:
http://studwww.ugent.be/~kterelst/obj.zip

Btw, you need the classes from the common package of Pepijn … !

Will work on it later, because you few things don’t feel right at the moment, and will also try to do the 3ds loader the same way if you like this … let me know, plz.

[quote]So is there an “official” place where we can archive this kind of utility classes? It’s silly having to go over lots of forum messages hoping to find a download link somewhere.

This way people new jo JOGL can see what kind of “extras” are available besides the official package. And it also shows how “alive” this community is.
[/quote]
And this is exactally why for Xith3D we have the Xith Toolkit (https://xith-tk.dev.java.net/) ;D perhaps a jogl one would be in order?

It’s good because it gets the otherwise disjoint utilities organised.

Will.

[quote] And this is exactally why for Xith3D we have the Xith Toolkit (https://xith-tk.dev.java.net/) perhaps a jogl one would be in order?
[/quote]
This would be a very good solution yes, but barring that I’ll settle for a categorized code-archive where you can search for and download usefull classes/code-snippits.