WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Spin Pivot with a WRL (https://forum.worldviz.com/showthread.php?t=3929)

Kaminski 09-26-2011 03:01 PM

Spin Pivot with a WRL
 
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 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.


All times are GMT -7. The time now is 02:01 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC