Java-Gaming.org    
Featured games (78)
games approved by the League of Dukes
Games in Showcase (428)
Games in Android Showcase (89)
games submitted by our members
Games in WIP (466)
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 1592 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

JGO Kernel


Medals: 85
Projects: 22


Coder, Trainee Pixel Artist, Game Reviewer


« 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

JGO Kernel


Medals: 85
Projects: 22


Coder, Trainee Pixel Artist, Game Reviewer


« 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.

 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (79 views)
2014-04-15 18:08:23

BurntPizza (70 views)
2014-04-15 03:46:01

UprightPath (81 views)
2014-04-14 17:39:50

UprightPath (66 views)
2014-04-14 17:35:47

Porlus (82 views)
2014-04-14 15:48:38

tom_mai78101 (106 views)
2014-04-10 04:04:31

BurntPizza (166 views)
2014-04-08 23:06:04

tom_mai78101 (262 views)
2014-04-05 13:34:39

trollwarrior1 (212 views)
2014-04-04 12:06:45

CJLetsGame (221 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!