3ds loader and drawer using JOGL

Hello.

I DESPERATELY need a way to load and draw 3ds files using JOGL. I’ve searched this entire forum, and the only three threads that aparently could solve my problem are unavailable…

I don’t want to use JID ou XITH or any other API, just plain JOGL.

I’ve tried to extract from the APIs above the classes to load and draw the 3ds files, but it is way too difficult to separate what I need…

Or else, do you sugest me to change the 3ds files to some other format? Is it easier to make my own 3ds loader and drawer based on C++ code (I didn’t wat to do it, but if there isn’t another way…)

CAN ANYONE HELP ME??? I NEED TO LOAD AND DRAW 3D MODELS IN MY JOGL PROGRAM!!!

I’m sorry I can’t help you much with factual details, but I believe most programmers who are serious about using 3DS for their models, just write a custom export plugin (or whatever it is called) in 3DS, so you can save it immediately in your own, propietary format.

If that’s not an option, consider exporting to ASE, it is a text-based format. I’ve heard it’s not entirely bug free, but you might have better luck writing a class to parse that.

This is an example of why I created this thread --> http://www.java-gaming.org/forums/index.php?topic=14021.0

Ok, but I thought that, being the 3ds format so popular, someone in the world might have had the same problem of loading and drawing them using plain JOGL…

Aparently, someone had this problem befor me. They are

http://www.java-gaming.org/forums/index.php?topic=3297.0
http://www.java-gaming.org/forums/index.php?topic=2306.0
http://www.java-gaming.org/forums/index.php?topic=2687.0

Unfortunately, the links with the solution are unavailable in the moment…

Does anyone have the contents of those links?

Thanks

I don’t know wheter I made myself clear in the post above: each one of the links I put above contains a link with a solution for my problem which is in this very forum, but these links are unavailable due to forum maintenance…

Does anyone know when they’ll be available? I really need that answer…

Check this out. http://www.ruleinhell.com/JBamfViewer.html
It loads a bamf format model.
you can get bamf import/export for milkshape here http://www.ruleinhell.com/utilities.html
milkshape can import 3ds
hopefully the viewer works, i only have the windows and linux natives up

Thanks a lot.

I will take a look at it and post here whether it is the answer to my question or not.

Thanks again :wink:

Hi,

Check out spacesimulator.net:
http://www.spacesimulator.net/tut4_3dsloader.html

One of the examples includes a 3ds loader written in c++.
The conversion should be fairly straight forward.

Good Luck

Thanks again. I will take a look at it.

As soon as I get an answer, I will make it available.

;D

Try this…

http://bellsouthpwp2.net/g/r/greg_rodgers/3ds.zip

That’s a really nice little library you’ve got there… you should think about making it a bit more pluggable, ie: pluggable renderer, etc

Nice work.

Thanks a lot!

It looks like it is exactly what I’ve been looking for…

Seconded that this looks like a nice, self-contained library. You might want to contact eteq about including it in the new joglutils project.

Since there is interest in this loader, I cleaned it up a bit and included a sample app that uses it. I took Kramer’s advice, but instead of making it pluggable I made it more easily extendable.

Ken, I sent eteq an e-mail.

http://bellsouthpwp2.net/g/r/greg_rodgers/Test3DS.zip

Glad I could help.

Wow, thanks a lot! :smiley:

I hope I can repay ya all in the future :wink:

Apparently there is a problem… it loads perfectly the globe in the example program, but my 3DS model it does NOT load.

Apparently, it stucks at the public boolean load(String file), in the first command.

I know there are no problems with my model, for I made it in a 3D program…

Any sugestions? Do I need to publish my 3ds model?

Tiago

Maybe you can try 3DzzD

here is an online studio :
http://dzzd.net/?page=DzzDOnlineStudio&action=ouvrir

the online studio may have some trouble to load some mode as it use a one years old API… wich have some bugs.

and here you can download the lastest API with some sample source code:
http://dzzd.net/

I didn’t make any works on it since some monthes but i will …

EDIT: sorry i just read your first post that said “… no API just plain JOGL…”

Thanks anyway, but I think I’ll switch to obj files. I will write a loader myself, and, when I do, I will post it here.