Home   Help Search Login Register  

Author Topic: fixed cam on moving obj  (Read 491 times)

0 Members and 1 Guest are viewing this topic.

O Neil

  • Guest
fixed cam on moving obj
« on: 06 Jun 2004, 06:27:46 »
Hey

How do I get the camera on a helicotper for example, to stay in one place that I specify (eg the inside of the heli, up in the cockpit (yes using co-ordinates)) ?

If it can be done, how do I get it to target another object/unit from that pos ?

I've tried that script that was made excactly for this, but i dunno how to end the script for it uses a description.exc & it'll take over my previous one. & + i didn't know how to make the camera move :S

(O'Neil

Rokket

  • Guest
Re:fixed cam on moving obj
« Reply #1 on: 06 Jun 2004, 09:45:38 »
I think you can use Relative Position. This will keep the camera near the target in a certain position no matter where the target is. EG:

_camera camsettarget chopper1
_camera camsetrelpos [5,5,1]

that means the camera is 5 meters to the right, 5 meters in front, and 1 meter up

As for targeting another object from that position, I think u could use getPos as in:


;new camera shot
_camera camSetTarget newobject1
_camera camSetPos getpos chopper1
_camera camSetFOV 0.7
_camera camCommit 0
@camCommitted _camera

This should make the camera switch to the new object ("newobject1"), but position itself at chopper1 (probably the center, don't know  :-\).


Offline Blanco

  • Former Staff
  • ****
Re:fixed cam on moving obj
« Reply #2 on: 06 Jun 2004, 12:24:37 »
Did you try Logicam1.0

« Last Edit: 06 Jun 2004, 12:25:00 by Blanco »
Search or search or search before you ask.

DBR_ONIX

  • Guest
Re:fixed cam on moving obj
« Reply #3 on: 06 Jun 2004, 13:19:28 »
Yeah, I thank thats what Logiccam does..
Or is it vehicle came

It getpos's the vehicle, and sets the camera to, say, [vehiclex + 5] etc

And does that in a loop

And maybe some trig so it stays at the side of the plane, not just north of it

But, yeah, look at that logiccam, or vehicle cam in the editors depot :)
- ben

Offline Blanco

  • Former Staff
  • ****
Re:fixed cam on moving obj
« Reply #4 on: 06 Jun 2004, 13:36:39 »
With vehiclecam you can take camerascenes of a moving vehicle, the camera stays always in the same relative position. The object is always focusted.
Logiccam is based on same principle,
But Logiccam allows you to hold the camera on a roof of a moving truck , following a plane in the air.

 
Search or search or search before you ask.

DBR_ONIX

  • Guest
Re:fixed cam on moving obj
« Reply #5 on: 06 Jun 2004, 18:35:16 »
Ohhh.. I see
I was kinda upside down with that

I'll have a look at logic cam :)
- Ben