Show Posts
|
|
Pages: [1]
|
|
1
|
Java Game APIs & Engines / JOGL Development / Re: JOGL port to SGI
|
on: 2004-03-26 06:38:58
|
|
build.xml is too big to send as a message here, unfortunately!
If anyone wants it, (or the full JOGL setup), just ping me an email. It's ~3.6Mb tar.gz, so it'll sneak through as an email without too many problems :-)
Cheers,
ian (I.J.Grimstead at cs.cardiff.ac.uk)
|
|
|
|
|
2
|
Java Game APIs & Engines / JOGL Development / JOGL port to SGI
|
on: 2004-03-23 13:35:11
|
|
Hi all,
I've been tinkering with JOGL under IRIX, and I've got it working AFAIK (i.e. basic demos seem to be OK).
Hacks were...
1/ Add new rule to build.xml (I duplicated linux & removed the Cg support, as I'm using gcc). If anyone wants it, I'll ping it to them, no problem.
2/ RTLD_DEFAULT is required (not defined in SGI's dlfcn.h); rudely hacked this in as a temporary measure into /usr/include/dlfcn.h as #define RTLD_DEFAULT ( (void*) 0) I'm unsure if this will come back to bite me w.r.t. JOGL, SGI man pages don't mention a null ptr... should put this tidly somewhere inside JOGL. It'll definitely bite me 'cos I have hacked a system header... :-)
3/ In jogl/src/native/jogl/JAWT_DrawingSurfaceInfo.c: Changed "#elif defined(linux) || defined(__sun)" to "#elif defined(linux) || defined(__sun) || defined(__sgi)" Added glXGetProcAddressARB by changing "#ifdef __sun" wrapper to "#if defined(__sun) || defined(__sgi)"
4/ Changed src/net/java/games/gluegen/StructLayout.java: Added "(os.startsWith("irix") && cpu.equals("mips")) ||" to support SGI
5/ jogl.properties: set java.home.dir=/usr/java2 (otherwise we get set to /usr/java2/.. - and then fail to find any include subdirs)
6/ Biggie - don't forget to read the "Build" docs, as I missed the URL on the front page, and jollied off using ant-1.6 - BOOM! ant-1.5.2, works a treat.
Other than that, it's fairly simple. I'm assuming (ho ho) that the Solaris/Linux X11 code will work 100% without modification for an SGI...
Well, hope someone finds it useful!
Cheers,
Ian
|
|
|
|
|
3
|
Java Game APIs & Engines / JOGL Development / pbuffer with X11...
|
on: 2004-03-23 13:24:20
|
|
Hi all,
I've been trying the various JOGL demos to test the pbuffer support under X11 - under Linux, AFAIK, the hwShadowmapsSimple should work.
but... just a blank window appears, no textual output. If I run (e.g.) the gears demo, it works a treat, and I get:
[jogl-demos]$ java -classpath ../jogl/build/jogl.jar:. -Djava.library.path=../jogl/build/obj demos/gears/Gears
CANVAS GL IS: net.java.games.jogl.impl.x11.X11GLImpl CANVAS GLU IS: net.java.games.jogl.impl.GLUImpl INIT GL IS: net.java.games.jogl.impl.x11.X11GLImpl GL_VENDOR: NVIDIA Corporation GL_RENDERER: GeForce4 420 Go/AGP/SSE2 GL_VERSION: 1.4.1 NVIDIA 53.28 glLoadTransposeMatrixfARB() supported: true GL_VENDOR: NVIDIA Corporation GL_RENDERER: GeForce4 420 Go/AGP/SSE2 GL_VERSION: 1.4.1 NVIDIA 53.28 glLoadTransposeMatrixfARB() supported: true
Similar results seen with Solaris build (i.e. shadow mapping demo fails to produce anything, gears works fine). Any advice greatly appreciated. I'm looking to use pbuffers for off-screen rendering...
Cheers,
Ian
|
|
|
|
|
|
Add your game by posting it in the WIP section,
or publish it in Showcase.
The first screenshot will be displayed as a thumbnail.
|
|