Draw text in 3D

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Lantis

Draw text in 3D

Post by Lantis »

Im want draw names above players and monsters
Anybody know how im can draw text with x,y,z coordinates?
rincewind
Posts: 35
Joined: Thu Mar 25, 2004 5:28 pm
Location: Germany --> Bonn

Post by rincewind »

There was almost the same quaestion a few days ago. Use

Code: Select all

irr::sceneCollisionManager.getScreenCoordinatesFrom3DPosition(pos, cam)
to get 2D-Coordinates, and then simply add a staticText.
Have a look at the API for further details...

greetings, rincewind

PS: The search function is also very useful to quickly answer your questions ;)
Lantis

Post by Lantis »

No , im need draw text in 3D scene by xyz coords , not on top of screen.
Seems Irrlicht not allow it ;(
StuCollier
Posts: 52
Joined: Tue Mar 30, 2004 12:16 pm

Post by StuCollier »

Look at Billboards. These will allow a texture to be placed in a 3D world - but always facing the camera - which I presume you will require as they are names.

DO a quick search in the API for Billboards they are very easy. You can in fact attach the Billboard to your character - so where ever your char moves the billboard will follow
StuC
Freeware games
www.ovine.net
dingo
Posts: 95
Joined: Tue Mar 09, 2004 5:02 am
Location: Brisbane, Australia
Contact:

Post by dingo »

I know this isn't what your after but nehe.gamedev.net has a tutorial that shows how to do it from scratch - might provide you with some info or allow you to add that functionality
-= Want your C code to control real life robots? www.users.on.net/~symes =-
Post Reply