Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
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 1812 times)
0 Members and 1 Guest are viewing this topic.
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Posted 2003-07-30 21: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-30 22: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-30 23: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 01: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 01: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 Devvie




AFK


« Reply #5 - Posted 2003-07-31 13: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 Devvie




Java games rock!


« Reply #6 - Posted 2003-07-31 13: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 Devvie




AFK


« Reply #7 - Posted 2003-07-31 13: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.

 

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

The first screenshot will be displayed as a thumbnail.

rwatson462 (37 views)
2014-12-15 09:26:44

Mr.CodeIt (31 views)
2014-12-14 19:50:38

BurntPizza (62 views)
2014-12-09 22:41:13

BurntPizza (99 views)
2014-12-08 04:46:31

JscottyBieshaar (60 views)
2014-12-05 12:39:02

SHC (74 views)
2014-12-03 16:27:13

CopyableCougar4 (77 views)
2014-11-29 21:32:03

toopeicgaming1999 (138 views)
2014-11-26 15:22:04

toopeicgaming1999 (127 views)
2014-11-26 15:20:36

toopeicgaming1999 (38 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-19 00:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-10 12:35:00

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

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

List of Learning Resources
by SilverTiger
2014-08-06 09:33:27

Resources for WIP games
by CogWheelz
2014-08-02 06:20:17

Resources for WIP games
by CogWheelz
2014-08-02 06:19:50

List of Learning Resources
by SilverTiger
2014-08-01 06:29:50
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!