PDA

View Full Version : How to set my matrix to camera.transform


smajler
12-28-2011, 09:19 PM
HI, i'd like to ask you how can i add my own matrix which looks like:
[-0.00787758403400 -0.99987368071328 -0.01380457484584] [-0.05022239161841 -0.01339197533679 0.99864826960082][-0.99870699158958 0.00856023442823 -0.05011055115063] [-666.49300000000005 -28.12390000000000 11.28040000000000]
To $Camera01.transform

lo
12-29-2011, 07:48 AM
$myCamera.transform = matrix3 [-0.00787758403400 -0.99987368071328 -0.01380457484584] [-0.05022239161841 -0.01339197533679 0.99864826960082][-0.99870699158958 0.00856023442823 -0.05011055115063] [-666.49300000000005 -28.12390000000000 11.28040000000000]

smajler
12-31-2011, 04:34 PM
It doesn't work:
$Camera01.transform = matrix3 [-0.00787758403400,-0.99987368071328,-0.01380457484584] [-0.05022239161841,-0.01339197533679,0.99864826960082] [-0.99870699158958,0.00856023442823,-0.05011055115063] [-666.49300000000005,-28.12390000000000,11.28040000000000] (matrix3 [-0.00787758,-0.999874,-0.0138046] [-0.0502224,-0.013392,0.998648] [-0.998707,0.00856023,-0.0501106] [-666.493,-28.1239,11.2804]) $Camera01.transform (matrix3 [0.0206446,-0.999787,0] [-0.0440285,-0.000909142,0.99903] [-0.998817,-0.0206245,-0.0440378] [-666.493,-28.1239,11.2804])

Only the position of the camera has changed, but the target is still the same as i set it at start

lo
01-04-2012, 05:44 PM
you didn't say it's a target camera

cam = $Camera01
cam.type = #free
cam.transform = matrix3 [-0.00787758403400,-0.99987368071328,-0.01380457484584] [-0.05022239161841,-0.01339197533679,0.99864826960082] [-0.99870699158958,0.00856023442823,-0.05011055115063] [-666.49305,-28.1239,11.28040]
cam.type = #target

CGTalk Moderation
01-04-2012, 05:44 PM
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.