Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (601)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (649)
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 2017 times)
0 Members and 1 Guest are viewing this topic.
« Posted 2003-07-11 11: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?
« Reply #1 - Posted 2003-07-11 11: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 Devvie

ooh ooh eee eeee

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


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
« Reply #3 - Posted 2003-07-11 11: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

« JGO Spiffy Duke »

Medals: 272
Projects: 25
Exp: 18 years

Coder, Trainee Pixel Artist, Game Reviewer

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

The new standard is called Xj3D isn't it ?


« Reply #5 - Posted 2003-07-11 12:08:52 »

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

« JGO Spiffy Duke »

Medals: 272
Projects: 25
Exp: 18 years

Coder, Trainee Pixel Artist, Game Reviewer

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

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


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

Jesse (12 views)
2015-07-29 04:35:27

Riven (33 views)
2015-07-27 16:38:00

Riven (18 views)
2015-07-27 15:35:20

Riven (20 views)
2015-07-27 12:26:13

Riven (11 views)
2015-07-27 12:23:39

BurntPizza (30 views)
2015-07-25 00:14:37

BurntPizza (40 views)
2015-07-24 22:06:39

BurntPizza (24 views)
2015-07-24 06:06:53

NoxInc (27 views)
2015-07-22 22:16:53

NoxInc (18 views)
2015-07-22 22:13:39
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 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!