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 / Camera is inside a wall

Author
Message
XoRiC
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Germany
Posted: 24th Nov 2002 21:44
hi
I'm a totally newcomer...
I just ran some examples and learnt how to create a matrix and move in it (turn camera + set camera position)
my matrix has got a lot of hills.
now my problem is, that when I climb up a hill the camera is inside the hill and I see under the matrix!
What can I do against that?
Thank you very much!!
XoRiC
jotomicron
21
Years of Service
User Offline
Joined: 17th Nov 2002
Location: Portugal
Posted: 24th Nov 2002 21:52
well!
you could get de ground height!
Use GET GROUND HEIGHT(n,x#,z#) where:
n=matrix number
x#=camera position x()
z#=camera position z()

It will return the height of the exact place where the camera is. Increase it a little and set this number the y position of the camera.
jotomicron
21
Years of Service
User Offline
Joined: 17th Nov 2002
Location: Portugal
Posted: 24th Nov 2002 22:05


here is a example of how to do it!
Have fun programing!!!
XoRiC
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Germany
Posted: 25th Nov 2002 20:39
hi
that is exactly what I did!
but the problem is, that when I look down the camera is in the wall!
thanks for your help!
XoRiC

Login to post a reply

Server time is: 2024-04-20 05:51:26
Your offset time is: 2024-04-20 05:51:26