Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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  
  Lightwave 3D model loader  (Read 3386 times)
0 Members and 1 Guest are viewing this topic.
Offline zparticle

Senior Devvie

Thick As A Brick

« Posted 2003-12-23 14:13:50 »

I searched the forum and found a few reference to Lightwave but nothing concrete. Is there/will there be support for loading Lightwave objects?

Java3D apparently had a loader for entire lw3d scenes.

Can the code from J3D be taken? I doubt it since it is probably copyrighted. Also it looks like it is very old 1998 or so.

My Version of Lightwave (7.5c) can export to 3DS, DXF and OBJ. Which of these formats would retain the most information from my LWO files?

Offline kevglass

« JGO Spiffy Duke »

Medals: 319
Projects: 25
Exp: 22 years

Coder, Trainee Pixel Artist, Game Reviewer

« Reply #1 - Posted 2003-12-23 14:37:15 »

I guess it depends on the export facility. 3DS supports a hell of a lot of features but they might not all be exported...

How complicated is the Lightwave format, could a loader be written?


Offline zparticle

Senior Devvie

Thick As A Brick

« Reply #2 - Posted 2003-12-23 15:00:22 »

I suspect parsing it would be simple enough as it uses the IFF standard of using chunks. The newest information I could find on the format is here:

I would write a loader but being a relative newbie to this stuff I would probably screw it all up.

There are examples of reading the format given here:

The following file contains the C source code for parsing the files. Of special interest would be the smaple/lwo2prt/lwo2.c program. It appears to read in an object file and print out information about it to the console. This might be a good starting point.

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

Senior Devvie

Medals: 4

« Reply #3 - Posted 2003-12-27 05:33:45 »

I've written a kind of basic Lightwave LWO and LWS importer for Xith3d, but it's with many restrictions. Basically it just fits the needs for my current hobby project, so I'm afraid it's not very useful to others.
It's not related to the Java3d LWS/LWO importer because when I've started writing the importer I've been using JOGL. So in the end I've re-invented the wheel I'm afraid, but with my wheel being rather a kind of triangle. ;-)

LWO import:
° It doesn't use the nice Xith3d Loader interface.
° It skips many of LWO's more complex features (it's a basic importer).

LWS import:
° Currently no support for animations, but will do this soon.
° Currently no support for bones, but when Xith3d supports it, I'll add LW bone import.

Parsing exotic formats like the binary and hacked LWO file format isn't my strength, I'm afraid. The vastly undocumentated LWS text file format isn't a pleasure either.

I'd love to see a real and solid Lightwave LWS and LWO importer for Xith3d. So if someone liked to do this or ported the Java3d LWO/LWS importer to Xith3d this would be nice. I'd help where possible. Still there would be many things to add: new LW 7.5 features for example, etc. Soon there will be LW 8.0 and I'm going to add some of its features.
Pages: [1]
  ignore  |  Print  

EgonOlsen (79 views)
2018-06-10 19:43:48

EgonOlsen (59 views)
2018-06-10 19:43:44

EgonOlsen (78 views)
2018-06-10 19:43:20

DesertCoockie (261 views)
2018-05-13 18:23:11

nelsongames (159 views)
2018-04-24 18:15:36

nelsongames (158 views)
2018-04-24 18:14:32

ivj94 (901 views)
2018-03-24 14:47:39

ivj94 (162 views)
2018-03-24 14:46:31

ivj94 (813 views)
2018-03-24 14:43:53

Solater (177 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!