Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Write 3D Name (strings) in 3D models #148380
08/16/07 18:21
08/16/07 18:21
Joined: Aug 2006
Posts: 78
A
amadeu Offline OP
Junior Member
amadeu  Offline OP
Junior Member
A

Joined: Aug 2006
Posts: 78
Hello,

I am creating one multiplayer game but I would like to know how I could add one 3D string with name of player (user) in some part of avatar(model) dinamically (through one string)? this name of player will be to identify the player in the game.
Anyone has some suggestions?
Thanks

Re: Write 3D Name (strings) in 3D models [Re: amadeu] #148381
08/16/07 19:49
08/16/07 19:49
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline
User
MrCode  Offline
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
Are you talking about a name that hovers above the player?

You need to use a text with vec_to_screen.

When you want to have the player type in a name, just use inkey();.


Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
Re: Write 3D Name (strings) in 3D models [Re: MrCode] #148382
08/16/07 20:09
08/16/07 20:09
Joined: Aug 2006
Posts: 78
A
amadeu Offline OP
Junior Member
amadeu  Offline OP
Junior Member
A

Joined: Aug 2006
Posts: 78
hallo,

I want to create or draw one 3D name (STRING) in 3D environment like as I can create one line in 3D with the function draw_line3d.
For exemple, when my model or avatar rotate, the 3d name (string) also rotates with him.

do you have some suggestios?

Re: Write 3D Name (strings) in 3D models [Re: amadeu] #148383
08/16/07 20:11
08/16/07 20:11
Joined: Oct 2006
Posts: 873
S
Shadow969 Offline
User
Shadow969  Offline
User
S

Joined: Oct 2006
Posts: 873
yes, he gave you one if you're not very familiar with scripting check out AUM - there was a function for displaying a string over entity

Re: Write 3D Name (strings) in 3D models [Re: amadeu] #148384
08/16/07 20:14
08/16/07 20:14
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline
User
MrCode  Offline
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
Maybe you could create letter sprites, and assign each one to a key on the keyboard(ent_create them, and move them by code with the player, but this will take a little math, due to the fact that most (if not all) letters are not in the exact center). Or if you want to be fancier, you could use models.

This could get very tedious, though. You would have to do either tons of ifs, or one big switch/case statement (wouldn't be much easier) for each key:

Code:

switch(letter)
{
case key_a:
// code goes here
case key_b:
// and here...
case key_c:
// you know what to do.

...

case key_z:
//hooray! you're almost done!
}



Last edited by MrCode; 08/16/07 20:23.

Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
Re: Write 3D Name (strings) in 3D models [Re: Shadow969] #148385
08/16/07 20:30
08/16/07 20:30
Joined: Aug 2006
Posts: 78
A
amadeu Offline OP
Junior Member
amadeu  Offline OP
Junior Member
A

Joined: Aug 2006
Posts: 78
Hi,

His suggestion give me the name in 2D position (on screen) but i don“t want this. i want the name string in 3D position. Understand?

Re: Write 3D Name (strings) in 3D models [Re: amadeu] #148386
08/16/07 20:34
08/16/07 20:34
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline
User
MrCode  Offline
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
And I just gave you an idea on how to use 3D. .

Re: Write 3D Name (strings) in 3D models [Re: MrCode] #148387
08/16/07 21:00
08/16/07 21:00
Joined: Aug 2006
Posts: 78
A
amadeu Offline OP
Junior Member
amadeu  Offline OP
Junior Member
A

Joined: Aug 2006
Posts: 78
MrCode, I did not answer my last message to you. i answeres to Shadow969.

But I did not understand you suggestion.
I have one database with some string and I want to put each string in this database in one 3D model (one cube).
I saw in some games that when soneone login in the game his name appear in 3D over the avatar. I would like to do the same in my game.

thx

Re: Write 3D Name (strings) in 3D models [Re: amadeu] #148388
08/16/07 21:31
08/16/07 21:31
Joined: Oct 2006
Posts: 873
S
Shadow969 Offline
User
Shadow969  Offline
User
S

Joined: Oct 2006
Posts: 873
http://aum.conitec.net/aum32/english/aum32/index.html
beginners corner -> strings above entities
Is that what you mean?


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1