Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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  
  Problems getting started  (Read 2464 times)
0 Members and 1 Guest are viewing this topic.
Offline jpilgrim

Junior Newbie





« Posted 2006-09-22 18:59:27 »

Hi all,

I've just checked out the latest CVS head of xith and xith-tk. I imported the projects into Eclipse,
while xith is already an Eclipse project, I made xith-tk one. Now I've got some problems getting started:

- the document http://www.xith.org/pages/installing_xith3d.html seems to be outdated
- the getting started tutorial does not exist (?) (http://xith.org/tutes.php#GettingStarted)
- running the pure ant file (without modifying anything) fails in xith-tk, e.g."ant full" is not working
- I didn't find some demo classes, e.g. com.xith3d.test.CubeTest

Also I've got some questions concerning the files in CVS:
- why is xith3d.jar included in the repository since it's a build artifact, same is true
  for xith-tk
- hial.jar is included in xith-tk/lib and xith-tk/third-party. The first should be
  removed since it seems to be an elder version (at least the project is not compiling with that version)

When running a test (e.g. BaseTest), the program (or java) crashes after some time or it hangs with a gray screen.
After adding
   -DXITH3D_USE_VERTEX_BUFFER_CACHING=FALSE
it worked. Why did I have to add this and what can I do enable that feature? Unfortunately all web start demos aren't running, I guess due to this feature.

Jens
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #1 - Posted 2006-09-22 19:45:09 »

- the document http://www.xith.org/pages/installing_xith3d.html seems to be outdated

It certainly is.

- the getting started tutorial does not exist (?) (http://xith.org/tutes.php#GettingStarted)

Don't know where you got this link from, but is does exist: http://xith.org/tutes/GettingStarted/html/index.html
But it's really outdated. Please refer to "Xith3D in a nutshell" (XIN) which you may find in the docs/xin folder in xith-tk repository (and will be hopefully soon released on xith.org).

- I didn't find some demo classes, e.g. com.xith3d.test.CubeTest

All test and demos have been moved to xith-tk (org.xith3d.test...) and demo demo resources reside in demo/

- why is xith3d.jar included in the repository since it's a build artifact, same is true
  for xith-tk

xith3d.jar and xith-tk.jar are in the libs folder, where the compiled versions reside. It is not always (or almost never) recent. As far as I am converned, we can remove it from CVS (or SVN next week), since You don't need it for active development and for a release it will anyway be rebuilt. Let's wait for some other folks (like Amos) and see what they think about it.

- hial.jar is included in xith-tk/lib and xith-tk/third-party. The first should be
  removed since it seems to be an elder version (at least the project is not compiling with that version)

Removed.

When running a test (e.g. BaseTest), the program (or java) crashes after some time or it hangs with a gray screen.
After adding
   -DXITH3D_USE_VERTEX_BUFFER_CACHING=FALSE
it worked. Why did I have to add this and what can I do enable that feature? Unfortunately all web start demos aren't running, I guess due to this feature.

I don't know this feature (flag). It is working for me without switching it off and I haven't heard of anyone having this problem. Maybe it's due to your hardware. But maybe someone else can tell you more about it.

Hope, I could help you Smiley

Marvin
Offline cylab

JGO Ninja


Medals: 49



« Reply #2 - Posted 2006-09-22 20:10:13 »

Quote
xith3d.jar and xith-tk.jar are in the libs folder, where the compiled versions reside. It is not always (or almost never) recent. As far as I am converned, we can remove it from CVS (or SVN next week), since You don't need it for active development and for a release it will anyway be rebuilt. Let's wait for some other folks (like Amos) and see what they think about it.
+1 from me for removing them.

Compiled binaries from project sources should IMHO never reside in an CVS/SVN repository. They should be present in downloadable releases, but thats a different matter. I suspect they were added by accident. Netbeans (did?) tend to do something like that if you don't setup proper cvs ignore files.

Mathias - I Know What [you] Did Last Summer!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline cylab

JGO Ninja


Medals: 49



« Reply #3 - Posted 2006-09-22 20:28:00 »

Quote
Quote
When running a test (e.g. BaseTest), the program (or java) crashes after some time or it hangs with a gray screen.
After adding
   -DXITH3D_USE_VERTEX_BUFFER_CACHING=FALSE
it worked. Why did I have to add this and what can I do enable that feature? Unfortunately all web start demos aren't running, I guess due to this feature.

I don't know this feature (flag). It is working for me without switching it off and I haven't heard of anyone having this problem. Maybe it's due to your hardware. But maybe someone else can tell you more about it.

This flag is used in the ShapeAtomPeer classes and it seems they are used to check wether the shapes should be uploaded every frame or if they can be cached in the VRAM of the gfx card using VBOs.

I found a commented check on OpenGL 1.4 regarding this Option in the JSR CanvasPeerImpl
1  
2  
3  
4  
5  
6  
7  
8  
        /*
        if (openGlVersion.startsWith("1.4") || true){
            if (showInfos){
                System.out.println("OpenGL 1.4 detected : disabling Vertex Buffer Caching");
            }
            getRenderOptions().setOption(Option.USE_VERTEX_BUFFER_CACHING, false);
        }
        */

So maybe your OpenGL version is not sufficient.

The code was however commented out because of the OpenGlExtensions.ARB_vertex_buffer_object checks in the ShapeAtomPeer classes, so it was redundant and the commenting should not have caused any difference, so I also suspect it's a driver issue... Have you updated to the latest drivers for your card? Have you tried both renderers?

Mathias - I Know What [you] Did Last Summer!
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #4 - Posted 2006-09-22 20:51:24 »

Have you tried both renderers?

You won't have much luck with LWJGL. I found it broken so many times. And it was broken before I started to do the multipass stuff and it is even more broken now. I'll fix it the next days. Wink

Marvin
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #5 - Posted 2006-09-22 20:54:28 »

xith3d.jar and xith-tk.jar are in the libs folder, where the compiled versions reside. It is not always (or almost never) recent. As far as I am converned, we can remove it from CVS (or SVN next week), since You don't need it for active development and for a release it will anyway be rebuilt. Let's wait for some other folks (like Amos) and see what they think about it.

I guess we can even remove the whole libs folders (in both projects).
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #6 - Posted 2006-09-22 20:58:51 »

@jpilgrim btw... have you included the xith3d.jar into the xith-tk eclipse project or have you linked the xith3d project into the xith-tk project? I'd really advise to do the latter.
Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #7 - Posted 2006-09-23 09:53:13 »

@jpilgrim btw... have you included the xith3d.jar into the xith-tk eclipse project or have you linked the xith3d project into the xith-tk project? I'd really advise to do the latter.
Wait I just commited the .project and .classpath eclipse files for xith-tk (xith3d one were already there).

So what anyone has to do to start developing with xith3d is just check all that out. And that's it. All classpaths set up, all right.

I've just checked out the latest CVS head of xith and xith-tk. I imported the projects into Eclipse,
while xith is already an Eclipse project, I made xith-tk one.
Fixed.

- the document http://www.xith.org/pages/installing_xith3d.html seems to be outdated
It is, and should be rewritten. Are you interested in doing that ? You are currently installing Xith3D so when it's done you'll have sufficient knowledge.. writing about it will make you even more familiar with the process.

- the getting started tutorial does not exist (?) (http://xith.org/tutes.php#GettingStarted)
Tell me, where did you get that link ? Here is the html link : http://xith.org/tutes/GettingStarted/html/index.html and here's the PDF : http://xith.org/tutes/GettingStarted/getting_started_guide.pdf
The links are given here clearly : http://www.xith.org/pages/documentation.html

- running the pure ant file (without modifying anything) fails in xith-tk, e.g."ant full" is not working
Please provide the errors messages.

- I didn't find some demo classes, e.g. com.xith3d.test.CubeTest
There are in the toolkit = xith-tk ("org." packages).

- why is xith3d.jar included in the repository since it's a build artifact, same is true
  for xith-tk
To be removed

- hial.jar is included in xith-tk/lib and xith-tk/third-party. The first should be
  removed since it seems to be an elder version (at least the project is not compiling with that version)
Done by Qudus.

When running a test (e.g. BaseTest), the program (or java) crashes after some time or it hangs with a gray screen.
After adding
   -DXITH3D_USE_VERTEX_BUFFER_CACHING=FALSE
it worked. Why did I have to add this and what can I do enable that feature? Unfortunately all web start demos aren't running, I guess due to this feature.
Which graphic card do you have and which drivers ? Can you just run a test and post the console output ?

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #8 - Posted 2006-09-23 11:12:13 »

- why is xith3d.jar included in the repository since it's a build artifact, same is true
  for xith-tk

xith3d.jar and xith-tk.jar are in the libs folder, where the compiled versions reside. It is not always (or almost never) recent. As far as I am converned, we can remove it from CVS (or SVN next week), since You don't need it for active development and for a release it will anyway be rebuilt. Let's wait for some other folks (like Amos) and see what they think about it.

+1 from me for removing them.

To be removed

removed.
Offline jpilgrim

Junior Newbie





« Reply #9 - Posted 2006-09-23 15:16:11 »

I've updated my graphics card drivers (GeForce 5200Fx), now it should support OpenGL 2.0 -- and the tests are running without any further parameters, i.e. the feature is now enabled and everything is fine. So it was a problem with my drivers. Anyway that issue should be addressed by the framework.

I'm documenting my personal "getting started" and maybe I make a document out of it, but I can't say that for sure now.

Concerning the Eclipse project issues: I made xith3d and xith-tk plug-ins, and added a dependency from xith-tk to xith3d. I'm currently developing a graphical editor plug-in using Java3D, but due to problems in the AWT-SWT-bridge on Mac OS X I want to port all that AWT stuff to SWT. Maybe I'll change to Xith3D and port Xith3D to SWT, but I'm not sure if I've got the time for that. On the other hand I really want my editor to work on Mac OS X :-) But if I'm going to use Xith3D, I'll use it as an Eclipse plug-in.

Since may own framework is using floats, I guess Xith3D will fit better than Java3D (I've read that using floats instead of doubles is one of the differences between Xith3D and J3D). I have to run some tests before I decide to change to Xith3D. What would you say are the main differences between Xith3D and Java3D, comparing the latest versions of both frameworks? Since I'm not developing a game or animations, performance isn't a problem in my case. But I need transparency and I found the Java3D transparency to be handled very difficulty. Also the quality of 2D text is very important.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #10 - Posted 2006-09-25 16:32:51 »

Since may own framework is using floats, I guess Xith3D will fit better than Java3D (I've read that using floats instead of doubles is one of the differences between Xith3D and J3D). I have to run some tests before I decide to change to Xith3D. What would you say are the main differences between Xith3D and Java3D, comparing the latest versions of both frameworks? Since I'm not developing a game or animations, performance isn't a problem in my case. But I need transparency and I found the Java3D transparency to be handled very difficulty. Also the quality of 2D text is very important.
Java3D and Xith3D are becoming comparable in performance. Transparency is not that hard to handle in Xith3D.. it may be even more simplified, sure.. if you have a better way, suggest and implement/ask ! Everything's possible with Xith3D, remember (as long as we keep crucial backward compatibility). Text2D package is just perfect. Each time I needed I found it simple and straight.

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #11 - Posted 2006-10-02 00:07:53 »

Have you tried both renderers?

You won't have much luck with LWJGL. I found it broken so many times. And it was broken before I started to do the multipass stuff and it is even more broken now. I'll fix it the next days. Wink

Fixed Smiley.
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.

BurntPizza (8 views)
2014-09-21 01:30:30

BurntPizza (11 views)
2014-09-21 00:34:41

moogie (10 views)
2014-09-21 00:26:15

UprightPath (23 views)
2014-09-20 20:14:06

BurntPizza (27 views)
2014-09-19 03:14:18

Dwinin (40 views)
2014-09-12 09:08:26

Norakomi (70 views)
2014-09-10 13:57:51

TehJavaDev (96 views)
2014-09-10 06:39:09

Tekkerue (49 views)
2014-09-09 02:24:56

mitcheeb (70 views)
2014-09-08 06:06:29
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!