about the camera view in tutorial03
2 posters
about the camera view in tutorial03
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
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
Re: about the camera view in tutorial03
You will find the answer in this thread:
https://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
https://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
Re: about the camera view in tutorial03
Oh, I'll have a try with sio2LookAt, thanks
zyzyandzyzy- Posts : 11
Join date : 2009-09-18
Similar topics
» Using my own camera
» Top-down View
» Camera problems
» Camera strafe
» Looking for some guidance on game loop and 2d/3d view switching
» Top-down View
» Camera problems
» Camera strafe
» Looking for some guidance on game loop and 2d/3d view switching
Permissions in this forum:
You cannot reply to topics in this forum