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, 02:55:22 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Problems
Pages: [1]
Print
Author Topic: Problems  (Read 454 times)
dsmith
Just dropped in

Offline Offline

Posts: 3


View Profile
« on: 13. August 2010, 03:38:03 pm »

Hi,
I found Xith3D and I think it's just what I need. However, I have run into a few problems with it.
I used subclipse to checkout the latest code from xith3d from svn since the downloads are 2 years old and it is recommended on the wiki. That works fine. I created a new project in eclipse, and set Xith3D as a dependancy, and put xith3d, gluegen-rt and jogl onto the build path, and I also configured the natives path to the appropriate folders. I downloaded the ebook XIN 2nd edition from the xith.org website, since that seemed to be the only place where I could get some tutorials for Xith3D. I ran the first example, and got this in the console:
Quote
do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try adjusting the vblank_mode configuration parameter.
I skipped to chapter 5, to see if I could get a basic shape working and to check that everything was fine, and planned to read the chapters in between after that. However, I got that error again, and an error in eclipse at this line:
Code:
this.getInputManager().registerKeyboardAndMouse( canvas );
There seems to be no getInputManager() method on the InputAdapterRenderLoop class in the javadocs either. So, I proceeded to comment the line out, downloaded a test 512x512 jpg image off google into the appropriate folder, named it stone.jpg (original is from http://digips.seesaa.net/stone_pavement/ground_stone_pavement01.jpg ) and ran the program.

Here is a screenshot - http://img839.imageshack.us/img839/8759/screenshotmyemptyscene.png
Dunno if it helps, but I'm on ubuntu 10.04

Oh, and the close button doesn't work so I had to terminate it from within eclipse.

Thanks,
Daniel
« Last Edit: 13. August 2010, 04:03:51 pm by dsmith » Logged
hawkwind
Getting respectable
***
Offline Offline

Posts: 363



View Profile Email
« Reply #1 on: 14. August 2010, 01:56:16 pm »

Uncertain of your error but the best way o learn Xith3D is to extract the associated XithTK package which is FILLED with working example broken up into meaningful categories

The image you posted is the Xith fallback texture, which is used when the target texture cannot be found.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #2 on: 14. August 2010, 08:41:25 pm »

One day someone needs to update XIN to the current API. Smiley

Replace getInputManager().registerKeyboardAndMouse( canvas );

with

InputSystem.getInstance().registerNewKeyboardAndMouse( canvas );

And btw. if you run Xith3D on Linux, you don't have to adjust anything of the classpath or import anything new. Just checkout xith3d, include the project into your own project and everything should run out of the box. The xith3d project exports anything needed.

And yes, checkout xith-tk to see many working examples.

Marvin
« Last Edit: 14. August 2010, 08:43:17 pm by Marvin Fröhlich » Logged
dsmith
Just dropped in

Offline Offline

Posts: 3


View Profile
« Reply #3 on: 15. August 2010, 07:09:11 pm »

Hi guys,
Thanks for the help, and apparently the notice in the console is because of my kernel version and is harmless.
How would I go about getting a xith3d display into an applet (i.e. integrating it with awt?)

Thanks for your help,
Daniel
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #4 on: 15. August 2010, 09:56:20 pm »

Try Canvas3DPanel.

Marvin
Logged
dsmith
Just dropped in

Offline Offline

Posts: 3


View Profile
« Reply #5 on: 16. August 2010, 12:54:31 pm »

Hi,
Yay it works great now Smiley
Thanks for your help, I'm sure Xith3D will be just what I need for my project. My 3d applet works fine now Smiley Not that there's much in it (apart from a spinning cube), but that will soon change.
Also, XIN seems pretty accurate to the current API; there's only one or two things that need to be changed, which eclipse has been very helpful in pointing out.

Daniel.
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic