Text over Player in 3D?
Posted 15 August 2010 - 04:05 PM
Secondly i'm just trying some things right now i'm not making a serious game in 3d..
I made up a 3rd Person "game" the player can walk around and so on.. (i don't use any models, only the build in functions of gm)
Now I want to display a Text over the head of the player.. Like the name or a text he's saysing..
The draw_text function only displays the text on the floor of my room.. i guess i need to do something with d3d_set_projection_ortho() or something.. but i don't know the values i need to fill in..
It should look like the names in 3d MMORPGS or something i hope you know what i mean..
any hints or solutions?
Posted 15 August 2010 - 04:21 PM
d3d_transform_set_identity(); d3d_transform_set_translation(0,0,0)//this will be the center d3d_transfrom_add_rotation_x(90);//This makes it go along the y and z axis I believe d3d_transform_add_rotation_z(direction from the player to the camera)//this will make it face the camera at all times. //Draw stuff goes here d3d_transform_set_identity();
I'm not sure if this is the correct order or whether you should use *set* or *add*, but mess around with this, it may at least help you.
Hopefully this will help spark an idea.
Posted 19 August 2010 - 04:12 PM
During the Game i create some instance which also have an 3D model, but I can't see them in 3D anymore.. now it shows me the 2D topview version without any colors (black only) can you tell me how to fix that?
Posted 19 August 2010 - 04:17 PM
Posted 19 August 2010 - 04:33 PM
Make sure the orthographic object has the lowest depth of any object.
Posted 21 August 2010 - 04:35 AM
You basically just make a billboard ontop of the player and draw the text onto it
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users