Page 1 of 1

customising external views.

Posted: Thu Nov 18, 2010 10:00 pm
by Yodeebe
HelloO.
could someone explain the numbers in the external views for me please?
I'm after some more cinematic views. when things are quieter, it's nice to lose the hud, switch to external, and go put the kettle on. ;)

custom_views =


view_description = "Rear Right View";
ok, so thats the name that appears on screen.

view_orientation = "0.9239 0.0 0.3827 0.0";
4 numbers javascript:emoticon(':?')

view_position = "141.42 10.0 -141.42";
3 numbers javascript:emoticon(':?')
weapon_facing = "FORWARD";
what's weapons got to do with it? :?

Many thanks commanders.

Posted: Thu Nov 18, 2010 10:20 pm
by Griff
I can explain the view_position & the weapon_facing settings, i'm not so hot on the view_orientation setting, other than that it is a quaternion that tells oolite which way the camera is pointing. http://en.wikipedia.org/wiki/Quaternion

view_position these are X Y Z co-ordinates for the placement of the camera, ships are (usually) centered on 0,0,0 so "141.42 10.0 -141.42" is 141.42 'distance units' along X (port/starboard axis), 10.0 distance units on Y the 'up/down' axis (positive numbers are 'up', negative are 'down') and -141.42 distance units on the Z axis (fore/aft axis), negative numbers put the camera behind the ship, positive in front.
weapon_facing just lets Oolite know which laser should fire when shooting in that external view