[osg-users] animate 3d model by changing sub-nodes positions

2014-07-11 Thread Ed Stivi
Hi all,
I'm trying to animate a 3d model without predefined animations

to be specific, I downloaded a 3d model (called Female from bonyface) and 
converted it to FBX

I'm getting from an external source some face dots location.
I'd like to move the female model's corresponding dots accordingly.

using a 3d model editor software, I can see the names of the female's dots 
names (which can be moved when created pre-defined animations).

using NodeVisitor I retrieved a list of nodes with the same names.
however, they appear to be MatrixTransform

I have no idea how to change the positions of them.
Can you please assist? give a direction and possibly even some example code?

Thank you very much!
EsMo

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=60231#60231





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] animate 3d model by changing sub-nodes positions

2014-07-11 Thread Ed Stivi
Hi,
Thanks!
I actually figured it out eventually when I waited my post in the forum to get 
approved.
But I encountered more problems which are now described in a different post.

manipulate a 3d face model through code (not pre-defined animation)
http://forum.openscenegraph.org/viewtopic.php?t=14049

Mods: This thread can be closed. thanks

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=60260#60260





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ref_ptr issue

2014-07-11 Thread Ed Stivi
Hi,
I think I also encountered this or a similar problem after the main program was 
trying to exit
eventually I ended up with a shutdown method containing the following


Code:

if(!viewer-done())
{
viewer-setDone(true);
}

// avoid circular references
viewer-getCamera()-setFinalDrawCallback(NULL);
if (!offScreen) {
osgViewer::View::EventHandlers eventHandlers = 
viewer-getEventHandlers();
eventHandlers.clear();
}

osgViewer::ViewerBase::Windows wins;
viewer-getWindows(wins);
for(int i=wins.size()-1; i=0; i--)
{
wins.at(i)-close();
}




Not sure it's the right way but some/all of it may solve out the error
try using it in renderManager's destructor
Good luck

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=60261#60261





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org