WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-31-2013, 11:07 PM
javadi javadi is offline
Member
 
Join Date: Mar 2013
Location: London
Posts: 33
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
Reply With Quote
  #2  
Old 04-01-2013, 12:37 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,445
See this thread.
Reply With Quote
  #3  
Old 04-01-2013, 01:58 PM
javadi javadi is offline
Member
 
Join Date: Mar 2013
Location: London
Posts: 33
Quote:
Originally Posted by Jeff View Post
See this thread.
Great. Thanks for your reply.
Reply With Quote
Reply

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Picking up Vizard Objects on mouse down with collisions pwsnow Vizard 2 09-17-2012 03:02 AM
Trouble picking text3d objects Salvar Vizard 4 12-01-2010 04:07 PM
Semi-circle array containing target and distractor objects ptjt255 Vizard 3 08-04-2009 04:09 AM
Invisible haptic objects Haptiken Vizard 1 05-05-2009 05:04 PM
Could not find plugin to load objects... halley Vizard 1 05-30-2006 12:01 PM


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


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