WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-26-2010, 02:20 PM
Chapre Chapre is offline
Member
 
Join Date: Sep 2010
Posts: 36
scale problem using <node3d>.parent()

I have a problem with "<node3d>.parent()"

let me illustrate:

[COLOR="rgb(46, 139, 87)"]chair=viz.add("chair.osg",scale=(0.1,0.1,0.1))
van=viz.add("van.osg",scale=(0.1,0.1,0.1))
chair.parent(van)[/COLOR]

After I run the script, "chair" becomes child of "van", the only problem is that "chair" is again scaled and it become very small, please how could make chair child of van and keep the scale it had when it was still child of "viz"
Reply With Quote
  #2  
Old 09-27-2010, 11:23 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Just don't apply the scale factor to the chair object, and let it inherit the scale from the parent.
Code:
van=viz.add("van.osg",scale=(0.1,0.1,0.1))
chair=viz.add("chair.osg",parent=van)
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
winviz.exe problem llqqff Vizard 2 07-16-2010 09:08 AM
avatar scale and link.setpos conflict? sircedric4 Vizard 0 09-29-2009 07:48 AM
scale of image increase over time durf Vizard 1 05-08-2009 09:53 AM
export problem bazelaisr Vizard 2 05-28-2008 10:19 AM
problem with female animations vmonkey Vizard 1 10-07-2005 10:36 AM


All times are GMT -7. The time now is 01:59 AM.


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