WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Phantom Objects (https://forum.worldviz.com/showthread.php?t=4538)

javadi 03-31-2013 10:07 PM

Phantom Objects
 
Hi,

How can I create a phantom object? an object that is not visible, but has all the properties of objects (3D models)? Currently I import ("add") a simple object and scale it to 0.01 to make it very small and then move it to under the earth, so that it is not visible, but I can associate properties, links and children to it. Here it's a part of the code that I use,

Code:

Vnode = viz.add('beachball.osgb') # load a simple object as phantom object
Vnode.setScale([.01, .01, .01]) # scale down
Vnode.setPosition(0, -1, 0) # move it under the earth

ViewLink = viz.link(Vnode,viz.MainView) # link a view to Vnode
ViewLink.preTrans( [0,2.5,-10]) # adjust the position
ViewLink.preEuler( [0,5,0] )  # adjust the orientation

This way, the view moves and turns with the movement of the phantom object (Vnode). So, in other words, the question is how can I avoid creating Vnode? Very many thanks.

Greetings

Jeff 04-01-2013 11:37 AM

See this thread.

javadi 04-01-2013 12:58 PM

Quote:

Originally Posted by Jeff (Post 14768)
See this thread.

Great. Thanks for your reply.


All times are GMT -7. The time now is 03:36 PM.

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