Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11855 Posts in 1569 Topics- by 3022 Members - Latest Member: vodocwatch

07. February 2012, 01:16:05 AM
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Invalid memory access ...
Pages: [1]
Print
Author Topic: Invalid memory access ...  (Read 532 times)
Bram
Just dropped in

Offline Offline

Posts: 1


View Profile
« on: 22. July 2010, 08:46:03 PM »

Hi, I'm new to the Xith3d world. I'm coming from JME2, but have the requirement to display multiple 3d renderings in separate AWT canvases. It looks like Xith3D will be a much better fit for accomplishing this (technically it can be done with JME2, but the current hack is quite ugly, and it's looking nearly impossible to do with JME3).

My platform is a Macbook Pro, running Snow Leopard (so it's 64-bit).

I tried starting with creating a simple cube in a single Canvas3DPanel. Everything runs, except I get a black screen. I wasn't sure if I was doing something wrong with scene creation or panel creation, so I tried just copying what's in the Nutshell documentation with (well, at least with window creation):

Code:
        Xith3DEnvironment env = new Xith3DEnvironment();
        Canvas3D canvas = Canvas3DFactory.createWindowed(OpenGLLayer.LWJGL, 800, 600, "My empty scene" );
        env.addCanvas( canvas );
        RenderLoop rl = new RenderLoop(); rl.setMaxFPS( 120f ); rl.setXith3DEnvironment( env );

        BranchGroup bg = new BranchGroup();
        Cube cube = new Cube(3.0f);
        Appearance app = new Appearance();
        app.setColor(Colorf.BLUE);
        cube.setAppearance(app);
        bg.addChild(cube);
        env.addPerspectiveBranch(bg);

        rl.begin();

and I get a:

Code:
Invalid memory access of location 0x2004f7208 rip=0x12f75d738

I tried also using JOGL, but I get the error:

Code:
Exception in thread "main" java.lang.UnsatisfiedLinkError: ~/xith3d/trunk/third-party/jogl/macosx-universal/libjogl.jnilib:  no suitable image found.  Did find:  ~/lib/xith3d/trunk/third-party/jogl/macosx-universal/libjogl.jnilib: no matching architecture in universal wrapper

which I'm guessing means it wasn't compiled as a 64-bit binary.

Any help would be greatly appreciated. The design of Xith3d looks a lot saner to me, so it would be great if I get this working!
Logged
Oliver
Enjoying the stay
*
Offline Offline

Posts: 28


View Profile
« Reply #1 on: 02. August 2010, 09:33:03 AM »

I had a similar issue here: http://xith.org/forum/index.php/topic,1516.msg10937.html
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic