Hi Allessandro,
change looks good to me, I'd change only one thing:
instead of
> this->setUserData(new osg::RefMatrixf(mat));
I'd use
> this->setUserValue("preferredTransform", mat);
in your own code you can query for it via
osg::Matrix m;
if (av_image_stream->getUserValue("preferredTransform", m)) {
// rotate geometry accordingly
...
}
What do you think?
cheers,
Stephan
Am 15.01.13 08:48, schrieb Alessandro Terenzi:
> Hi,
> I've modified the avfoundation plugin to copy the preferredTransform matrix
> into the UserData property of the corresponding imagestream: by doing so, we
> can realize if the video should be transformed when applied as a texture
> (this should be the case, for instance, when we record a movie using an iOS
> device with any orientation different than 'landscape left').
>
> Cheers,
> Alessandro
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=51947#51947
>
>
>
>
> Attachments:
> http://forum.openscenegraph.org//files/osxavfoundationvideo_211.zip
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org