• Welcome to Final Fantasy Hacktics. Please login or sign up.
 
July 14, 2020, 08:16:53 am

News:

Please use .png instead of .bmp when uploading unfinished sprites to the forum!


Camera Rotation Issue

Started by mythosknight121, February 04, 2019, 01:03:57 am

mythosknight121

February 04, 2019, 01:03:57 am Last Edit: February 04, 2019, 05:31:52 am by mythosknight121
Greetings all,

I seem to be having an issue with my camera rotation. I am using this:

Camera(+00784,+00000,+00784,+00302,-01536,+00000,+04096,+00080)
WaitForInstruction(x04,x00)

From my understanding the map should rotate around X:7 & Y:7.
Z axis should not change.
Angle will stay at 26.54 degrees.
It should rotate counter clockwise 135 degrees.
With 100% zoom.
In around 1.3 seconds.

Regardless if map rotation, MAPRT, is a positive or negative number, the rotation is clockwise and is taking the longest route to the new specified degree.

The example I listed is causing the camera to not rotate 135 degrees but 495 degrees.

What am I missing?

Thanks.

Nyzer

You need to list your previous camera command too. Odds are you just have too much of a difference between your two command angles. That means there's a better rotation number to set the camera at.

Up to you whether you want to change that camera angle pr the previous one.

I always use the same four rotations so I don't normally come across this issue, but I did recently when I was using the Camera Helper in order to properly place the camera for Effects. I merely moved the X and Y a little and the camera was doing a 360 degree rotation. Setting up different angles fixed it.
  • Modding version: PSX & WotL
  • Discord username: Nyzer

mythosknight121

The event starts with this:
{63}(rC9)
Camera(+01000,+00000,+00615,+00302,+02560,+00000,+04096,+00001)
Camera(+01000,+00000,+00615,+00302,+02560,+00000,+04096,+00001)
{4D}(r78)
Camera(+01000,+00000,+00615,+00302,+03584,+00000,+04096,+00300)
WaitForInstruction(x04,x00)

And about halfway I have this:
{63}(rAA)
Focus(x02,x00,x02,x00,x00)
Camera(+00001,+01253,+04352,+00302,+00512,+00000,+04096,+0100)
WaitForInstruction(x04,x00)

They are copy and pasted from Elric's awesome tutorial. Just modified the timing.

Nyzer

Look at the differences between your Map Rotations across all three commands. There's a lot of difference.

On top of that the Focus command will cause your Camera instruction to selectively ignore certain parts as it sees fit. Unsure if Map Rotation is one of those but it could be.
  • Modding version: PSX & WotL
  • Discord username: Nyzer

Xifanie

It's always better to stick to pure camera instruction for events because otherwise with focus following a camera instruction, the camera might spin 315 degrees one side instead of 45 degrees the other.

Unfortunately I don't know the mechanics in details about this.
  • Modding version: PSX
Anything is possible as long as it is within the hardware's limits. (ie. disc space, RAM, Video RAM, processor, etc.)
<R999> My target market is not FFT mod players
<Raijinili> remember that? it was awful