Login
Username:

Password:


Lost Password?

Register now!
Main Menu
H3D.org Feeds
H3D.org Forum Index
   Programming Issues
     Haptics do not work with derived group node
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
tdeweyer
Posted on: 2010/1/28 17:15
Quite a regular
Joined: 2006/11/13
From: Belgium
Posts: 38
Haptics do not work with derived group node
Hi,

I derived my node from H3D::X3DGroupingNode (and copied the code from h3d::group and in the node(in the function traversesg) i create some children. one of them has a smoothsurface but i can not feel it in de scene. Has anyone any idea why this can be?


This is the code to add the child (the \ before each " is needed for c++)
AutoRef <H3D::Node> slider=X3D::createX3DNodeFromString("<Transform > <Shape> <Appearance> <SmoothSurface stiffness=\"1\" /> <Material emissiveColor=\".8 .4 .4\" ambientIntensity=\"0.9\" transparency=\"0\" /> </Appearance> <Box DEF=\"slider\" size=\"0.005 0.005 0.005\" /> </Shape> </Transform>",m_nodes);

children->push_back(slider.get());
daniel
Posted on: 2010/1/29 14:39
Webmaster
Joined: 2004/11/28
From:
Posts: 520
Re: Haptics do not work with derived group node
Do you call the X3DGroupingNode::traverseSG function in your overridden function?
tdeweyer
Posted on: 2010/1/29 14:55
Quite a regular
Joined: 2006/11/13
From: Belgium
Posts: 38
Re: Haptics do not work with derived group node
Thanks daniel,

That solved the problem.

Threaded | Newest First Previous Topic | Next Topic | Top

Register To Post
 



(C) 2004 SenseGraphics AB    ---    Powered by XOOPS