Jump to content
Sign in to follow this  
Stuntman

Camera.sqs - a couple of questions

Recommended Posts

Hello folks!

I'm having a specific movie-making issue I would love to get sorted.

First off, is it possible to create the initiating camera script to move to a specified location, all with the different data like zoom, focus, and all the X Y Z positions, without making it a static "cutscene" camera, but still a moveable one?

What I want is to have the camera start at the specified location, made by copying data from clipboard, and continue using it as a normal camera.sqs.

For info's sake here is my clipboard info.

;=== 18:01:08
_camera camPrepareTarget [24700.47,-89594.68,28355.68]
_camera camPreparePos [5370.55,4325.69,0.20]
_camera camPrepareFOV 0.177
_camera camCommitPrepared 0
@camCommitted _camera

Basically I want the camera to use that excact location and its data while still being able to be moved around, making camera shakes etc.

Any help is really appreciated! If this is possible my work style can be improved a lot and oddities will be erased! :)

Any questions please ask!

EDIT: I am not looking for the ordinary cutscene style. I know how to create that. What I want is simply to move the camera.sqs to a specified position with all the data I get from the clipboard. This would make it possible for me to move it around and manually shake it afterwards, unlike the cutscene camera style, which is static and cannot be affected by input.

Regards,

Stuntman

Edited by Stuntman

Share this post


Link to post
Share on other sites

Well Cain you should at least list your thread if your gonna make a stupid remark like that you might get help from anywhere when folks read it.

Share this post


Link to post
Share on other sites
help me out in my thread stunti and ill help you out! :)

LOL Cain. I'm not a scripter, so I cannot help you there.

I only know how to use the camera, but I am desperate after making it move to a predefined position.

Share this post


Link to post
Share on other sites

You talking about a moveable camera in intros like in the beginning of EagleWing? If so, il join this question. Could also need that for my mission!;-)

Share this post


Link to post
Share on other sites

Hi there

I'm not sure if I understood your problem.

_camera camCommitPrepared 10

If you use that value (10)in camCommitPrepared the camera will take 10 seconds to move from your former coordinates to the next camera coordinates. Also if you change FOV settings but the camera is in the same place it will take 10 seconds to zoom in or out. depends on what you want to achieve.

Not sure though if that is your issue, might have missunderstood.

kind regards

Share this post


Link to post
Share on other sites
Hello folks!

I'm having a specific movie-making issue I would love to get sorted.

First off, is it possible to create the initiating camera script to move to a specified location, all with the different data like zoom, focus, and all the X Y Z positions, without making it a static "cutscene" camera, but still a moveable one?

What I want is to have the camera start at the specified location, made by copying data from clipboard, and continue using it as a normal camera.sqs.

For info's sake here is my clipboard info.

;=== 18:01:08
_camera camPrepareTarget [24700.47,-89594.68,28355.68]
_camera camPreparePos [5370.55,4325.69,0.20]
_camera camPrepareFOV 0.177
_camera camCommitPrepared 0
@camCommitted _camera

Basically I want the camera to use that excact location and its data while still being able to be moved around, making camera shakes etc.

Any help is really appreciated! If this is possible my work style can be improved a lot and oddities will be erased! :)

Any questions please ask!

Regards,

Stuntman

Hey, guy.

I don't know whether I can solve your problem, but to my knowledge, the contents I write below it what I know.

first, create your camera

_camera = "camera" camcreate [0,0,0]//Actually, it will not start effect

then, start your camera at the specific position you want

_camera camPrepareTarget sth
_camera camPreparePos [width,lenth,height]    //run "camera.sqs" and right click the specific position you want         
_camera camPrepareFOV 1.000
_camera camCommitPrepared 0
@camCommitted _camera

_camera camCommitPrepared 10 //camera transition duration

if you want to shake your camera, use

addCamShake [5,5,10]//Check BIwiki for more info. Btw, I used to use this command and it works well in first person view position, but I've no idea whether it can work in 3D camera position

Edited by ffur2007slx2_5

Share this post


Link to post
Share on other sites
Hey, guy.

I don't know whether I can solve your problem, but to my knowledge, the contents I write below it what I know.

first, create your camera

_camera = "camera" camcreate [0,0,0]//Actually, it will not start effect

then, start your camera at the specific position you want

_camera camPrepareTarget sth
_camera camPreparePos [width,lenth,height]    //run "camera.sqs" and right click the specific position you want         
_camera camPrepareFOV 1.000
_camera camCommitPrepared 0
@camCommitted _camera

_camera camCommitPrepared 10 //camera transition duration

if you want to shake your camera, use

addCamShake [5,5,10]//Check BIwiki for more info. Btw, I used to use this command and it works well in first person view position, but I've no idea whether it can work in 3D camera position

Thanks! I'm going to try it out!

Am I not supposed to put all these codes in a single sqs file, like "angle1.sqs"?

And then activate it by trigger, is that possible?

Also, I'm a bit confused about this message:

//run "camera.sqs" and right click the specific position you want

Am I supposed to right click after the camera has been created, to make it move to the specified position?

I'll test it out now, hopefully you can tell me if I'm doing it correctly.

EDIT: I did not manage to get the camera.sqs to move to the specified position. Nothing happens and no error message pops up.

Ok. You might misunderstand me. I am not looking for the ordinary cutscene style. I know how to create that. What I want is simply to move the camera.sqs to a specified position with all the data I get from the clipboard. This would make it possible for me to move it around and manually shake it afterwards, unlike the cutscene camera style, which is static and cannot be affected by input.

Edited by Stuntman

Share this post


Link to post
Share on other sites

well if you put "this exec camera.sqs" in a units init line, you got the free camera. then clicl preview. now if you click the right mouse button it will copy the coordinates in your buffer. just switch with alt tab in the empty txt file and press STRG+V, there you have the cam coordinates.

I would be interested in a freelook like in the beginning of eagle wing. How do you do that ? thanks!

Share this post


Link to post
Share on other sites

I would be interested in a freelook like in the beginning of eagle wing. How do you do that ? thanks!

It's an actual player unit attachTo'ed to the chopper with deleteCollection/hideObject applied to it.

Share this post


Link to post
Share on other sites
It's an actual player unit attachTo'ed to the chopper with deleteCollection/hideObject applied to it.

Yeah, yeah.

Just

player AttachTo [Apach,[2,-2,1]]; HideObject player//You'll find you are sticked on the right back side of the chopper and you cannot see yourself by useing hideObject command.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×