text above object3d

Started by 9kaywun, August 06, 2012, 10:06:33 AM

Previous topic - Next topic

9kaywun

I know about text blitting, but what determines the coordinates I would use to place text above models..?
Developing a 3D multiplayer engine using jPCT:
Deleted, will return soon..

vickt

What kind of effect are you looking for? Statically sized text above an object that cannot be occluded, or text that appears to be physically above the object and translates with it?

If you're trying to do the latter, the way I would go about this is instead of using blitting, texture a 2d rectangle with bill boarding enabled, and attach it as a child to the object it should be above, then translate it up some number of units until it is above the object.

If you are looking for statically sized text using blittting, this could take some thought.

EgonOlsen

Interact2D contains some methods to project an Object3D's center to screen coordinates. That should help with the blitting.

9kaywun

Thanks for the replies guys.

Quote from: EgonOlsen on August 06, 2012, 05:41:31 PM
Interact2D contains some methods to project an Object3D's center to screen coordinates. That should help with the blitting.

That's cool. I'll get it now.
Developing a 3D multiplayer engine using jPCT:
Deleted, will return soon..