Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (687)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  3ds loader and drawer using JOGL  (Read 6884 times)
0 Members and 1 Guest are viewing this topic.
Offline trcsilva

Senior Newbie

« Posted 2006-07-18 19:00:17 »


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

Offline bahuman

Junior Devvie

« Reply #1 - Posted 2006-07-18 21: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

Senior Newbie

ThE MaTriX HaS YoU!

« Reply #2 - Posted 2006-07-19 00:49:32 »

This is an example of why I created this thread -->
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline trcsilva

Senior Newbie

« Reply #3 - Posted 2006-07-19 17: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

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

Does anyone have the contents of those links?

Offline trcsilva

Senior Newbie

« Reply #4 - Posted 2006-07-24 17: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

Senior Newbie

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

Check this out.
It loads a bamf format model.
you can get bamf import/export for milkshape here
milkshape can import 3ds
hopefully the viewer works,  i only have the windows and linux natives up
Offline trcsilva

Senior Newbie

« Reply #6 - Posted 2006-07-26 01: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

Innocent Bystander

« Reply #7 - Posted 2006-07-26 02:28:07 »


Check out

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

Good Luck
Offline trcsilva

Senior Newbie

« Reply #8 - Posted 2006-07-26 19:51:05 »

Thanks again. I will take a look at it.

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

Offline rodgersgb

Senior Newbie

« Reply #9 - Posted 2006-07-27 04:25:03 »

Try this...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Kramer

Senior Newbie

« Reply #10 - Posted 2006-07-28 02: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

Senior Newbie

« Reply #11 - Posted 2006-07-28 19:07:41 »

Thanks a lot!

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

JGO Coder

Java games rock!

« Reply #12 - Posted 2006-07-28 19: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

Senior Newbie

« Reply #13 - Posted 2006-07-30 04: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.

Glad I could help.
Offline trcsilva

Senior Newbie

« Reply #14 - Posted 2006-07-31 01:52:49 »

Wow, thanks a lot!  Cheesy

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

Senior Newbie

« Reply #15 - Posted 2006-09-21 02: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?

Offline DzzD
« Reply #16 - Posted 2006-09-21 09:44:47 »

Maybe you can try 3DzzD

here is an online studio :

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:

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

Senior Newbie

« Reply #17 - Posted 2006-09-21 22: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]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Dwinin (72 views)
2015-11-07 13:29:08

Rems19 (81 views)
2015-10-31 01:36:56

Rems19 (78 views)
2015-10-31 01:32:37

williamwoles (107 views)
2015-10-23 10:42:59

williamwoles (93 views)
2015-10-23 10:42:45

Jervac_ (110 views)
2015-10-18 23:29:12

DarkCart (135 views)
2015-10-16 00:58:11

KaiHH (117 views)
2015-10-11 14:10:14

KaiHH (157 views)
2015-10-11 13:26:18

BurntPizza (172 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!