Im want draw names above players and monsters
Anybody know how im can draw text with x,y,z coordinates?
Draw text in 3D
There was almost the same quaestion a few days ago. Use
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
Code: Select all
irr::sceneCollisionManager.getScreenCoordinatesFrom3DPosition(pos, cam)
Have a look at the API for further details...
greetings, rincewind
PS: The search function is also very useful to quickly answer your questions
-
- Posts: 52
- Joined: Tue Mar 30, 2004 12:16 pm
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
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
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 =-