Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
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 2124 times)
0 Members and 1 Guest are viewing this topic.
Offline zparticle

Senior Member




Thick As A Brick


« Posted 2003-12-23 15: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.

http://ls7-www.informatik.uni-dortmund.de/students/lectures/doc_mmi0304/j3d-html/com/sun/j3d/loaders/lw3d/Lw3dLoader.html

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 Kernel


Medals: 122
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1 - Posted 2003-12-23 15: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?

Kev

Offline zparticle

Senior Member




Thick As A Brick


« Reply #2 - Posted 2003-12-23 16: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:

http://www.newtek.com/products/lightwave/developer/75lwsdk/docs/filefmts/lwo2.html

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:

http://www.newtek.com/products/lightwave/developer/75lwsdk/docs/filefmts/lwo2ex/lwo2ex.html

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.

http://www.newtek.com/products/lightwave/developer/75lwsdk/lwsdk75.zip

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

Senior Member


Medals: 4



« Reply #3 - Posted 2003-12-27 06: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.

 

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

The first screenshot will be displayed as a thumbnail.

CogWheelz (18 views)
2014-07-30 21:08:39

Riven (26 views)
2014-07-29 18:09:19

Riven (15 views)
2014-07-29 18:08:52

Dwinin (13 views)
2014-07-29 10:59:34

E.R. Fleming (34 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (43 views)
2014-07-24 01:59:36

Riven (44 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

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

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

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54
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!