Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / DBPro text in 3d

Author
Message
RadiusOFT
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Aloha, OR(egon)
Posted: 5th Jun 2006 02:03
hey
you know in games like everquest and wow where the text appears above someones head in a word bubble? well how would you do somthing like that in dbpro?

Do or do not... there is no try -yoda
cats fit best in a george forman - not yoda
Slayer93
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: I wish I knew
Posted: 5th Jun 2006 02:20
you could make an image with text then texture it on a plain. Then position it above the player and always point it to the camera.

Or

You can get the screen position of the player using object screen x() and object screen y() and paste the image or text there

NARUTO IS THE NINJA.....not really
[url=http://forum.openmmo.co.uk/index.php?topic=328.0]
WIP...4 Elements
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 5th Jun 2006 02:21 Edited at: 5th Jun 2006 02:21
You can retrieve an objects position on the screen using these commands:

OBJECT SCREEN X
and
OBJECT SCREEN Y

in DarkBASIC Professional. You can then store the values and use them to print stuff at an objects position on the screen.

EDIT : I was typing as you posted.


RadiusOFT
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Aloha, OR(egon)
Posted: 5th Jun 2006 02:39
but what about the depth of the little text
if i used the object screen then there would be no depth to the text

Do or do not... there is no try -yoda
cats fit best in a george forman - not yoda
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 5th Jun 2006 02:56
Okay. Then you might want to try the method Slayer93 mentioned:

Quote: "you could make an image with text then texture it on a plain. Then position it above the player and always point it to the camera."



RadiusOFT
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Aloha, OR(egon)
Posted: 5th Jun 2006 03:54
im sure i could go figure it out in the help but it would probably just be easier to ask... how exactly can i do that can you give me an example?

Do or do not... there is no try -yoda
cats fit best in a george forman - not yoda
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 5th Jun 2006 04:00
Im sure I could help you out but it'd probably just be easier not to.

If you know you can find the answer, you generally end up learning a lot more trying to figure it out yourself instead of just getting some code to copy/paste from here. Take a stab at it, then come back here with your code and we'll try to sort things out.

Or just wait as Im sure someone will eventually answer.

Login to post a reply

Server time is: 2024-11-27 17:31:36
Your offset time is: 2024-11-27 17:31:36