Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: NevilleKemp

26. May 2012, 03:13:16 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Installing Xith3D as Eclipse on Windows
Pages: [1]
Print
Author Topic: Installing Xith3D as Eclipse on Windows  (Read 516 times)
visualData
Just dropped in

Offline Offline

Posts: 3


View Profile
« on: 20. September 2010, 03:43:50 am »

Hi, I am very new to Xith3D.

I am trying to install Xith3D, using the documentation - "Installing Xith3D from SVN".
I created both xith3d and xith-tk projects. Then I created a new project Xith-test and copied the test code "Xith-Test.java" from the document. Several import statements give errors.

Code:
import javax.vecmath.Vector3f;
import net.jtank.input.KeyCode;
import org.xith3d.geometry.Cube;
import org.xith3d.loaders.texture.TextureStreamLocatorFile;
import org.xith3d.render.base.Xith3DEnvironment;
import org.xith3d.render.canvas.Canvas3DWrapper;
import org.xith3d.render.canvas.Canvas3DWrapper.Resolution;
import org.xith3d.render.loop.RenderLoop;

I tried to fix the xith3d, build path, third-party/joal, jogl and lwjgl in the following way for the windows:

a. joal: xith3d/third-party/joal/natives
b. jogl: xith3d/third-party/jogl/windows-i586
c. lwjgl: xith3d/third-party/lwjgl/natives

How can I fix this problem so that the code in Xith-Test.java is recognized?

Thanks


Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 20. September 2010, 08:05:59 am »

Open the build path editor of your test project, click on the "Projects" tab and add xith3d to the test project's class path.

Marvin
Logged
visualData
Just dropped in

Offline Offline

Posts: 3


View Profile
« Reply #2 on: 20. September 2010, 03:44:21 pm »

Thank you for the prompt reply.

I have added both xith3d and xith-tk to the test project's class path. I followed closely all the suggestion mentioned in the "Installing Xith3D from SVN".

The test project shows in "Projects" under Java Build Path:

xith3d:
  Access Rules: No rules defined
  Native Library Location: (None)

I still do not have success making the test project work. 

Thanks!

Logged
badboyboogey
Enjoying the stay
*
Offline Offline

Posts: 40



View Profile
« Reply #3 on: 20. September 2010, 07:19:41 pm »

I tried to fix the xith3d, build path, third-party/joal, jogl and lwjgl in the following way for the windows:

a. joal: xith3d/third-party/joal/natives
b. jogl: xith3d/third-party/jogl/windows-i586
c. lwjgl: xith3d/third-party/lwjgl/natives

I don't use eclipse but Netbeans... but your missing the path to the "gluegen/windows-i586" natives
Thats as far as i'm able to help i'm afraid Sad

Oh and welcome! Smiley
Logged
Agrv
Administrator
Enjoying the stay
*****
Offline Offline

Posts: 64


View Profile
« Reply #4 on: 20. September 2010, 08:15:01 pm »

The test project shows in "Projects" under Java Build Path:

xith3d:
  Access Rules: No rules defined
  Native Library Location: (None)

Should be sufficient to find all required import. Maybe you can try to rebuild all with "Projects > Clean > Clean all projects". And make sure "Project > Build automatically" is checked.

By the way, where did you find the Xith-Test.java you are talking about? Xith3D is not using the net.jtank and the javax.vecmath packages anymore. Input is handled by the jagatoo input system and math is done with openmali. You should try the examples given in the XIN documentation.

EDIT: alright, just found the PDF you are using; maybe it is time for it to be updated, too. Will do it in a near future. Anyway, the example given in this file is clearly outdated and should not be used. Use one of XIN instead.
« Last Edit: 20. September 2010, 08:18:33 pm by Hervé Hager (Agrv) » Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #5 on: 20. September 2010, 08:29:35 pm »

I have added both xith3d and xith-tk to the test project's class path.

You only need xith3d to be in your classpath.

Marvin
Logged
visualData
Just dropped in

Offline Offline

Posts: 3


View Profile
« Reply #6 on: 20. September 2010, 10:36:17 pm »

Thank you very much for all the helpful messages!

It is working! I tested on Xin examples.

The earlier problem was, as pointed out by Herve Hager, due to conflict in versions. Earlier I was using an example, which was based on an older version of Xith3D.

Thanks Again!
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic