me again, if you use "set camera to object orientation" and then try to point the camera afterwards, it is facing the wrong direction, for example in this sample the camera is pointed at the middle of the matrix, if you press space then it is positioned at the object, set to its orientation and tilted down and moved backwards, this gives a chasecam effect, if you press space to toggle back to the remote view it
should just position the camera back at the original position and point it at the middle of the matrix, but it actualy seems to be inheriting the object orientation, if you turn the object and then switch back you get views that are wrong, I cant see any error in this code, it just seems to be this combination that gives weird results, it should just point the camera at 50,0,50, it actualy points it depending on how far you revolve the object (seems like)
sync on
sync rate 40
autocam off
cls (rgb(0,100,0))
for i=1 to 500
dot rnd(10),rnd(10),rgb(rnd(255),rnd(255),rnd(255))
next i
get image 1,0,0,11,11
make matrix 1,100,100,10,10
randomize matrix 1,10
set matrix wireframe off 1
prepare matrix texture 1,1,1,1
update matrix 1
make object sphere 1,1
color object 1,rgb(255,0,0)
position object 1,50,0,50
chasecam=0
do
if upkey() then move object 1,0.1
if downkey() then move object 1,-0.1
if leftkey() then turn object left 1,1
if rightkey() then turn object right 1,1
floor#=get ground height(1,object position x(1),object position z(1))+0.5
position object 1,object position x(1),floor#,object position z(1)
if spacekey()
chasecam=1-chasecam
repeat
until spacekey()=0
endif
if chasecam=0
position camera 0,30,0
point camera 50,0,50
text 0,0,"static view"
endif
if chasecam=1
position camera object position x(1),object position y(1),object position z(1)
set camera to object orientation 1
pitch camera down 45
move camera -10
text 0,0,"chase camera"
endif
sync
loop
Me!
edit: new install, last editor patch, update 5.8
we know where area 51 is, but where are areas 1 to 50?, and what do they do there?.