gametechmods

Robot Arena => General Support => Topic started by: G.K. on July 30, 2015, 11:43:20 AM

Title: Custom Introduction Camera Angles
Post by: G.K. on July 30, 2015, 11:43:20 AM


Hi,

I'm creating a custom arena introduction for the Twiisted Arena, based off the introductions to the Combat Arena and BBEANS, but as it is of different dimensions to those arenas I'd like to change the camera angles. I could spend absolutely ages trying to fix it all by trial and error but if anyone could let me know what each value meant - as far as I know they could be coordinates/angle/time/speed something else I'd save me a lot of hassle.

An example line is below:

Code: [Select]
            plus.animateCamera((8.6126,4.07693,2.09747), (0.416206,-2.1045), 0.8862, (8.6126,4.07693,2.09747), (0.416206,-2.1045), 0.3162, 1, 1.5)
So there's 14 values there and I don't know what they might correspond to.

Thanks for any help,

GK
Title: Re: Custom Introduction Camera Angles
Post by: Trovaner on July 31, 2015, 12:25:11 AM
I'm glad you got that other issue sorted out. I was just about to look into when I saw that you made an update.

As for your new question, perhaps this would help?
Code: [Select]
#plus.animateCamera(XYZ-StartingLocation, (V-Angle, H-Angle), Starting Zoom, XYZ-EndingLocation, (V-Swing, H-Swing), End Zoom, Delay, Duration) - camera movement (the first half of the parameters correspond to the starting values and the second half corresponds to the ending values followed by the delay and duration. Anything starting with XYZ corresponds to coordinates (given as a tuple). The V-Angle and H-Angle determine the direction of the camera. Delay can be negative but that just causes it to go slow then quickly get to the end of the sequence in the last tick. Once an animation has started, there isn't any way of stopping it.
#plus.fadeFromBlack(Duration) - suddenly turns screen black then fades back in over the given duration.
#plus.setCameraFOV(0.675) - creates an orbit cam at the selected distance from the chassis
#plus.setCameraFOVRange(self.range[0], self.range[1], self.range[2], self.range[3]) - TBD
#plus.setCameraPosition(X, Y, Z) - places a camera at the specified coordinates
#plus.setCameraRotation(V-Angle, H-Angle) - changes the direction of the current camera (works on all camera types).

The action cams are all using plus.animateCamera with no delay and very short durations (so that they can respond quickly to events on the screen).
Title: Re: Custom Introduction Camera Angles
Post by: G.K. on July 31, 2015, 03:27:37 AM
This is exactly what I'm after, thank you very much Trov.