[BUG] TextRenderer broken in 1.1.1 (+Workaround)

While the TextRenderer works perfectly in my desktop application, in the applet only some dots are visible. When I want to move the text, it even seems to rotate (EDIT: no, that’s right, forget it. NO transformation problem!).
I did not investigate more on this problem yet, I just wanted to ask if it is an already known problem!

Unfortunately I could not find any JOGL applets using the TextRenderer on the web - are there examples?

I tried with appletlauncher with the newest JOGL build. The same JOGL build works perfectly for the Java application.

Here is a screenshot how it should look (and how it looks in the desktop application):

Here is the applet to try out (do you also see only some dots?):
(if not loading in fullscreen, reload the webpage, then it should work)

http://home.cs.tum.edu/~wengera/jogl/applet.html

The three source files can be also found at:
http://home.cs.tum.edu/~wengera/jogl/

Thanks for testing!

works for me - looks like on the screenshot.

some ideas:
-ether try clearing the depth buffer too or disable depth testing gl.glDisable(GL.GL_DEPTH_TEST); (I think its enabled by default)
-don’t set the near frustum pane to exactly 0. Since you are doing 2d rendering something like gl.glOrtho(0, getWidth(), 0, getHeight(), -1, 1); should work better

(I only took a quick look at your code but it looks like you are currently rendering exactly on the frontpane which could cause clipping problems in general)

Thanks for testing and your ideas (your ideas could not solve the problem unfortunately). I noticed, that it works perfectly on Windows XP, but not on my Ubuntu 8.10 (GNOME).
On Ubuntu, this official demo works fine, too: http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/TextFlow.jnlp
But when I compile it myself (sources from SVN) and run it, I have the exactly same problems as described above (not in an applet, but in a desktop application). Interestingly, I get the following error when running (not on Windows!).

Any idea (Ken?), if this is may be the cause for the problem? What’s going wrong?

Aaaaah… I tried it with older versions of JOGL:

[tr][td]JSR-231 1.1.0-rc3 - February 14[/td][td]Looks OK (but errors (with errors in .so) in console: 1)[/td][/tr]
[tr][td]JSR-231 1.1.0 - April 22[/td][td]Looks OK (but error in console: 2)[/td][/tr]
[tr][td]JSR-231 1.1.1-rc1 - May 7[/td][td]Looks OK (but error in console: like 2)[/td][/tr]
[tr][td]JSR-231 1.1.1-rc2 - May 24[/td][td]Looks OK (but error in console: like 2)[/td][/tr]
[tr][td]JSR-231 1.1.1-rc3 - July 4[/td][td]Looks OK (but error in console: like 2)[/td][/tr]
[tr][td]JSR-231 1.1.1-rc4 - October 9[/td][td]Looks BROKEN3 (error in console: like 2)[/td][/tr]
[tr][td]JSR-231 1.1.1-rc5 - October 11[/td][td]Looks BROKEN3 (error in console: like 2)[/td][/tr]
[tr][td]JSR-231 1.1.1-rc6 - October 19[/td][td]Looks BROKEN3 (error in console: like 2)[/td][/tr]
[tr][td]JSR-231 1.1.1-rc7 - February 16[/td][td]Looks OK (but error in console: like 2)[/td][/tr]
[tr][td]JSR-231 1.1.1-rc8 - February 22[/td][td]Looks BROKEN4 (error in console: like 2)[/td][/tr]
[tr][td]JSR-231 1.1.1 - May 22[/td][td]Looks BROKEN4 (but error in console: like 2)[/td][/tr]

I guess that the rror in the console has nothing to do with the bug (since it works with some versions despite the error message).

I could imaging that some features of the video driver are missing within applets (for example, antialiasing does not work on my nvidia Quadro), and the TextRenderer uses some of these features? That’s why it fails?

As a workaround, I can use RC7, but the error should be fixed in the new version of JOGL! Or do you have an idea, which things I have to change so it works with 1.1.1, too? Thanks!

works here, but:
it updates only if I scroll the page or drag a window on top.

And it looks like if(updatecount%2==0)clearTheScreenGrey(); so I see nothing but grey background.

FF on Vista, update12

Thanks, I will test that, too (I guess my code is just too bad. I wrote it quickly just to try out if text rendering works).

[b]Workaround for the Bug (tested with my “serious” application, too):

Use 1.1.1-rc7 instead of 1.1.1.
(Webstart available at: http://home.in.tum.de/~wengera/webstart/jogl-1.1.1-rc7 )[/b]

I hope, the bug will soon be fixed.

I even use a very old version of TextRenderer and I don’t reproduce this bug.

I dunno what version of text renderer I have but it looked fine to me?

As already said, it works fine on Windows, but it is broken on Linux (Ubuntu 8.10). I tested it with two different computers, having two different NVIDIA video cards.

Ok I’m under Linux but I have only ATI cards. Does it come from the driver??