Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
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  
  Using Xith3D  (Read 1500 times)
0 Members and 1 Guest are viewing this topic.
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Posted 2003-07-30 23:09:57 »

I have downloaded Xith3D but am prevented from running the bundled demo (cube test).  I am assuming that it should work on any graphics card.

JOGL is running fine, as is Java3D (not that that matters) - that is not to say all JOGL demos work but at least I have some polys displaying which is a start.

When I try to run it, I get this:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
[divzero@localhost demo]$ java -Djava.library.path=../third-party/jogl/linux -Xmx50m -Xms20m -classpath ../src/com/xith3d/test:../third-party/jogl/linux/jogl.jar:../third-party/vecmath/vecmath.jar:../third-party/xith/xith_utilities.jar:../libs/ com.xith3d.test.CubeTest
net.java.games.jogl.GLException: Error making context current
        at net.java.games.jogl.impl.x11.X11GLContext.makeCurrent(X11GLContext.java:141)
        at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:111)
        at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
        at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:119)
        at java.awt.Component.setBounds(Component.java:1644)
        at java.awt.BorderLayout.layoutContainer(BorderLayout.java:683)
        at java.awt.Container.layout(Container.java:835)
        at java.awt.Container.doLayout(Container.java:825)
        at java.awt.Container.validateTree(Container.java:903)
        at java.awt.Container.validate(Container.java:878)
        at java.awt.Window.dispatchEventImpl(Window.java:1564)
        at java.awt.Component.dispatchEvent(Component.java:3367)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)        at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
net.java.games.jogl.GLException: Error making context current
        at net.java.games.jogl.impl.x11.X11GLContext.makeCurrent(X11GLContext.java:141)
        at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:111)
        at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
        at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:196)
        at net.java.games.jogl.GLCanvas.display(GLCanvas.java:91)
        at net.java.games.jogl.GLCanvas.paint(GLCanvas.java:102)
        at sun.awt.RepaintArea.paint(RepaintArea.java:180)
        at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:339)
        at java.awt.Component.dispatchEventImpl(Component.java:3586)
        at java.awt.Component.dispatchEvent(Component.java:3367)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)        at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
Exception in thread "main" net.java.games.jogl.GLException: Error making context current
        at net.java.games.jogl.impl.x11.X11GLContext.makeCurrent(X11GLContext.java:141)
        at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:111)
        at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
        at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:196)
        at net.java.games.jogl.GLCanvas.display(GLCanvas.java:91)
        at com.xith3d.render.jogl.RenderPeerImpl.makeCanvas(RenderPeerImpl.java:61)
        at com.xith3d.test.CubeTest.<init>(CubeTest.java:98)
        at com.xith3d.test.CubeTest.main(CubeTest.java:540)


As I posted http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1059583460;start=0#2 I am only using a software renderer in Linux however it also fails in Windows and I have hardware 3d working there.

Thanks,

Will.

Offline cactushack76

Senior Newbie





« Reply #1 - Posted 2003-07-31 00:35:28 »

Not sure if this is related to the issue you are having, but I had to make sure I had JDK 1.4.2 in order for it to run.
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #2 - Posted 2003-07-31 01:04:53 »

oh.  I only have sdk1.4.0 (I also have jre1.4.1 but I don't suppose that helps either).

I guess that might help huh?  Did you experiance problems on these older versions too?

Cheers,

Will.

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

Senior Newbie





« Reply #3 - Posted 2003-07-31 03:08:30 »

I tried it first with 1.4.1 and had problems.  I upgraded to 1.4.2, and it worked fine.  This is on SuSE Linux btw.
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #4 - Posted 2003-07-31 03:23:17 »

sounds good to me *gets hopes up again*

Future 1.4.x support would be nice, end users are a pain to explain such things to...  But hardly a need for it just yet I guess.

Will.

Offline aNt

Senior Member




AFK


« Reply #5 - Posted 2003-07-31 15:10:33 »

how duss transparency work?

Shape3D shape = new Shape3D();
         Appearance a = new Appearance();
         a.setPolygonAttributes(new PolygonAttributes(PolygonAttributes.POLYGON_FILL,PolygonAttributes.CULL_BACK,0));
         TransparencyAttributes transparencyAttr = new TransparencyAttributes(TransparencyAttributes.BLENDED, 1f);
         a.setTransparencyAttributes(transparencyAttr);
         a.setTexture(textureWood);
         Geometry g = createDoubleCube(0f,0,0,0.5f,false);
         shape.setAppearance(a);
         shape.setGeometry(g);
         tf_2.addChild(shape);

-- i bet i got this well wrong Smiley
Offline DavidYazel

Junior Member




Java games rock!


« Reply #6 - Posted 2003-07-31 15:30:54 »

Transparency is not perfect yet in Xith3D, currently it only supports it if the vertex alphas or texture contains and alpha channel.  Setting the transparency at the shape level like you are trying to do is not yet working.  But if it was you would not want to use 1.0 as that would mean fully transparent.

David Yazel
Xith3D Project Founder
http://xith3d.dev.java.net

It may look complicated, but in the end it is just a bunch of triangles
Offline aNt

Senior Member




AFK


« Reply #7 - Posted 2003-07-31 15:41:32 »

yer just playing with it.. i was seeing if all the boxes would dissapear Smiley. i got the new CVS to build today so i am happy there Smiley top stuff.

how do the volume shadows work? i want to see that in action *winders how simple it is to get working* Smiley
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (139 views)
2013-05-17 21:29:12

alaslipknot (148 views)
2013-05-16 21:24:48

gouessej (178 views)
2013-05-16 00:53:38

gouessej (172 views)
2013-05-16 00:17:58

theagentd (182 views)
2013-05-15 15:01:13

theagentd (166 views)
2013-05-15 15:00:54

StreetDoggy (211 views)
2013-05-14 15:56:26

kutucuk (235 views)
2013-05-12 17:10:36

kutucuk (234 views)
2013-05-12 15:36:09

UnluckyDevil (239 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.313 seconds with 21 queries.