Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
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  
  Import Lightwave object files (LWO) manually?  (Read 1307 times)
0 Members and 1 Guest are viewing this topic.
Archimedes
Guest
« Posted 2003-07-11 13:07:54 »

I'd like to render some (not too complicated) Lightwave object files (".lwo") with Java OpenGL (JOGL). Including textures.
With Java3D there's a class named "com.sun.j3d.loaders.lw3d.Lw3dLoader" .. which apparently does what I would like to do, but I don't think I could use a Java3d scene graph, or could I?
My intension is to read the data of the Lwo-file into my own data structures which then get rendered via Jogl.

Later on I think I'll want to read Lightwave scene files, too. The Java3d class does do this, I read. Again for the Java3d scene files which I can't use for Jogl, can I?
Archimedes
Guest
« Reply #1 - Posted 2003-07-11 13:38:13 »

Next to Newtek's (=autors of Lightwave) description of their LWO-format there's a downloadable code sample on the Lightwave site and then you get: "Sdk-Sample/sample/lwobject/" which contains several plain C files which demonstrate how to import LWO files in C. However it's relatively complex (because LWO handles very much 3d stuff of course ;-) and it's ... C... uahh.

Is there a simpler format to parse than LWO is? (I could ask to get the files converted to another format.)

What's your experience with import(ers) in general and such ones which fit nicley to OpenGL / Jogl ?
Offline Mojomonkey

Senior Member




ooh ooh eee eeee


« Reply #2 - Posted 2003-07-11 13:41:00 »

Check http://web.hypersurf.com/~sully/OpenGL/DemoBox.html

There are a bunch of loading demos there, possibly has what you want. Not sure about lightwave. It's written using gl4java, so converting should be simple.

Don't send a man to do a monkey's work.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Archimedes
Guest
« Reply #3 - Posted 2003-07-11 13:58:24 »

Thanks for the URL; I'll have a look at.

I've taken a quick look at the VRML V2.0 text format, too. Looks to be much better parsable than LWO. It's plain text so I could use GAWK ... uhm ... I mean the cool "Regular Expressions" API of newer Java versions.

Is VRML still alive? Does it have major drawbacks?
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #4 - Posted 2003-07-11 14:02:51 »

The new standard is called Xj3D isn't it ?

Kev

Archimedes
Guest
« Reply #5 - Posted 2003-07-11 14:08:52 »

Quote
The new standard is called Xj3D isn't it ?

I don't know unfortunately. I'm pretty new to 3d formats.
Is your mentioned Xj3D a successor to VRML ?

Are there any 3d format importers available at SUN's site? I mean, like the Jav3d's util classes, but more "common" ?
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #6 - Posted 2003-07-11 14:17:23 »

http://www.web3d.org/TaskGroups/source/xj3d.html

Seems X3D is the standard (and VRML sucessor). Xj3D is the reference implementation written in Java.

Kev

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (126 views)
2013-05-17 21:29:12

alaslipknot (134 views)
2013-05-16 21:24:48

gouessej (164 views)
2013-05-16 00:53:38

gouessej (157 views)
2013-05-16 00:17:58

theagentd (169 views)
2013-05-15 15:01:13

theagentd (154 views)
2013-05-15 15:00:54

StreetDoggy (198 views)
2013-05-14 15:56:26

kutucuk (222 views)
2013-05-12 17:10:36

kutucuk (221 views)
2013-05-12 15:36:09

UnluckyDevil (225 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.102 seconds with 29 queries.