Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / JOGL Development / Re: Experiences of migrating from JOGL 1.1.1 to JSR231 on: 2006-08-02 13:44:19
As I migrate my application to JSR231, I have a question about [size=10pt]nio.Buffer[/size] performance. In many cases (e.g.  [size=10pt]glLightfv()[/size]), I have a choice to use a primitive array with the extra 0 offset parameter or to supply an [size=10pt]nio.Buffer[/size]. Is there much of a performance hit in wrapping an array in an [size=10pt]nio.Buffer[/size]? While I can't imagine it would be faster to supply the [size=10pt]nio.Buffer[/size], there are some cases where the type of array is not specified (e.g. [size=10pt]glReadPixels()[/size]) and so I am forced to provide one.

Thanks,

Jo.
2  Java Game APIs & Engines / JOGL Development / Reporting ATI workaround to standard error output on: 2004-11-13 15:01:09
Hi,

Would it be possible in the next release not to report the 'ATI workaround' message to standard error output? I would have mentioned this when beta 5 was released, but I seem to recall a message that said this going to be removed from stderr in the next release (apologies if I misunderstood).

I personally have no problem with it being reported to stdout, but my application at least, captures all stderr output and informs the user of an error. Given that this is really just an information message, it makes sense to me to report to stdout if at all.

Thanks,

Jo.
3  Java Game APIs & Engines / JOGL Development / Re: jogl applications on: 2004-10-17 11:29:24
I quite happily mix the hardware accelerated Canvas with Swing components. I tend not to use popup menus, but Swing JMenus from the surrounding JFrame that overlap the Canvas don't appear to cause any problems. This used to cause problems when I used GL4Java, but with JOGL, things seem fine.

To see my application, which allows landscape models to be viewed in 3D, see http://www.landserf.org

Jo.
4  Java Game APIs & Engines / JOGL Development / Re: Starting with JOGL, what do I have to download on: 2004-08-10 07:29:35
I place jogl.dll and jogl_cq.dll in the base directory of the Java application that uses it. I also put jogl.jar in the same directory and point to it with a -classpath setting when running my java app.

This has the major advantage for distribution of not requiring any administrative rights, ensuring the entire Java application and resource files can be contained within a single directory tree and of keeping the Java distribution 'clean'. It has the disadvantage of requiring multiple instances of the 3 jogl files for each application that uses them.

Jo.
5  Java Game APIs & Engines / JOGL Development / Re: GLCapabilities and Jogl 1.1 (beta 5) on: 2004-08-10 07:22:20
Thanks for that.

I had stupidly been confusing the depth buffer setting with the colour depth. As you suggest, it works fine with a 24 bit depth buffer and RGBA values of 8 bits each.

It is interesting that Jogl 1.1 responds to inappropriate capabilities settings in a different (and improved) way to 1.0. Better to default to software rendering mode to implement capabilities that cannot be handled by the graphics hardware than silently fail to implement an inappropriate capabilities setting.

Jo.
6  Java Game APIs & Engines / JOGL Development / GLCapabilities and Jogl 1.1 (beta 5) on: 2004-08-09 14:50:40
I have been happily using Jogl 1.0 for my Java terrain analysis software for 8 months now without problems. I have just tried using the 1.1 beta 5 release with the same Java code that has previously worked. Jogl 1.1 now seems to throw my application into software rendering rather than hardware acceleration as it used to. I am currently testing it with an ATI Radeon 9800 XT.

It would seem to be that this is due to the GLCapabilities I select. If I create a new GLCapabilities object, it defaults to 24 bit colour, hardware acceleration. This works fine and uses the ATI hardware. However, my application needs 32 bit colour (uses the alpha channel). If I force 32 bit colour (as I always used to), Jogl does not complain, but rendering is in software only.

I understand that there are some API changes to the GLCapabilities in the 1.1 release, but as far as I can see from the documentation, this should not cause the problem I describe. Can anyone help me by suggesting the best way to set the GLCapabilities I require on a platform that I know supports them? For the record, this is the code I am currently using to set the capabilities:

    GLCapabilities desiredCaps = new GLCapabilities();
       
       // Specific desired capabilities.
       desiredCaps.setHardwareAccelerated(true);
       desiredCaps.setDepthBits(32);
       desiredCaps.setDoubleBuffered(true);
       desiredCaps.setRedBits(8);                  // 32-bit RGBA colour.
       desiredCaps.setGreenBits(8);
       desiredCaps.setBlueBits(8);
       desiredCaps.setAlphaBits(8);
       desiredCaps.setStencilBits(0);            // No stencil buffer required.
       desiredCaps.setAccumRedBits(0);          // No accumulation buffer required.
       desiredCaps.setAccumGreenBits(0);
       desiredCaps.setAccumBlueBits(0);
       desiredCaps.setAccumAlphaBits(0);
       desiredCaps.setStereo(false);
       
       glComponent = GLDrawableFactory.getFactory().createGLCanvas(desiredCaps);


Thanks very much,

Jo.
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

Riven (12 views)
2014-07-29 18:09:19

Riven (8 views)
2014-07-29 18:08:52

Dwinin (9 views)
2014-07-29 10:59:34

E.R. Fleming (25 views)
2014-07-29 03:07:13

E.R. Fleming (10 views)
2014-07-29 03:06:25

pw (39 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (27 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!