Home   Help Search Login Register  

Author Topic: I want my camera inside the car, looking out  (Read 1856 times)

0 Members and 1 Guest are viewing this topic.

Aculaud

  • Guest
I want my camera inside the car, looking out
« on: 12 Oct 2002, 05:00:37 »
I would like my camera to transition from where ever i last had it to inside a car and stay there for a while. What do i write to get this effect? Thanks.

lilmat

  • Guest
Re:I want my camera inside the car, looking out
« Reply #1 on: 13 Oct 2002, 06:05:24 »
Have a look at the switchcamera posting, this should give
you the details you need to do this!! ;D
Say you have two units, one "a1" and you the player.
Use a1 switchcamera "internal" and you will see from the
1st person of a1, now move him into a vehicle, and you
will being veiwing from inside the vehicle!! 8)
Hope this helps!!

Offline XCess

  • Former Staff
  • ****
Re:I want my camera inside the car, looking out
« Reply #2 on: 13 Oct 2002, 13:44:08 »
I haven't look at the swithcamera post yet (gonna do that next) but I'd do it like this:

_cam = "camera" camCreate [0,0,0]
_cam cameraEffect ["internal","back"]

#loop
_cam camSetTarget Car
; Change if u need
_cam camsetrelpos [0,0,0]
_cam camcommit 0

; this is one line
_cam camsetTarget [(getPos car select 0),((getPos car select 1)+15),((getpos car select 2)+1)]
_cam camCommit 0

?LoopEndCondition:goto"endLoop"
~0.0000001
goto"loop"

#endLoop
;put rest of cam script here.




lilmat

  • Guest
Re:I want my camera inside the car, looking out
« Reply #3 on: 13 Oct 2002, 14:32:28 »
Ok! well it depends on where and what stage you need to
do this. The switchcamera command when used, if you use
during a cutscene; the difference is the cinerma border is
no longer there and you will be able to move the camera around. But don't worry about this, this we are trying to work this out. Have a look at the post of switchcamera and see
if you can work it out. At first just use the command on a
unit in the open and go from there. I'm sure there is lots of
info to work from!! :) 8)

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:I want my camera inside the car, looking out
« Reply #4 on: 18 Oct 2002, 01:18:44 »
camera.sqs works too  ;)
Proud Member of the Volunteer Commando Battalion

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:I want my camera inside the car, looking out
« Reply #5 on: 18 Oct 2002, 02:35:34 »
...the difference is the cinerma border is
no longer there and you will be able to move the camera around...

Try:

ShowCinemaBorder true

to get that up... and maybe:

Disableuserinput true

To take away the player's control (just remember to re-enable it again!) ;)

crow

  • Guest
Re:I want my camera inside the car, looking out
« Reply #6 on: 18 Oct 2002, 06:34:48 »
Ok this is what I have figured out so far.  The best way to put the camera in the car is to use the SwitchCamera command.  This is how to do it.
;create camera
_cam="camera" camcreate [0,0,0]
_cam cameraEffect ["internal","Back"]
_cam camsetTarget j
_cam camsetRelPos [0,10,2]
_cam camcommit 0
 @camcommitted _cam
TitleCut ["","black in",3]
~10
_cam cameraEffect ["Terminate","Back"]
TitleCut ["","Black Out",2]
 j SwitchCamera "Internal"
~2
TitleCut ["","Black In",2]
To explain what I did.  First Is a camera I created.
(j) is an empty vehicle that I placed a unit in useing the MoveInDriver command.
In order to switch to the switchcamera command you first have to disable the first camera.  To do this all you have to do is the  _cam cameraeffect ["Terminate","Back"]
line.  I inserted the fade out and back in to make the transition from one camera to the other smoother.  After the cameraeffect command comes the SwitchCamera command.  I have found that placing the camera in the vehicle instead of the driver works better.  As for the border and the disable user input I am still working on that and will let everyone know when I get it figured out. :)

lilmat

  • Guest
Re:I want my camera inside the car, looking out
« Reply #7 on: 18 Oct 2002, 16:22:04 »
Hey excellent! ;D
Good to see people are getting the hang of things
the switchcamera! ;D
keep it up 8)

crow

  • Guest
Re:I want my camera inside the car, looking out
« Reply #8 on: 19 Oct 2002, 04:05:13 »
Well I have tried every thing I know and I still can not get the showcinemaborder to work.  Sorry I am out of Ideas.  If anyone has one please let me know.  :cheers:

Offline XCess

  • Former Staff
  • ****
Re:I want my camera inside the car, looking out
« Reply #9 on: 20 Oct 2002, 13:35:03 »
Use a standard samera instead of switchCamera like I said before. I haven't tried it yet (will do tonight) but it just sounds like the Effects thing in a trigger/waypoint. Though I might be wrong, I'll find out later.

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:I want my camera inside the car, looking out
« Reply #10 on: 20 Oct 2002, 13:50:16 »
use camera.sqs - switchcamera isnt as great as people make out
« Last Edit: 20 Oct 2002, 13:52:12 by Messiah »
Proud Member of the Volunteer Commando Battalion

lilmat

  • Guest
Re:I want my camera inside the car, looking out
« Reply #11 on: 20 Oct 2002, 17:50:53 »
Ok! 8) So switchcamera may not be everything, but how
else do you get to see inside a vehicle from another units
point of view??????? :moon: Well I can tell you!!
There is no other way to do this. :-* ;D ;)
So yes it has limitations but!!! IT IS USEFULL    AND
IT GIVES MORE OPTIONS TO CUTSCENES!!!!!!!!  AND
GENERAL PLAY. Its not that bad. Have a go and have fun.
 8) ;D

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:I want my camera inside the car, looking out
« Reply #12 on: 20 Oct 2002, 19:43:56 »
umm, there is another way - its called camera.sqs - just place the camera where the units head is - simple.
Proud Member of the Volunteer Commando Battalion

crow

  • Guest
Re:I want my camera inside the car, looking out
« Reply #13 on: 21 Oct 2002, 04:05:58 »
What Messiah said is true if the vehicle is not moving.  If the unit or vehicle is moving then you would also need to attach the camera to the unit.  I have not tried to do this and put the unit in the commanders position.  The easyest way to do that is switchcamera command.  It is the only way I am aware of that works for putting the camera inside a moving vehicle.  There are other ways to do it but switchcamera is less complecated. :)