Hi Alessandro, For type of thinsg you are doing there are two main ways to animation things - to animate the camera path, or to animate the objects in the scene.
I'm not familiar with 3DMax's export to the OSG so can't comment specifically on this, but I'd suspect its created an AnimationPath attached to a Transform which is above the planet, so the objects is moving and the camera is stationary. Then you have your transparent sphere, and I'd guess that this is not under the planets Transform node so isn't moved with it. To fix things you either need to put the sphere under the same Transform as the planet, or you need to attach the AnimationPath to viewers Camera. Robert. On 6/5/07, alessandro terenzi <[EMAIL PROTECTED]> wrote:
I'm experiencing the following problem: I exported a model from 3dsmax to OSG, the model consist of 2 objects: - a planet that is animated in order to follow a circular path - a semi-transparent sphere linked to the planet (its purpose, in OSG, should be to highlight the planet when the mouse move over the planet) So, in 3dsmax, I linked the sphere to the planet, because it should follow the animated planet. In my OSG application the planet is shown from the very beginnig of the application, and it starts following the path immediatly. On the other hand, I chose to hide the sphere (setting the corrensponding nodemask to 0x00000000) until the mouse moves over the planet, but I see that when that event occurs, the sphere is shown (I set nodemask to 0xFFFFFFFF) but not in the same position of the planet (as I expected). I mean that the sphere follows the same path as the planet but it seems that the animation started just when I unhid the sphere, so it is late with respect to the planet... How can I solve the problem? Is it related to the fact that I'm hyding/unhyding using the nodemask? Is there a way to let the animation start even though the corresponding node is not visible? Thanks! Regards. Alessandro _______________________________________________ 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/
