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 (686)
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 2507 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: 272
Projects: 25
Exp: 18 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  
You cannot reply to this message, because it is very, very old.

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

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

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

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

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

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

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

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

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

BurntPizza (167 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!