PDA

View Full Version : Spin Pivot with a WRL


Kaminski
09-26-2011, 03:01 PM
Hey all,

I am experiencing some difficulty getting a model to spin around a pivot (I am trying to get a door to open and close). Is it possible to set the pivot in 3ds Max and then export as a WRL? This KB article (http://kb.worldviz.com/articles/1157) explains how to do it with an IVE file, but my version of 3ds max seems to export a newer file than the vizard 3.0 OSG library can handle.

I can't seem to recover the pivot point that I set for the door in 3ds max. Any advice?

farshizzo
09-27-2011, 11:03 AM
Can you post an example WRL file and the code you are using to spin the door?

If the door node is contained in a hierarchy, then you might be getting a handle to the wrong node. For example, if the WRL file is creating a transform above the door to offset the pivot, then you will need to get a handle to the transform in order to spin the door about the pivot.