WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-19-2006, 11:21 AM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
Pivot points for child objects in Vizard with 3ds Max

For Vizard rotations to occur around a Max specified pivot point follow these steps.

--VRML's
1)Place child object at pivot point
2)Move child object with gizmo under the
Xtransform modifier to intended position.
3)Use <VizNode>. getChild () to get the geode node: usually called "MyChildName-FACES"
4)You can rotate this child node as one would expect

--OSG
1) Note the location in Max you would like the pivot to be.
2) Export as .osg.
3) As .osg is a text format, open the file with text editor and name the Geode object of the child node you want to spin by placing name “myNodesName” in its section. Should look something like this:
Code:
      Geode {
        name 'childTea'
        UniqueID Geode_2
        DataVariance STATIC
4) Right click on the object in Vizard’s resources view, select properties and verify that the purple square (not the gear) is the name you gave it.
5)Use <VizNode>.getChild() to get the geode node you just named.
6) You can now rotate this object about its pivot point; however the object is in OSG’s coordinate system which is different than Vizard’s so some of the axes will be exchanged.


The final release of R3 will have a better workflow for rotating child objects.
Attached Files
File Type: zip childPivotExample.zip (18.6 KB, 2362 views)
__________________
Paul Elliott
WorldViz LLC
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:51 AM.


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