[osg-users] How to scale/rotate/move an asset in OpenSceneGraph

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Wed Feb 12 01:58:58 PST 2020


That helped a lot.

Thanks
Regards
Luca

Il giorno mar 11 feb 2020 alle ore 17:38 Armin Samii <armin at 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.costantino at 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+unsubscribe at 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+unsubscribe at 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+unsubscribe at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200212/b2e42f05/attachment.html>


More information about the osg-users mailing list