[osg-users] [forum] Best Model For Augmented Reality?

Robert Osfield robert.osfield at gmail.com
Mon Oct 16 01:05:30 PDT 2017


Hi Bobak,

On 15 October 2017 at 11:35, Bobak Hossainkhani <
bobak.hossainkhani at gmail.com> wrote:

>  Hi. Sorry for bad English and I appreciate your replies. Here I will
> explain what the problems is:  There are some 3D model of clothes which are
> in obj format (or I can use another format). The models can be load and
> move, scale and translate with no problem. I want to rotate some part of
> the model (i.e. move its sleeves up without changing entire model
> position). Is there any way to do so in OSG? And if it is, how to do that
> to be realistic.  It sounds there is a feature in Nvidia graphic cards,
> called Physics which can be used to make the model (clothe e.g.  a shirt)
> look real in OSG coordinate system.  Thank you for your help.
>

You can move components of a scene around in the OSG using in different
ways.

If you want to move a complete geometry(ies) as solid objects then
decorating the subgraph that contains them with a Transform nodes like
osg::MatrixTransform or osg::PositionAttitudeTransform.

if you want to movement only parts of a geometry or you want to move them
in non-uniform ways then you'll need to modify the vertices within the
geometries directly.

For more advanced movements you can combine use of Transform nodes by
nested them within each other, and use vertex shaders to move vertex to
animate them.

However, from what you've written so far it doesn't sound like you are just
new to the OSG, it sounds like you are new to scene graphs and real-time
graphics, an advanced and relatively low library like the OSG might be
capable of doing eveything you want but may not be the best tool for you
personally.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20171016/57eb770d/attachment.html>


More information about the osg-users mailing list