That helped a lot.

Thanks
Regards
Luca

Il giorno mar 11 feb 2020 alle ore 17:38 Armin Samii <ar...@argo.ai> ha
scritto:

> Check out the examples directory.
> One example:
> https://github.com/openscenegraph/OpenSceneGraph/blob/master/examples/osganimate/osganimate.cpp#L247
> 1. Create a MatrixTransform
> 2. Add your rectangle as a child of that transform
> 3. Save the MatrixTransform node
>
> On Tue, Feb 11, 2020 at 11:29 AM Luca Costantino <
> luca.costant...@gmail.com> wrote:
>
>> I am totally new with OpenSceneGraph
>>
>> I can open and save an OSG asset. I need to do some simple
>> transformations on it, like dimension scaling/rotation/translation.
>>
>> It seems a pretty easy task, anyway I can't find any quick documentation
>> :/
>>
>> osg::ref_ptr<osg::Node> rectangle = 
>> osgDB::readNodeFile("../../inputs/Rectangle.osg");
>> // define simple transformation matrix// apply  simple trnasformation matrix
>>
>> osgDB::writeNodeFile(*rectangle, "../../outputs/saved.osg");
>>
>> Any hint?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "OpenSceneGraph Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to osg-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/osg-users/a6df11c6-2805-44e4-af15-62aa8a77dabb%40googlegroups.com
>> <https://groups.google.com/d/msgid/osg-users/a6df11c6-2805-44e4-af15-62aa8a77dabb%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenSceneGraph Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to osg-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/osg-users/CAJFSWeRt5250LuWy-2i4yhv3-wOGxEXMkKF%2BQ8RtMrzSM7Z1Sg%40mail.gmail.com
> <https://groups.google.com/d/msgid/osg-users/CAJFSWeRt5250LuWy-2i4yhv3-wOGxEXMkKF%2BQ8RtMrzSM7Z1Sg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/CA%2BvfGHbipV0_R7Hnj53-fWjVhQYmn%3DJUcyHF2DXkVjPHuGPk3Q%40mail.gmail.com.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to