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 / Dumb question about using plains

Author
Message
squids
21
Years of Service
User Offline
Joined: 1st May 2003
Location: United Kingdom
Posted: 6th Jun 2003 22:56 Edited at: 7th Jun 2003 01:18
Second try,

Can anyone explain,. or give an example of using plains. How to create and position them. I am interested in finding out how to create and position plains for a HUD. Can anyone help?

Many Thanks
Ash.

.Arf..
LoKiDeCaT
22
Years of Service
User Offline
Joined: 28th Aug 2002
Location: United States
Posted: 7th Jun 2003 01:17
if you create something, and don't position it, it will appear at 0,0,0 as you've surmised.

Try this:



Loki D'Cat - Modeller, Composer, Animator
Nerdsoft Creations
Machine Specs: Athlon XP1800+, ATi Radeon 8500 64mb, 1GB RAM, Windows 2000 AdvSvr
squids
21
Years of Service
User Offline
Joined: 1st May 2003
Location: United Kingdom
Posted: 7th Jun 2003 01:23
Thanks LoKiDeCaT,

Thats great, it appears and works,. wow! Just have one other question >.< I cant figure out how to position the plain so it sticks to say, the top right of the screen as a HUD. Sorry for being a pain

Ash.

.Arf..
LoKiDeCaT
22
Years of Service
User Offline
Joined: 28th Aug 2002
Location: United States
Posted: 7th Jun 2003 01:43 Edited at: 7th Jun 2003 01:56
well, you're trying to do a 3d object to 2d. the only way to do that, is to use: "LOCK OBJECT ON 1" (1 being the object number)

then it does that.

But most people use Sprites for their HUD's.

heh generic test:



edit: ignore my matrix texturing code.. it's all messed up.. but the important thing is the lock object on command

Loki D'Cat - Modeller, Composer, Animator
Nerdsoft Creations
Machine Specs: Athlon XP1800+, ATi Radeon 8500 64mb, 1GB RAM, Windows 2000 AdvSvr
Phoenix
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 7th Jun 2003 02:59
If your trying to use it for a hud then just use

box 0,0,1000,1000

and color the box black and put it at the end of your main loop it will still work even though it is a 3d game
then you can put what ever you want on the screen.

position object myFoot,object position x(yourFace),object position y(yourFace),object position z(yourFace)
squids
21
Years of Service
User Offline
Joined: 1st May 2003
Location: United Kingdom
Posted: 7th Jun 2003 13:58
I like the Sig Fez =O)

Okay,

Both examples work great,. Thanks a lot,. I wont ask anymore questions about it for a bit,. ill try and figure out how to texture it or use a sprite etc etc,. thanks a lot for your help, much appreciated

Ash.

.Arf..

Login to post a reply

Server time is: 2024-11-24 16:41:51
Your offset time is: 2024-11-24 16:41:51