#1
|
|||
|
|||
child-objects in VRML-file all have the same coordinates
Hi,
I generated a simple maze using Blender, consisting of the actual maze and two additional smaller objects, which are attached to the maze's wall. In Vizard, I can import this maze as a wrl-file without any problems, also extracting the two additional objects via getChild worked. I can manipulate the child-objects scaling, the rotation, color, all ok. However, when I query the objects' coordinates via getPosition, both the parent (maze) and the children (additional objects) have the same coordinates, namely (0,0,0). Querying the position with with ABS_GLOBAL also didn't help. Could someone please help me out here? |
#2
|
|||
|
|||
Make sure you get a handle to the lowest level transform before you call getPosition with the viz.ABS_GLOBAL flag. This article shows how to do this using an OSG model. The idea is the same with your VRML model, however it won't be using the GEODE naming convention.
|
#3
|
|||
|
|||
Hi,
thanks for your answer! However, I think I did the steps shown in the article (those that also should apply for wrl files), and still I only get (0,0,0) for parent and children. Concerning getting the lowest level transform: according to the properties of the wrl file as shown in Vizard, my handle indeed aims at the lowest level featuring the gear symbol. Further down, only cube- and grid symbols are shown. This is how I tried to do it: Code:
track=viz.add('inftytex.wrl') cue1=track.getChild('OB_cue_card_1_0_0') cue2=track.getChild('OB_cue_card_2_0_0') cuePos1=cue1.getPosition(viz.ABS_GLOBAL) |
#4
|
|||
|
|||
Are you saying that the purple cube object has no name associated with it?
|
#5
|
|||
|
|||
Yes, that is correct. I'll attach the complete properties window:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
detect collision with child objects | Jerry | Vizard | 1 | 12-09-2009 02:40 PM |
Locating the Coordinates of Vertices for on the fly objects | shivanangel | Vizard | 4 | 10-30-2006 09:28 PM |
Pivot points for child objects in Vizard with 3ds Max | Gladsomebeast | Vizard | 0 | 09-19-2006 12:21 PM |
Could not find plugin to load objects... | halley | Vizard | 1 | 05-30-2006 12:01 PM |
3D sound & child objects | FlyingWren | Vizard | 1 | 09-19-2003 01:13 PM |