Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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] 2 3
1  Java Game APIs & Engines / JOGL Development / Improvement reques/suggestion - configurable grabbing of focus and canvas raisin on: 2008-09-25 13:31:26
Hi  there.

We have a small problem with the way GLCanvas automatically grabs the focus and raises itself on mouse entry as this interfers with most of our popups and dialogs which suddenly find themselves closed or below a GLCanvas (in a Dialog).

We're currently using JOGL 1.0 (pre JSR version) but I think it's in the JSR version too.

Would be possible to get included the switching on/off of this auto-raising and auto-focus via parameters (-Djogl.autoraise=true and -Djobl.autofocus=true for example)?

Thanks.
2  Java Game APIs & Engines / JOGL Development / Next official release of JOGL? on: 2008-02-08 22:22:35
Hi Ken.

My project is using JOGL and love it, so thanks, but we're an industrial and project and have some issues with upgrading to informal/incomplete versions of COTS.

Have you got a planned schedule for a final JSR-JOGL-1.1.1 release or are there still featuers missing that are planned?

Thanks.

Greg
3  Java Game APIs & Engines / JOGL Development / Re: Shader Eclipse Plugin: Second Release (with GLSL) on: 2005-11-22 09:47:26
Any chance you can make an eclipse update site for this rather than just providing the zip files?   Wink
4  Java Game APIs & Engines / JOGL Development / Drawing Filled and Non-filled circles clash on: 2005-11-07 13:12:04
We've got a small problem in our basic "graphics drawing" tool in our application when drawing non-filled circles over the top of a filled circle resulting in the "mesh" of the filled circle being drawn rather than just a filled circle.

There is no problem when drawing the two different circles apart from each other, but when the un-filled overlaps the filled circle, the error is as above.

From memory our circle drawing routine is using gluDisk but I don't remember exactly. I'll need to check tomorrow.

Windows XP, JOGL 1.1.1, Java 1.5.0_04 (might be 02, not sure on that developer's machine), Eclipse 3.1.
Sorry for the lack of other details or code samples but they're at work, and I wanted to post this off this evening.

Cheers for any ideas.
5  Java Game APIs & Engines / JOGL Development / Re: eclipse jogl error on: 2005-10-24 14:53:55
NEVER copy anything into the jre directories. Will only lead to conflicts Angry


Can you tell us why it will lead to conflicts?  I've seen it suggested to place it there before and that's where i always put any of my required extensions rather than add things to the system classpath etc.
6  Java Game APIs & Engines / JOGL Development / Re: Eclipse/JOGL error question on: 2005-10-20 11:57:46
This is something i've seen irregularly over the past couple of years.  On the odd occasion it happens under windows.  Sometimes under linux it happens every time, until I restart eclipse or even reboot, but then it's ok.  Quite strange, but thankfully not too regular these days.

7  Java Game APIs & Engines / JOGL Development / Re: Multiple GLCanvas slow on: 2005-10-16 11:14:35
Don't forget, if you want your frame rate to exceed your monitor refresh rate you will have to disable vertical sync, normally in your driver settings.
8  Java Game APIs & Engines / JOGL Development / Re: Basic Textures In JOGl on: 2005-09-26 13:01:48
There's also an entire thread on this forum somewhere covering a TextureManager for loading and managing textures.  It was being extended some time ago to include avi and quicktime stuff as well but it's been a quiet thread for some time.
9  Java Game APIs & Engines / JOGL Development / Re: Alpha Blended Textures on: 2005-09-18 11:42:28
Assuming I'm actually on the right bandwidth with you, i've not had to do anything special in the past when it comes to effecting the alpha/translucency of a textured area.

Just glColor(red, green, blue, ALPHA); then draw your textured area, and the area is as translucent as the alpha I use.

10  Java Game APIs & Engines / JOGL Development / Re: Inconsistent results on: 2005-09-08 13:37:34
I've just given this a burl on my Inspiron 9200 w/ latest released JOGL, JDK1.5.0_4.
Funnily enough I get a mixture of the good and the bad.  I don't get the wireframe stauff over the base/spring/ball.  They're all nice and solid.
However, I don't get the text inside the yellow boxes.

One thing I DO get is clipping at the near plane during rotation.  You might want to change your near value in your ortho/perspective.
11  Java Game APIs & Engines / JOGL Development / Re: Coordinate flipping issue on: 2005-08-10 15:04:28
Invert the y coordinates in the vertexes (as opposed to the tex coords) as your subdividing your texture image?
12  Java Game APIs & Engines / JOGL Development / Re: Coordinate flipping issue on: 2005-08-03 11:20:41
You could also swap the Y coordinates of the top and bottom corners in your glOrtho call so your canvas Y coordinate system matches what swing uses.
13  Java Game APIs & Engines / JOGL Development / Re: Weird "disconnection" from Animator on: 2005-07-04 10:46:37
Hi Ken.

Unfortuantely for commercial reasons I cannot make my application available.  I can try and put together a simple example of multiple canvases in different windows and see if it's as simple as that.

The hardware that the problem occurs on is Redhat 9, Xi Graphics' Summit X server (in lieu of XOrg/XFree86) and a 3DLabs Wildcat VP880Pro.  I've not got any other linux hardware handy to test the problem at the moment.

Thanks.

Greg.
14  Java Game APIs & Engines / JOGL Development / Re: colors and their matching float values on: 2005-07-02 02:36:43
Write yourself a little test application that opens a window with a JColorChooser in it.  Very helpful.
Also I have a preference to use bytes (glColour3ub((byte)255,...) rather than floats so I can just use RGB values between 0 and 255.  No idea of any performance hit b/w this and floats.
15  Java Game APIs & Engines / JOGL Development / Re: Weird "disconnection" from Animator on: 2005-07-02 02:33:29
I'm just using the FpsAnimator with 25fps so there is no load on the position. I'm not sure about thread starvation because all of the application continues to work just fine, including all the Swing components updating fine.

Just to clarify, it's not that i'm constantly resizing the canvas, it's just that the action of resizing a canvas seems to be the prime (but not the only) cause of this disconnection.  Once I stop resizing a canvas (at some time during really) all of the canvases (1 to 4 may be open) stop being redrawn by their respective FpsAnimators.

The canvas just stops redrawing and the ONLY way to get it to refresh is by moving some other window over the canvas.  It's very strange.  All of my actions are managed but not visibly update, i.e. i can zoom and pan my scene with the mouse but i don't actually see any changes until i trigger some refresh action with an exposure event.

Very strange.
16  Java Game APIs & Engines / JOGL Development / Weird "disconnection" from Animator on: 2005-06-30 13:20:34
I'm experiencing a strange problem when running my application on Linux (but it's ok on Windows).

For some reason, although I'm yet to do a complete analysis, particularly if I'm resizing my second canvas (in a JFrame), the canvases stop refreshing unless I do something that causes an exposure/redraw event (via AWT?) on the canvas, i.e. move another window over the canvas(es).

I've not had a chance to see if the if the canvas isn't informing it's listeners or if the animator itself gets stuck, but it definitely only occurs on Linux (Redhat 9) and not on Windows XP.

JDK 1.5.0_02 on both platforms
JOGL 1.1.b12 on Linux (but in fact on all versions to date).
17  Java Game APIs & Engines / JOGL Development / Re: GLJPanel on: 2005-06-23 11:53:41
Hence their desire for transparency in those windows that overlay the primary view.  :/
18  Java Game APIs & Engines / JOGL Development / Re: GLJPanel on: 2005-06-22 00:18:10
Well, that's pretty handy, and typical, isn't it!  :/
19  Java Game APIs & Engines / JOGL Development / Re: GLJPanel on: 2005-06-21 08:02:55
I've definitely noticed massive performance differences between the CLCanvas and the GLJPanel.

For me to achieve a translucent window system I had to use JDesktop JInternalFrames.  I couldn't seem to find a way to draw JInternalFrames as heavyweight and hence other windows were were always below my JInternalFrames with a GLCanvas in it, hence my switch to the GLJPanel.  If I can find a way to use the GLCanvas instead, i'll be back in performance heaven.  At the moment I'm pretty much buggered the way it is now.  Any suggestions?
20  Java Game APIs & Engines / JOGL Development / Re: Someone with ATI Radeon 9700 mobility and Linux? on: 2005-06-21 07:58:06
One of my French colleagues has had Redhat 9 + XFree86 + DRI with on a Dell Inspiron 9100 w/ Radeon 9700 Mobility successfully running some time ago.  It's definitely possible.

G.
21  Java Game APIs & Engines / JOGL Development / Re: GLJPanel maximizing on: 2005-06-16 12:46:19
I've also just replaced the GLJPanel with a GLCanvas, and the GLCanvas retains the same (high) performance regardless of the size of the canvas whereas the GLJPanel degrades significantly the larger the canvas.
22  Java Game APIs & Engines / JOGL Development / Re: GLJPanel maximizing on: 2005-06-16 12:33:31
I've just discovered that my Inspiron 9200 had 1.1b11 as opposed to the b12 at work.  I've just upgrade to b12 and now i'm getting the context recreation (that causes a flickering/pause when it occurs) during recreation.
23  Java Game APIs & Engines / JOGL Development / Re: GLJPanel maximizing on: 2005-06-16 12:20:59
Further to this, I've noticed rapid degradation of performance with GLJPanel during resizing.  As I resize the panel to various sizes and the context is recreated (and hence reinitialised), each time this occurs the performance degrades quickly down to 1fps.

This is with a GLJPanel inside a JInternalFrame.

JOGL 1.1b12
Java 1.5.0_02
Windows XP
Dell Inspiron 9100 (3.2GHz P4) Radeon Mobility 9700 (I think with the Dell drivers) and also on a Dell Desktop w/ 3.0GHz P4 + NVdia 5260 (or something).

Interestingly I don't experience the quite same degradation on my Inspiron 9200 (Centrino 2.1GHz) Radeon Mobility 9700 w/ DNA Drivers.
24  Java Game APIs & Engines / JOGL Development / Re: jogl.jar architecture specific? on: 2005-05-24 00:59:01
jogl.jar is not platform specific.  it's the core java API and is cross platform.

it's the native jars that contain the *.dll, *.so, etc, that are platform specific.
25  Java Game APIs & Engines / JOGL Development / Re: 1.1b11 + multiple calls to init during resize on: 2005-05-23 01:51:27
That's interesting.  I'm using JDK 5.0.2.
26  Java Game APIs & Engines / JOGL Development / 1.1b11 + multiple calls to init during resize on: 2005-05-22 23:42:15
Is it normal to receive many calls to init(GLDrawawable) during resizing a drawable?

I've placed a GLJPanel inside a JInternalFrame and when I resize it, not only does init() get called many times on my GLEventListener during the resize but the performance degrades significantly.
27  Java Game APIs & Engines / JOGL Development / Re: Transparent canvas? on: 2005-05-22 09:59:42
Quote
I just realized I probably misunderstood your question. The AWT unfortunately does not currently support transparent top-level windows. However, if you're doing an MDI application with JInternalFrames, then using the GLJPanel should solve your problem as Swing components do support transparency.


Thanks for the suggestion Ken.  With a little more targeted dogpiling (the meta-search-engine, not some wierd Australian game) I was able to track down a few other sources.

As a result, I have developed a simple sample (sorry) using a JDesktopPane and JInternalPane(s) where the internal panes are either transparent or translucent. No robot, no grabbing pixels, etc.

Now I just have to incorporate a GLJPanel, and away we go.  Smiley

I'll keep you posted.

Greg.
28  Java Game APIs & Engines / JOGL Development / Re: Transparent canvas? on: 2005-05-11 11:30:34
Thanks for the responses guys.

Quote

1. System.setProperty("sun.awt.noerasebackground", "true");
This will turn off automatic background clearing
of AWT components, which GLCanvas is based on.


This seems to only not redraw it during resizing.
I've set up a JFrame with no other components.
The window shows the default light blue color (I think) .  If I don't set the property, then it resizes and retains it's color.  If I set the property to true, then it shows through during resize, but leaves rubbish behind at intervals where the border was as it resized, and it also fills out with colour when i finish the resize.  unfortunately not transparent.

Perhaps i'm missing something.


Quote

2. Use the Robot class to capture an image of
your desktop and turn it into a JOGL texture
which you use to fill the background of your
window.


This smells very CPU intensive.  Especially when I will have at least one canvas the size of the screen ALWAYS as the bottom-most window.  if I have to grab a texture for every window that's open over the canvas 23 times per second (if thats my refresh rate), this is going to hurt performance hugely.

Hmmmm.

Ken, I'll have to read your response again, perhaps a few times, to see what I have to do on that idea.  Smiley

Ta.

Greg.
29  Java Game APIs & Engines / JOGL Development / Transparent canvas? on: 2005-05-10 23:44:38
I'm facing pressure from my system engineers to tell them I can do transparent windows.

Part of this means I need transparency in my windows with glcanvases on them.

Is there any way to do this?

Thanks for any advice.

Greg.

ps. if you hav any advice on simply doing it in a java window i'd also like to know.  
30  Java Game APIs & Engines / JOGL Development / Re: jmenuitem desapearing behind the draw on: 2005-04-28 11:03:39
this has appeared a few times in the forums.  i suggest you do a search.
however,  take a look at setting the jmenuitem to draw as a heavyweight component.  normally they are lightweight and will be draw UNDER the heavyweight canvas.  if you make it heavy too it will draw ABOVE the canvas.
Pages: [1] 2 3
 

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

The first screenshot will be displayed as a thumbnail.

ctomni231 (33 views)
2014-07-18 06:55:21

Zero Volt (29 views)
2014-07-17 23:47:54

danieldean (24 views)
2014-07-17 23:41:23

MustardPeter (26 views)
2014-07-16 23:30:00

Cero (41 views)
2014-07-16 00:42:17

Riven (43 views)
2014-07-14 18:02:53

OpenGLShaders (31 views)
2014-07-14 16:23:47

Riven (30 views)
2014-07-14 11:51:35

quew8 (29 views)
2014-07-13 13:57:52

SHC (64 views)
2014-07-12 17:50:04
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!