Author Topic: text above object3d  (Read 1180 times)

Offline 9kaywun

  • byte
  • *
  • Posts: 20
  • Java Programmer
    • View Profile
text above object3d
« on: August 06, 2012, 10:06:33 am »
I know about text blitting, but what determines the coordinates I would use to place text above models..?
« Last Edit: August 06, 2012, 10:18:40 am by e3d »
Developing a 3D multiplayer engine using jPCT:
Deleted, will return soon..

Offline vickt

  • byte
  • *
  • Posts: 9
    • View Profile
Re: text above object3d
« Reply #1 on: August 06, 2012, 04:16:03 pm »
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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: text above object3d
« Reply #2 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.

Offline 9kaywun

  • byte
  • *
  • Posts: 20
  • Java Programmer
    • View Profile
Re: text above object3d
« Reply #3 on: August 06, 2012, 08:25:19 pm »
Thanks for the replies guys.

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..