#1
|
|||
|
|||
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" |
#2
|
|||
|
|||
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) |
|
|
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 |