Home   Help Search Login Register  

Author Topic: Get Out of The Ocean  (Read 1241 times)

0 Members and 1 Guest are viewing this topic.

Fisher

  • Guest
Get Out of The Ocean
« on: 16 Oct 2003, 19:23:27 »
I am new to scripting cameras and I have finally figured it out and it is sweet  ;D.

But I have one problem. When my movie starts out it starts way out in the middle of the ocean and zooms in toward my first set of coordinates. Then it goes on with my scripting.

Thanks.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Get Out of The Ocean
« Reply #1 on: 16 Oct 2003, 19:33:29 »
When the camera is first created it appears at coordinates 0,0,0 which is the bottom left hand corner of the map - the ocean.    The usual technique is to cover this with a blackin and give the camera a new shot as soon as it is created.   For example:-


titlecut ["","BLACK IN",2]

_camera = "camera" camcreate [0,0,0]
_camera cameraeffect ["internal", "back"]

;opening shot
_camera camSetTarget [-82168.04,38775.21,-9768.56]
_camera camSetPos [10095.01,1387.89,28.20]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera


Edit:  I suppose you could create is whereever you want .. never tried it.

And if you're new to camera scripting, make sure you read messiah's camera.sqs tutorial in the Ed Depot - makes life MUCH easier.
« Last Edit: 16 Oct 2003, 19:34:59 by macguba »
Plenty of reviewed ArmA missions for you to play

Fisher

  • Guest
Re:Get Out of The Ocean
« Reply #2 on: 16 Oct 2003, 19:41:31 »
Boy that was quick. I tried putting in the coordinates for it to start at but I guess I didnt do it right. Thanks for your help.

Messiahs tutorial is how I learned scripted cameras and for any other newbies like me it is a great for learning scripted cameras.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Get Out of The Ocean
« Reply #3 on: 16 Oct 2003, 20:28:03 »
Look here, we want to make a scene... like a dialog between 2 guys. Do this:

Code: [Select]
;First we need to create the camera. You got that right.

_camera = "camera" camcreate [0,0,0]
_camera cameraeffect ["internal", "back"]

;Now here is your problem. You've putten either a ~ number before this or used camcommit, which you shouldn't use. This is how it really should be:

_camera camSetTarget DaMan
_camera camSetrelpos [1,1,1]

titletext ["You understand what you did wrong?", "PLAIN DOWN"]

~6

_camera camSetTarget DaMan2
_camera camSetrelpos [1,1,1]
_camera camcommit 5
@camcommitted _camera

titletext ["I hope so", "PLAIN DOWN"]

You see what I mean?

:beat: *Gets Shot* :beat:

Torak

  • Guest
Re:Get Out of The Ocean
« Reply #4 on: 16 Oct 2003, 20:41:53 »
Although that "zooming-in-over-the-ocean" effect sounds rather neat, and could be put to good effect....

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Get Out of The Ocean
« Reply #5 on: 17 Oct 2003, 00:15:02 »
Instead of a workaround by black in, there would
be also the possibility to camcreate the camer at
the position where you want it to be from start.

_camera = "camera" camcreate [0,0,0]

Think about this line: it will create the camera at the
position: 0,0,0

Instead of: [0,0,0]
you could also use other values, or:

_camera = "camera" camcreate (getpos jamesBrown)

while jamesBrown would be the name of a unit, sitting
somewhere on the island and yelling out:

I FEEL GOOOD - ain't it funky now

Off course instead of a unit you could use markers, gamelogics
or objects.

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline MeKillYou

  • Members
  • *
  • Looking for some prob, shout for me(hehe)
Re:Get Out of The Ocean
« Reply #6 on: 28 Nov 2003, 21:15:09 »
You could make a gamelogic in edit give it the name camstart

and put this in your camsript at the top:

_cam1_x=getpos camstart select 0
_cam1_y=getpos camstart select 1

that gives you the pos where cam starts.

and after that put ur ordinary camscript

_cam = "camera" camcreate [_cam1_x,_cam1_y,25]
_cam cameraeffect ["internal", "back"]
_cam camsettarget fire
_cam camsetrelpos [0,5,5]
_cam camcommit 2
@camcommitted _cam

try that.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Get Out of The Ocean
« Reply #7 on: 28 Nov 2003, 21:27:46 »
And off course you could name your gamelogic
jamesBrown too  ;D

soz MeKillYou, but grabbing out such old threads do
not really make sense, as it might be the case that
the author is no more interested in the question
in that case  ::)

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted