Aller au contenu

Photo

Drat...forcing camera to pan in proper direction...


  • Veuillez vous connecter pour répondre
6 réponses à ce sujet

#1
Beerfish

Beerfish
  • Members
  • 23 867 messages
Seems I have forgotten how to accomplish this.  I've done it before with success but I must be forgetting something in the process as I'm suddenly having no success.

My cameras Yaw starts at -177.757  I need to pan to the right about 54 degrees.  The numbers decrease as you pan to the right (as in -178, -179 etc) of course as soon as it hits the -180 it decides to pan to the left and ends up with a Yaw of about +130.5 at the final destination (when it should be about -231 if it kept panning to the right)

I've tried adding or subracting 360 degrees to the destination Yaw and various other combinations.  It will let me enter the new number and make a keyframe as such however the second I move anything along the time line it just resets the Yaw to +130.5 and whirls the camera in the wrong direction.

#2
FergusM

FergusM
  • Members
  • 460 messages
Change the end yaw to the appropriate negative yaw. For example, make it -231. This has always solved this issue for me.

#3
Beerfish

Beerfish
  • Members
  • 23 867 messages
It immediately resets it to the positive value as soon as the cutscene starts to run for some reason. I can set the value I want. Save the cutscene, look at something else in the object viewer, come back and look at the yaw value and it is as it should be. As soon as the cutscene is run it switches the yaw back to a positive value and thus whirls in the wrong direction. Driving me batty it is. :o)

#4
FergusM

FergusM
  • Members
  • 460 messages
Ah, I see. By runs, do you mean in-game or when you play it in the cutscene editor?

EDIT: I'm reading it that anytime you move along the time line in the cutscene editor, the yaw resets. That is very strange behaviour indeed. Are you using just basic keys or are you doing anything in the curve editor?

Try opening up a new blank cutscene and just getting the camera to rotate, see if it persists. If it is indeed resetting the yaw when you change times in the editor, I suspect there is something odd going on in that particular cutscene.

Modifié par FergusM, 08 août 2010 - 11:07 .


#5
Kilrogg_

Kilrogg_
  • Members
  • 296 messages
I usually solve this via the curve editor. Select your camera's Orientation track and open the curve editor. You'll see that your rotation curve is way too big (because it's going the wrong way). Just adjust it from there.

#6
Beerfish

Beerfish
  • Members
  • 23 867 messages
I solved the problem by moving the camera a smidgen to the right thus starting on a positive number rather than -177 and it operated properly after that. I didn't know about the curve editor bit so I will keep that in mind for future efforts.

#7
tmp7704

tmp7704
  • Members
  • 11 156 messages

Beerfish wrote...

It immediately resets it to the positive value as soon as the cutscene starts to run for some reason.

You need to enter the value by selecting the relevant keyframe directly in the timeline and entering the number into its properties. If you enter the angle into the object's Inspector panel then the values are automatically modified to stay in -180+180 range.

Modifié par tmp7704, 09 août 2010 - 12:52 .