Well, the warning is pretty self explanatory - though you need to look at MatrixArray.h to figure out what the indices mean.
More than likely the Scene containing the lights hasn't had its evaluate_lights() method called to get all the matrices up to date - this is normally done automatically by the Render class. It can be expensive to call so it's not done automatically in validate() - it's only done if the Render subclass is actually going to start rendering. Your calculations are correct because the individual matrices in the array are initialized to the identity, but their valid flag is false which means they've never been explicitly set (look at the MatrixArray::MatrixEntry structure.). So from the indices listed it appears neither the CAMERA_MATRIX, PROJECTION_MATRIX, or the FORMAT_MATRIX have been set, which means only the OBJECT_MATRIX has been. So if you did anything like transform a point into the light's UV space using the MatrixArray's transform methods the result would be completely incorrect unless the object matrix contained the complete transform - thus the warning. -jonathan On Jul 15, 2011, at 9:13 AM, Thomas Obermaier wrote: > Sorry, > > i was writing on the forum and it didn't bring the original message along in > the mailing list (From Feb 15, 2011 by Moritz Moeller). i am refering to this > thread here, which remained open: > > http://forums.thefoundry.co.uk/phpBB2/viewtopic.php?t=5283 > > When working with lights and transforms, get errors like these: > > MatrixArray::matrix(13) - Warning, matrix is unassigned > MatrixArray::matrix(19) - Warning, matrix is unassigned > MatrixArray::matrix(7) - Warning, matrix is unassigned > MatrixArray::matrix(13) - Warning, matrix is unassigned > MatrixArray::matrix(19) - Warning, matrix is unassigned > MatrixArray::matrix(7) - Warning, matrix is unassigned > > Though, everything i'm calculating seems to be correct.... > > Thomas > > Am 15.07.2011 18:07, schrieb Nathan Dunsworth: >> >> The one standing next to the Python error Jonathan.... >> >> On Fri, Jul 15, 2011 at 11:54 AM, Jonathan Egstad <[email protected]> >> wrote: >> What warning? >> >> On Jul 15, 2011, at 2:49 AM, ThomasObermaier wrote: >> >> > just stumbled upon this, how can i resolve that? >> > >> > thanks, >> > thomas >> > _______________________________________________ >> > Nuke-dev mailing list >> > [email protected], http://forums.thefoundry.co.uk/ >> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev >> >> _______________________________________________ >> Nuke-dev mailing list >> [email protected], http://forums.thefoundry.co.uk/ >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev >> >> >> >> _______________________________________________ >> Nuke-dev mailing list >> [email protected], http://forums.thefoundry.co.uk/ >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev > > _______________________________________________ > Nuke-dev mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
_______________________________________________ Nuke-dev mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
