Camera Rig Local Z movement

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  08 August 2013
Camera Rig Local Z movement

Hello

I have built a couple of Camera Rigs, an Orbit and a Track version. Everything is working fine. However I cannot figure out how to set up a User Data slider to control the Local Z movement of the camera. Once the camera has been moved and rotated the only Z movement I seem to be able to affect is the World Space. Is there a way to have the slider move the camera along it's Local Z axis?
Attached Images
File Type: jpg Expresso_Z Depth .jpg (66.7 KB, 7 views)
 
  08 August 2013
the input port "position z" is in local space (whereas "global.position z" is global). so you already are moving the camera locally, arent´you?
check attached scene file. camera has a user data for local offset.
maybe this helps.
fuat
__________________
insekt8.de
 
  08 August 2013
Cam Rig Z_track

Thanks Fuat,

Your suggestion, helped me to find the solution. I added another null for the camera, and did the rotation from that null. This preserved the correct local data on the camera it self, and allowed for a Z movement along the line it was looking. In the rig you sent; if you rotate an upper null the Z movement of the camera is no longer along the direction the camera is looking. Here are the two Camera Rigs with the correct Z Track for the Camera.

Thanks again.
Attached Files
File Type: zip Cam_Rigs.zip (113.4 KB, 1 views)
 
  08 August 2013
hello iplay,
you´re welcome.
and thanks for the tip. by the way, to skirt the rotation problem you could also check "coordinate space transformations" with local/global spaces. it´s all about multiplying matrices with inverted ones or with pointpositions/matrices, which is parenting/unparenting in the end.
bye
fuat
__________________
insekt8.de
 
  08 August 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 04:10 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.