Rejn 0 Posted July 26, 2007 Just wondering if anyone has managed to get a smooth camera inside a heli? I have a camera loop and it works fine however in the search for perfection Im trying to get the camera to be level with the heli at all times. The helicopter bobs up and down whilst the camera does not... making it seem a little out of place. The target is a variable that changes. The camera is inside the helicopter via: [getpos heli select0, getpos heli select1, getpos heli select 2 + 0.5] Unfortunatley the helicopter bobs up and down and the camera does not. Its probably the tilt of the heli... anyone get a smooth cam inside a heli? The heli is on full speed.. mabey thats it? ;/ any tips / hints etc welcome. The problem with setrelpos is that it requires the heli to be the target if I want camera stability... Is there a way I should set the tilt/bank to the helicopters? Share this post Link to post Share on other sites
dmarkwick 261 Posted July 26, 2007 Sounds like you might need to reduce the interval between camera position updates. If there's a sleep command in the script somewhere, try drastically reducing it to force more "resolution". Share this post Link to post Share on other sites
Rejn 0 Posted July 26, 2007 theres no pause in the loop D: it just checks the counter to find out wether it needs to go on to the next camera loop. Apart from that it sets the cam position but theres no pauses in the script. The main problem is that the getpos command takes the position of the helicopters center. The camera is at the front of the blackhawk in the cockpit and with the helicopter tilting up and down on an angle the camera doesn't tilt because the helis height is still the same.. however the height position of its nose and tail varies... :/ Share this post Link to post Share on other sites
dmarkwick 261 Posted July 26, 2007 Can you attach the camera to the pilot instead? Share this post Link to post Share on other sites
t_d 47 Posted July 26, 2007 Use camSetRelPos or modelToWorld command. Share this post Link to post Share on other sites
Rejn 0 Posted July 27, 2007 I can't use camsetrelpos as I have the camera inside a heli but its target is a jet fighter outside of the heli... Ive been playing around with modeltoworld but can't get it to work. My loop script is as follows: Quote[/b] ] _cam settarget jetfighter _cam camsetpos [(getpos helicopter select 0) + 4.4,(getpos helicopter select 1) ,(getpos helicopter select 2) + 1.6] _cam cameraeffect ["internal","back"] _cam camcommit 0 @ camcommited _cam ~0 +4.4 to move the camera 4.4 units east in the direction that the heli is flying. If the heli was to turn north or south the camera would sit outside of the heli. +1.6 to get the right height. I tried this but it didn't work: Quote[/b] ]_Offset = [(getpos helicopter select 0) + 4.4,(getpos helicopter select 1) ,(getpos helicopter select 2) + 1.6] _worldPos = helicoper modelToWorld _Offset; _cam settarget jetfighter _cam camsetpos _worldpos (also tried _cam setpos) _cam cameraeffect ["internal","back"] _cam camcommit 0 @ camcommited _cam ~0 The camera just stops and stays in one position during the entire loop. Does anyone know how I could work around this? Or what im doing wrong? Share this post Link to post Share on other sites
Rejn 0 Posted July 27, 2007 Nevermind. I found it. I got the name wrong on the model... Works now... Oh my... its beeeeeeutiful... Thanks mate Share this post Link to post Share on other sites