about the camera view in tutorial03

View previous topic View next topic Go down

about the camera view in tutorial03

Post  zyzyandzyzy on Thu Sep 24, 2009 7:58 am

Hi,

I'm trying to get a top-to-down view, in tutorial03, I adjust the camera data like this:
camera( "camera/Camera")
{
l( 0 0 4 )
d( 0 0 -1 )
f( 45 )
cs( 1 )
ce( 100 )
}

But I got black screen.
After I adjust the d property a little: (0 0.1 -0.9), I can see things, but all objects looks strange and distorted. Can anyone help me understand how to set the camera data? So far I only know the l is the location and r is rotation (actually doesn't affect anything), the d seems to be the direction of the view, right? If so, why (0 0 -1) doesn't cause straight top-to-down view?

Thanks a lot
Yi

zyzyandzyzy

Posts : 11
Join date : 2009-09-18

View user profile

Back to top Go down

Re: about the camera view in tutorial03

Post  Francescu on Thu Sep 24, 2009 9:29 am

You will find the answer in this thread:
http://sio2interactive.forumotion.net/sio2-engine-f3/problem-with-camera-look-down-t371.htm

You should not fiddle with what's being exported from the SIO2 exporter as there is no guarantee this will be forward compatible with future releases...

There is actual code to be changed in tutorial03 for this to work - you can also do an advanced search on ' sio2LookAt' in the forums besides the thread above...

Hope this helps

--Frank

Francescu

Posts : 136
Join date : 2009-03-18

View user profile

Back to top Go down

Re: about the camera view in tutorial03

Post  zyzyandzyzy on Thu Sep 24, 2009 10:00 am

Oh, I'll have a try with sio2LookAt, thanks

zyzyandzyzy

Posts : 11
Join date : 2009-09-18

View user profile

Back to top Go down

Re: about the camera view in tutorial03

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum