TextRenderer issue.

Hi All,
I’m having a difficult time finding the cause of the following problem:
The text in my app appears garbled.
I realize there was an issue with the TextRenderer on OS X, recently and as far as I can tell it’s been fixed.
I’m running Fedora 8 x64 with an NVidia card (updated to latest drivers), but still have the garbled text issue… (see attachment).
Any ideas?

Thanks.
Pete

Unfortunately I can’t reproduce this problem on Windows with the latest NVIDIA drivers. The problem on Mac OS X was a driver bug, but I don’t know the root cause nor when the fix will become available (to the best of my knowledge the problem is still present if you are running 10.5.5 with certain graphics hardware). It’s possible that there is something in JOGL’s texture code or TextRenderer which is provoking this issue in particular, but in the limited time I had to diagnose the issue on OS X I wasn’t able to find a bug.

I would suggest you try to ask for support and/or file a bug on NVIDIA’s web site.

Did you try the JOGL demos using textRenderer?
Maybe it could help you narrowing down your problem.
http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/FlyingText.jnlp

I have the same problem when running Ubuntu 8.10. When using TextRenderer, I get distorted text. This problem occured when upgrading from 8.04 to 8.10. Apparently some of the opengl drivers for my Intel graphics 945GM card changed, and it stopped working for me in ubuntu. I havent had any luck fixing this bug, it seems it might be some linux problem in general. I hope you find a fix so I can use it too :slight_smile:

I don’t reproduce this problem nor on Mandriva Linux 2007, neither on Debian Linux Etch.

Notice it might be specific to certain video cards?

I also experienced some distorted text on certain video cards when using TextRenrederer with smoohting set to flase.
However, it was nothing as critical as psipika get. Its was something like that: http://bugzilla.scilab.org/attachment.cgi?id=810.
It was also only appearing with some viewport size.
I guess it’s caused by the texture mapping which might be a bit different depending on video cards.

To fix this behaviour, I tried to use a scale factor of 1.001 when drawing the text. It’s pretty experiemental, but until now I haven’t experienced the issue any more.

However, for your problem, maybe you can play with the setSmoothing and setUseVertexArray options. Maybe it could help.

My problem is nothing like that, the text is unreadable and totally distorted. Sometimes it works for a few seconds. Look at the picture please :
http://e.imagehost.org/t/0987/textrenderer.jpg

Does anyone have the same problem?

try to visualize the texture, that is managed by the TextRenderer. there should be a function in the textrenderer that gets you the id. then you can bind it and show it on a screen-aligned-quad.

This bug seems similar to yours and is still opened:
https://jogl.dev.java.net/issues/show_bug.cgi?id=352.

This bug happens on my MBP 2.5GHz, NVidia 8600GM, OSX 10.5.5.

It is easily fixed (temporarily) using Jeff Addison’s TextRenderHack.
The code can be found in this forum.

.rex

it doesnt work…the TextRenderHack.

I was hoping for a quick fix so I could continue my project…heck, I’ll just wait till someone fixes it for me :smiley:

Use the previous version of TextRenderer (as I already do in TUER).

Where would I find the old version of TextRenderer? :slight_smile: I am very interested in some hotfix to cut down this bug while developing…

I used the TextRenderer from your “tuer” project, and it works like a charm! I could kiss you!

Thanks to everyone for their help!

You’re welcome. Please can you tell me which graphics card you use and which driver? I use the ATI Radeon 9250 Pro with an open source driver, I don’t reproduce your bug but I have another problem when mixing the use of TextRenderer and ARB VBOs.

Good luck :slight_smile:

I use an intel 945gm graphics card (its on acer aspire9410Z) in ubuntu 8.10 with the driver that shipped with the 8.10 cd. I am not having this problem with the native drivers on Windows.

Intel graphics chips are crappy and there are a lot of problems with them. Some Intel chips should support VBOs because of OpenGL 1.5 support but they don’t :frowning: I hope you won’t have any problems with text now.

I may have found an other alternative to fix the grabaled text.

I experienced the same problem under Fedora and with an Intel 855 card.

I found that the bug did not occure when using mipmaps in TextRenderer.

I just try add this line after any call to begin3DRendering :

gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_NEAREST_MIPMAP_NEAREST);

And it worked. So maybe it can help some other people having troubles with TextRenderer.

Note that the last argument of the line of code must be changed if you want smoothing.