PDA

View Full Version : Font 3D rendering problem


Renato Lima
09-29-2010, 04:04 PM
I have been trying to use font3d with billboard effect for a while now, but I am having the following problem: after walking around my 3d world for a while, the fonts start to render in a very strange manner. Attached you will find an example of the problem I am having.

http://dl.dropbox.com/u/7393/problem.jpg


This is the code I am using:
A = viz.add(viz.TEXT3D, iso, B)
A.alignment(viz.TEXT_CENTER_CENTER)
A.translate(0, H/2.0 + 0.25, 0)
A.color(0, 0, 0)
A.scale(0.15, 0.15, 0.15)
A.billboard(viz.BILLBOARD_YAXIS)

ideas?? Thanks

Renato Lima
10-02-2010, 04:37 PM
The problem starts when the camera gets far away from the object.
It happens even when resolution of the 3dtext is max.

farshizzo
10-07-2010, 12:06 PM
This looks like a draw ordering issue between the text and the object behind it. Does the object behind the text object contain transparency? If not, then try forcing that object to a lower draw order than the text object:object.drawOrder(0)Let me know if this helps.

Renato Lima
10-07-2010, 04:30 PM
Yes, it has solved the problem. Thanks!