Hi Matteo,
Could you provide an example .osg file that works, but fails when you
convert it to .ive?
Once I have this I can test it on my system to see if I can spot the problem.
Robert.
On 6/19/07, Matteo Campana <[EMAIL PROTECTED]> wrote:
Dear All
I create my "Animation" node deriving the "Sequence" node:
I create a plugin file that I simple included in my project in order to save
and load my scene.
This is my problem....
if I save and open my scene as .osg file everything works perfectly.
Now I'm trying to save and read the scene using .ive format.
The file is well saved but when I open it, it crash.
The problem occurs when I call a method of "Animation":
animationNode = dynamic_cast<Animation*>(sceneGraph->getChild(0));
animationNode->SetLoopMode(Animation::LOOP);
It seem that it cant properly read the animation node.
Do I have to change something in the plugin passing from .osg to .ive format?
Thanks
In attachment I send the Animation plugin
This is part of my derived class:
class Animation : public osg::Sequence {
public:
//costruttore
Animation();
/** Copy constructor using CopyOp to manage deep vs shallow copy.*/
Animation(const Animation&, const osg::CopyOp&
copyop=osg::CopyOp::SHALLOW_COPY);
META_Object(osg,Animation);
virtual void traverse(osg::NodeVisitor& nv);
ecc..
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/