  | | | mayatomr custom camera text bug? | mayatomr custom camera text bug? 2003-12-05 - By Dimitris Fragkos
Back I am guessing that the camera appears to be at 0,0,0. If this is the case, then I think the problem is that by setting custom camera text you override the camera's tranformation matrix (if this is how it's called).
The full camera text should be:
-- ---- --
camera "perspShape" output "+rgba" "iff" "mentalRayOutputChannelTest_v01_01.iff" resolution 320 240 aspect 1.33333 aperture 1.41732 frame 1 1. clip 0.1 1000. focal 1.37795 lens "maya_state" ( "passAlphaThrough" off ) end camera
instance "perspShape_inst" "perspShape" tranform 1 0 0 0 0 1 0 0 0 0 1 0 tx ty tz 1 end instance
-- ---- --
where tx: translate X ty: translate Y tz: translate Z
For rotation, I am not sure how the matrix should be. I only know how the equivalent opengl matrix is composed and I can tell you that it's kind of ugly. You could though see how Maya exports the camera (without custom text) to an mi file and copy the instance block in your custom camera text. Maybe there is an easier way (try the mental ray forum) or maybe I need some sleep.
Hope it helps, D.
-- -- Original Message -- -- From: "Jeremy Pronk" <jeremy@(protected)> To: <maya@(protected)> Sent: Friday, December 05, 2003 12:53 AM Subject: mayatomr custom camera text bug?
> Hi there, > > How come when I add custom camera options the exported mental ray scene > file looks like this > -- ---- --- > > output "fb0" "rgb" "file2.rgb" > > camera "perspShape" > output "+rgba" "iff" "mentalRayOutputChannelTest_v01_01.iff" > resolution 320 240 > aspect 1.33333 > aperture 1.41732 > frame 1 1. > clip 0.1 1000. > focal 1.37795 > lens "maya_state" ( > "passAlphaThrough" off > ) > end camera > -- ---- ----- > > it's in the wrong spot?? > > any ideas...? > > > thanks, > > Jeremy > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > List-help: <mailto:listar@(protected)?Subject=help> > List-unsubscribe: <http://www.highend3d.com/maya/listserver/> > List-subscribe: <http://www.highend3d.com/maya/listserver/> > List-archive: <http://www.highend3d.com/maya/archive/> >
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ _____ http://www.freemail.gr - ������ �������� ������������ ������������. http://www.freemail.gr - free email service for the Greek-speaking.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-unsubscribe: <http://www.highend3d.com/maya/listserver/> List-subscribe: <http://www.highend3d.com/maya/listserver/> List-archive: <http://www.highend3d.com/maya/archive/>
|
|
 |