Hi, I was wondering if you may be able to help me out. I wrote this for a menu. So far it consists of a matrix, cube for the room and camera control. If you place the mouse to the very left of the screen you can pan around. I have a problem, the corners of the room turn blue when I look at them. I'm using DB 1.13. I'd be grateful for any help. TIA.
make matrix 1,10000.0,10000.0,25,25
make object cube 1,4500
position object 1,2500,0,2500
`texture object 1,1
set object 1,1,1,0
enable escapekey
x#=2500
z#=2500
sync on
do
if mousex()=0 then a#=wrapvalue(a#-2.5)
if mousex()=1023 then a#=wrapvalue(a#+2.5)
ca#=wrapvalue(curveangle(a#,ca#,12.0))
cx#=newxvalue(x#,wrapvalue(ca#+180),300)
cz#=newzvalue(z#,wrapvalue(ca#+180),300)
cy#=get ground height(1,cx#,cz#)+350.0
position camera cx#,cy#,cz#
yrotate camera wrapvalue(ca#)
sync
loop