Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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 5901 times)
0 Members and 1 Guest are viewing this topic.
Offline trcsilva

Senior Newbie





« Posted 2006-07-18 19: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

Junior Member





« 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 --> http://www.java-gaming.org/forums/index.php?topic=14021.0
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

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

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

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 »

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

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.

 Grin
Offline rodgersgb

Senior Newbie





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

Try this...

http://bellsouthpwp2.net/g/r/greg_rodgers/3ds.zip
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.

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

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?

Tiago
Offline DzzD
« Reply #16 - Posted 2006-09-21 09: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

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.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Dwinin (19 views)
2014-09-12 09:08:26

Norakomi (54 views)
2014-09-10 13:57:51

TehJavaDev (63 views)
2014-09-10 06:39:09

Tekkerue (31 views)
2014-09-09 02:24:56

mitcheeb (53 views)
2014-09-08 06:06:29

BurntPizza (37 views)
2014-09-07 01:13:42

Longarmx (23 views)
2014-09-07 01:12:14

Longarmx (27 views)
2014-09-07 01:11:22

Longarmx (27 views)
2014-09-07 01:10:19

mitcheeb (35 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org 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‑gaming.org
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!