Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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  
  xith3d and lwjgl/jogl dependencies  (Read 1703 times)
0 Members and 1 Guest are viewing this topic.
Offline GregCooper

Junior Newbie





« Posted 2003-11-09 23:29:08 »

I was curious about the 'xith3d -> jogl/lwjgl' dependency.  

I am really only interested in using jogl with xith3d.

If I just use the binaries things work great.  However, I went ahead and brought the xith3d source into my project and noticed that some of the code has "lwjgl' dependencies in it.

As an example, "Shape3D.java" has the following import:

    import org.lwjgl.opengl.*;

I am building and running a small example that uses Shape3d.  When I don't have the xith3d source included in my project everything works great.  If I do include the source, I get exceptions to the effect that it is expecting the "org.lwgl.opengl.*" data (which makes total sense).

How come this "lwjgl" dependency doesn't seep to exist when not building from the source.  (Are there two implementations of Shape3D somewhere or something?)

Any help appreciated,

   Greg
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #1 - Posted 2003-11-10 00:59:38 »

general question first:

It doesn't complain that lwjgl doen't exist because when you are compiling somthing, it only needs to know where classes that you are using are (and you arn't using lwjgl by the sound of it).

If infact Xith3D needed that lwjgl class to operate then an exception would be thrown at runtime when the JVM tries to dynamically load the class (because it can't find it).

However if the JVM never needs that class (lets say because you never actually call any Xith3D code which uses a lwjgl class) then no excpeitons will be thrown.

However, when compiling the Xith3D source, the compiler hits that import statements and bails out because it can't find lwjgl.

Specifically to xith:

I don't know why the com.xith3d.scenegraph Shape3D object would import lwjgl, maybe it's a bug.  I just removed those two lines on my local copy and it doesn't compile as there are a few methods using it.  If you think LWJGL should be removed from that code, I suggest you submit an Issue so it can be looked at.

Will.

Offline Yuri Vl. Gushchin

Senior Duke




Speak Java!


« Reply #2 - Posted 2003-11-10 07:27:03 »

This is known issue. We should remove LWJGL dependencies from everywhere except [possibly future] LWJGL renderer code. For building, appropriate separate targets should be created and I would prefer to make JOGL target default.

BTW, this is a minor issue, besides sometimes really annoying...

Yuri

Yuri Vl. Gushchin
JProof Group
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline GregCooper

Junior Newbie





« Reply #3 - Posted 2003-11-10 10:33:05 »

Great.  Thanks for the info.    Really wanted to just make sure I wasn't losing my sanity.


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

Longarmx (36 views)
2014-10-17 03:59:02

Norakomi (28 views)
2014-10-16 15:22:06

Norakomi (24 views)
2014-10-16 15:20:20

lcass (27 views)
2014-10-15 16:18:58

TehJavaDev (52 views)
2014-10-14 00:39:48

TehJavaDev (54 views)
2014-10-14 00:35:47

TehJavaDev (42 views)
2014-10-14 00:32:37

BurntPizza (63 views)
2014-10-11 23:24:42

BurntPizza (36 views)
2014-10-11 23:10:45

BurntPizza (77 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!