Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: NevilleKemp

26. May 2012, 04:53:16 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Preferred method for drawing text?
Pages: [1]
Print
Author Topic: Preferred method for drawing text?  (Read 434 times)
ChrisE
Becoming dependent
**
Offline Offline

Posts: 104


View Profile
« on: 22. February 2011, 08:17:59 pm »

Marvin,

What're the different text drawing modes for rendering text in a scene? I've seen Text2D and TextBillboard, but how do they compare? What is the "correct" class to use for billboarded text?

Thanks!
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 23. February 2011, 09:43:59 am »

I would use TextRectangle or TextBillboard (depending on the requirements). These are the newer classes and I think, they're better. They use the same drawing scheme as the other text components, that I introduced into the project. They should be highly optimized, rendering the whole text on a single texture and single geometry/shape updated on demand.

The Text2D class composes the text of multiple geometries/shapes, one of each glyph. This can be pretty stressing of the scenegraph processors Wink.

Marvin
Logged
ChrisE
Becoming dependent
**
Offline Offline

Posts: 104


View Profile
« Reply #2 on: 23. February 2011, 05:55:55 pm »

Thanks!
Logged
ChrisE
Becoming dependent
**
Offline Offline

Posts: 104


View Profile
« Reply #3 on: 19. April 2011, 04:32:06 pm »

Marvin,

Though it's long past, I would like to note that if you use a TextBillboard without first pushing it into its own transform group, it can cause weird behavior (i.e., transform corruption) in sibling nodes.

-Chris
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #4 on: 19. April 2011, 05:57:06 pm »

ok, noted. Thanks.
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic