This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Loading 3D character models into JOGL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Loading 3D character models into JOGL" Watch "Loading 3D character models into JOGL" New topic

Loading 3D character models into JOGL

Kirk Gao

Joined: Aug 30, 2007
Posts: 8
I would like to load a ms3d file format (Milkshape 3D) character model from Unreal Tournament 2003 (gotten from Milkshape's download site) to a four-walled room I created using jogl methods. How does one go about doing so? I read around but all the 'help' sites I found only give instructions on how to download and set up their own loaders and load to Java 3D or DirectX and I really don't wanna mess with those. On somes sites I read that you have to write your own loader (yikes!). Is this true? Any/all help appreciated.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14428

JOGL is a low-level API, a wrapper for OpenGL. It contains a lot of functionality to do low-level 3D graphics stuff, for example draw triangles, set up lighting etc.

It has no support for higher-level abstractions such as models of objects etc. For this you'll need a higher-level library such as Java 3D, which can manage a scene graph for you in which you can load models.

I you just want to use JOGL and not a higher-level API such as Java 3D, then you'll have to write a lot of code to load and manage all the triangles in the model yourself - not a small task.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Kirk Gao

Joined: Aug 30, 2007
Posts: 8
That's a bummer. Well I looked at Sun's Java 3D site and there doesn't actually seem to be a link to download the darn thing...just a lot of referrals to other descriptions of their various APIs. Am I just not looking hard enough?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42911
Am I just not looking hard enough?

Depends on where you're looking

Current development is being carried out on
I agree. Here's the link:
subject: Loading 3D character models into JOGL