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 / LOCK OBJECT ON

Author
Message
Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 11th Oct 2003 03:55
i am using the lock object on command for a fps, but when i do it does not seem to register the locked object position....i use the OBJECT POSITION X,Y,Z, but it would not give mw any reading aside from the initioal position....any help?

"When you were born, you cried and the world rejoiced. Live so when you die, the world cries and you rejoice."
Icy_Blue
21
Years of Service
User Offline
Joined: 29th Sep 2003
Location:
Posted: 11th Oct 2003 07:31
when you use Lock Object ON objectNumber

it mean .. you put camera at position (0,0,0) so you must put object at position (0,0, +z) and disable object zdepth you can see object

try this

** sorry for my poor english **
Icy_Blue
21
Years of Service
User Offline
Joined: 29th Sep 2003
Location:
Posted: 11th Oct 2003 07:40
where is my code?...

try again
=========================
` Project: Lock Object
` Program: Icy_Blue [Thailand]
` Created: 10/10/2003 00:00:00

sync on : sync rate 0
autocam off

`make matrix
make matrix 1, 500, 500, 10, 10
position matrix 1, -250, 0, -250

`make cube for lock
make object cube 1, 2
color object 1, rgb(250, 250, 250)
disable object zdepth 1
position object 1, 0, 0, 10
color object 1, rgb(0, 255, 250)
lock object on 1

`position camera
position camera 0, 500, -500
point camera 0, 0, 0

i as float
repeat
`pan camera
i = wrapvalue(i + 0.5)
yrotate camera sin(i) * 30
`update screen
sync
until escapekey()
Icy_Blue
21
Years of Service
User Offline
Joined: 29th Sep 2003
Location:
Posted: 11th Oct 2003 07:41
where is my code?...

try again
=========================
` Project: Lock Object
` Program: Icy_Blue [Thailand]
` Created: 11/10/2003 10:40:00

sync on : sync rate 0
autocam off

`make matrix
make matrix 1, 500, 500, 10, 10
position matrix 1, -250, 0, -250

`make cube for lock
make object cube 1, 2
color object 1, rgb(250, 250, 250)
disable object zdepth 1
position object 1, 0, 0, 10
color object 1, rgb(0, 255, 250)
lock object on 1

`position camera
position camera 0, 500, -500
point camera 0, 0, 0

i as float
repeat
`pan camera
i = wrapvalue(i + 0.5)
yrotate camera sin(i) * 30
`update screen
sync
until escapekey()
Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 12th Oct 2003 00:21
thank you for the code it worked perfectly....but my question was whether or not dbc registers the objects position if it is locked on the screen...thanks again

Bishop

"When you were born, you cried and the world rejoiced. Live so when you die, the world cries and you rejoice."

Login to post a reply

Server time is: 2024-11-25 13:51:33
Your offset time is: 2024-11-25 13:51:33