Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Krelus on May 22, 2009, 11:48:15 am

Title: Camera is being INCREDIBLY stupid.
Post by: Krelus on May 22, 2009, 11:48:15 am
For some reason, the camera refuses to do what I tell it to do. I've actually worked out that the heading it actually points in is the EXACT opposite of what I want it to do. I tell it to face a corvette, but it points away from it.

Is this a known glitch? If needed, I can post my SEXP and a video.

Also, in a lesser issue, for some reason the FOV narrows big time every time I turn the camera. This is immensely bothersome.
Title: Re: Camera is being INCREDIBLY stupid.
Post by: Axem on May 22, 2009, 12:37:55 pm
Yeah, the camera sexps CW heading, while background placement (which FREDders might be more familiar with) uses CCW heading. It's kind of confusing really. I think you can just insert a negative sign in your sexps if you're really keen on calculating it manually.

Also when we're talking about FOV narrowing, are you doing anything with your bank? I've had trouble with banking past 90 degrees. If you go past it, the camera FOV narrows and makes some weird stuff happen.
Title: Re: Camera is being INCREDIBLY stupid.
Post by: Krelus on May 22, 2009, 01:12:13 pm
Yeah, the camera sexps CW heading, while background placement (which FREDders might be more familiar with) uses CCW heading. It's kind of confusing really. I think you can just insert a negative sign in your sexps if you're really keen on calculating it manually.

Also when we're talking about FOV narrowing, are you doing anything with your bank? I've had trouble with banking past 90 degrees. If you go past it, the camera FOV narrows and makes some weird stuff happen.

Except I'm telling it to point at an object and it faces the opposite direction.  :confused:

I guess I could just try the heading.

EDIT: AHA! That's what was screwing me up! The set-camera-rotation sexp is relative to the camera's current direction.

EDITEDIT: Fixed the other issue as well, the camera-target SEXP is all kinds of borked.
Title: Re: Camera is being INCREDIBLY stupid.
Post by: Rodo on May 22, 2009, 02:21:54 pm
wait.. you need to check your sexps again.

do camera stuff in this order:

-place cutscene bars
-place camera in position
-change camera facing (use facing object for this one)

If you used set camera target you might get a weird effect after trying to use the placing and facing combo... don't know exacty why but the camera tends to revolve and not folow the instructions when a set-camera-target sexp was used previously.
Title: Re: Camera is being INCREDIBLY stupid.
Post by: Krelus on May 22, 2009, 07:07:15 pm
wait.. you need to check your sexps again.

do camera stuff in this order:

-place cutscene bars
-place camera in position
-change camera facing (use facing object for this one)

If you used set camera target you might get a weird effect after trying to use the placing and facing combo... don't know exacty why but the camera tends to revolve and not folow the instructions when a set-camera-target sexp was used previously.


Yeah, the reason I used that was I wanted the camera to pan past a destroyer while keeping track of it. That seemed like the easiest solution, but now I'm using Set-Camera-Rotation and all is well.