Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  3ds loader and drawer using JOGL  (Read 3392 times)
0 Members and 2 Guests are viewing this topic.
Offline trcsilva

JGO n00b
*

Posts: 9



« on: 2006-07-18 15:00:17 »

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?Huh  I NEED TO LOAD AND DRAW 3D MODELS IN MY JOGL PROGRAM!!!!!!!
Offline bahuman

Full Member
**

Posts: 145



« Reply #1 on: 2006-07-18 17:25:39 »

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.
Offline crash0veride007

JGO n00b
*

Posts: 40


ThE MaTriX HaS YoU!


« Reply #2 on: 2006-07-18 20:49:32 »

This is an example of why I created this thread --> http://www.java-gaming.org/forums/index.php?topic=14021.0
Games published by our own members! Go get 'em!
Offline trcsilva

JGO n00b
*

Posts: 9



« Reply #3 on: 2006-07-19 13:37:04 »

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
Offline trcsilva

JGO n00b
*

Posts: 9



« Reply #4 on: 2006-07-24 13:52:48 »

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....
Offline coldlamper

JGO n00b
*

Posts: 12



« Reply #5 on: 2006-07-24 17:17:40 »

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
Offline trcsilva

JGO n00b
*

Posts: 9



« Reply #6 on: 2006-07-25 21:50:37 »

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
Offline ahaniff

JGO n00b
*

Posts: 1



« Reply #7 on: 2006-07-25 22:28:07 »

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
Offline trcsilva

JGO n00b
*

Posts: 9



« Reply #8 on: 2006-07-26 15:51:05 »

Thanks again. I will take a look at it.

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

 Grin
Offline rodgersgb

JGO n00b
*

Posts: 43



« Reply #9 on: 2006-07-27 00:25:03 »

Try this...

http://bellsouthpwp2.net/g/r/greg_rodgers/3ds.zip
Games published by our own members! Go get 'em!
Offline Kramer

JGO n00b
*

Posts: 11



« Reply #10 on: 2006-07-27 22:59:58 »


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.
Offline trcsilva

JGO n00b
*

Posts: 9



« Reply #11 on: 2006-07-28 15:07:41 »

Thanks a lot!

It looks like it is exactly what I've been looking for...
Offline Ken Russell

JGO Kernel
*****

Posts: 3446
Medals: 3


Java games rock!


« Reply #12 on: 2006-07-28 15:26:49 »


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

JGO n00b
*

Posts: 43



« Reply #13 on: 2006-07-30 00:00:22 »

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.
Offline trcsilva

JGO n00b
*

Posts: 9



« Reply #14 on: 2006-07-30 21:52:49 »

Wow, thanks a lot!  Cheesy

I hope I can repay ya all in the future  Wink
Offline trcsilva

JGO n00b
*

Posts: 9



« Reply #15 on: 2006-09-20 22:56:05 »

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
Offline DzzD

JGO Kernel
*****

Posts: 2134
Medals: 16



« Reply #16 on: 2006-09-21 05:44:47 »

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..."

Offline trcsilva

JGO n00b
*

Posts: 9



« Reply #17 on: 2006-09-21 18:18:25 »

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.
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.152 seconds with 20 queries.