Free rotation key cams

Post your suggestions here
User avatar
MOTOZ293
Posts: 2024
Joined: Wed Mar 06, 2013 7:17 pm
Location: Ohio

Free rotation key cams

Postby MOTOZ293 » Sat Apr 28, 2018 1:27 am

So i have a video idea, but i cant do it due to the vertical not going 360 degrees. But horizontally it rotates 360? is there a way we can get the vertical rotation change? Would that cause the camera to rotate in a diagonally? i could like to be able to do something like this
Image
Image

jlv
Site Admin
Posts: 12699
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Free rotation key cams

Postby jlv » Sat Apr 28, 2018 1:35 am

It is possible, but you'd have to manually edit the quaternions in the keycam file. (The 4th through 8th numbers on each line.)
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.

User avatar
MOTOZ293
Posts: 2024
Joined: Wed Mar 06, 2013 7:17 pm
Location: Ohio

Re: Free rotation key cams

Postby MOTOZ293 » Sat Apr 28, 2018 1:38 am

jlv wrote:It is possible, but you'd have to manually edit the quaternions in the keycam file. (The 4th through 8th numbers on each line.)

something for the next snapshot?
Image

jlv
Site Admin
Posts: 12699
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Free rotation key cams

Postby jlv » Sat Apr 28, 2018 1:53 am

I think the yaw/pitch based camera is the most natural for most situations. Are you sure you don't want to manually edit the quaternion? Even though it sounds bad with all the hypersphere stuff, it's not actually that much different from axis and angle rotations.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.

User avatar
MOTOZ293
Posts: 2024
Joined: Wed Mar 06, 2013 7:17 pm
Location: Ohio

Re: Free rotation key cams

Postby MOTOZ293 » Sat Apr 28, 2018 1:57 am

jlv wrote:I think the yaw/pitch based camera is the most natural for most situations. Are you sure you don't want to manually edit the quaternion? Even though it sounds bad with all the hypersphere stuff, it's not actually that much different from axis and angle rotations.

if you message me a tutaotial to start me off i can do it manually
Image

jlv
Site Admin
Posts: 12699
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Free rotation key cams

Postby jlv » Sun Apr 29, 2018 1:44 am

Here's how to convert axis and angle to quaternion.

To make it simple, try just rotating around the x axis. That way it's just qx=sin(angle/2), qy=0, qz=0, qw=cos(angle/2).
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.

User avatar
checkerz
Posts: 8131
Joined: Tue Apr 22, 2008 4:23 am
Team: RaGe Factory

Re: Free rotation key cams

Postby checkerz » Sun Apr 29, 2018 4:45 am

jlv wrote:Here's how to convert axis and angle to quaternion.

To make it simple, try just rotating around the x axis. That way it's just qx=sin(angle/2), qy=0, qz=0, qw=cos(angle/2).

JLV, we are talking to my buddy Zoa, not Wheels or DJ...

WellsMX524
Posts: 1871
Joined: Sun Feb 05, 2012 7:23 am
Team: MV Films
Location: Illinois

Re: Free rotation key cams

Postby WellsMX524 » Sun Apr 29, 2018 4:45 am

jlv wrote:Here's how to convert axis and angle to quaternion.

To make it simple, try just rotating around the x axis. That way it's just qx=sin(angle/2), qy=0, qz=0, qw=cos(angle/2).


Exactly.

User avatar
Wahlamt
Posts: 6409
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: Free rotation key cams

Postby Wahlamt » Sun Apr 29, 2018 8:34 am

checkerz wrote:
jlv wrote:Here's how to convert axis and angle to quaternion.

To make it simple, try just rotating around the x axis. That way it's just qx=sin(angle/2), qy=0, qz=0, qw=cos(angle/2).

JLV, we are talking to my buddy Zoa, not Wheels or DJ...

I'm usually in the same boat in scenarios like these hahahaha

User avatar
MOTOZ293
Posts: 2024
Joined: Wed Mar 06, 2013 7:17 pm
Location: Ohio

Re: Free rotation key cams

Postby MOTOZ293 » Sun Apr 29, 2018 3:01 pm

Wahlamt wrote:
checkerz wrote:
jlv wrote:Here's how to convert axis and angle to quaternion.

To make it simple, try just rotating around the x axis. That way it's just qx=sin(angle/2), qy=0, qz=0, qw=cos(angle/2).

JLV, we are talking to my buddy Zoa, not Wheels or DJ...

I'm usually in the same boat in scenarios like these hahahaha

yeah im not gonna lie, i have no idea what the FUCK i just read hahaha
Image

User avatar
SKlein
Posts: 281
Joined: Mon Mar 16, 2015 7:08 pm
Team: Evergood
Location: MN

Re: Free rotation key cams

Postby SKlein » Sun Apr 29, 2018 10:02 pm

MOTOZ293 wrote:
Wahlamt wrote:
checkerz wrote:JLV, we are talking to my buddy Zoa, not Wheels or DJ...

I'm usually in the same boat in scenarios like these hahahaha

yeah im not gonna lie, i have no idea what the FUCK i just read hahaha

Image
You're changing the highlighted numbers to account for axis tilts/adjustments, etc.

jlv
Site Admin
Posts: 12699
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Free rotation key cams

Postby jlv » Mon Apr 30, 2018 2:14 am

Here's an example that loops the camera around the X axis. The important values (quaternion X and W) are in bold.

511.9393 7.2300 352.4422 0.0000 0.0000 0.0000 1.0000 110.00 1000
511.9393 7.2300 352.4422 0.7071 0.0000 0.0000 0.7071 110.00 2000
511.9393 7.2300 352.4422 1.0000 0.0000 0.0000 0.0000 110.00 3000
511.9393 7.2300 352.4422 0.7071 0.0000 0.0000 -0.7071 110.00 4000
511.9393 7.2300 352.4422 0.0000 0.0000 0.0000 -1.0000 110.00 5000

The first 3 numbers are the camera X, Y and Z coordinates, the next four are the rotation, then FOV and time in 1/128 tics. You should be able to position your camera, then replace the rotation numbers with the numbers from the example above to make it loop over.

checkerz wrote:JLV, we are talking to my buddy Zoa, not Wheels or DJ...

If it were DJ or Wheels I'd have gone for the full hypersphere explanation! Actually they might have to explain that one to me...
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.

User avatar
onefoureight
Posts: 911
Joined: Sun Dec 23, 2012 2:54 am
Team: Not Splitfire
Location: Shit Posting Capital of the world

Re: Free rotation key cams

Postby onefoureight » Thu May 03, 2018 1:37 am

jlv wrote:Here's an example that loops the camera around the X axis. The important values (quaternion X and W) are in bold.

511.9393 7.2300 352.4422 0.0000 0.0000 0.0000 1.0000 110.00 1000
511.9393 7.2300 352.4422 0.7071 0.0000 0.0000 0.7071 110.00 2000
511.9393 7.2300 352.4422 1.0000 0.0000 0.0000 0.0000 110.00 3000
511.9393 7.2300 352.4422 0.7071 0.0000 0.0000 -0.7071 110.00 4000
511.9393 7.2300 352.4422 0.0000 0.0000 0.0000 -1.0000 110.00 5000

The first 3 numbers are the camera X, Y and Z coordinates, the next four are the rotation, then FOV and time in 1/128 tics. You should be able to position your camera, then replace the rotation numbers with the numbers from the example above to make it loop over.

checkerz wrote:JLV, we are talking to my buddy Zoa, not Wheels or DJ...

If it were DJ or Wheels I'd have gone for the full hypersphere explanation! Actually they might have to explain that one to me...


Looks like something fun to play around with, Thanks JLV
2015 Australian Supercross 450 champion | rF Villain | Wolf Pack Racing Leader | CBL Gaming


Return to “Suggestion Box”

Who is online

Users browsing this forum: No registered users and 4 guests