#1
|
|||
|
|||
Color
Can I change the color of the models that add in vizard?
example. The box.wrl has Vizard is red, if I want change color How I do? model1=viz.add('box.wrl') model1.CHANGECOLOR(green) |
#2
|
|||
|
|||
Code:
model1.color(viz.GREEN) |
#3
|
|||
|
|||
Frank Verberne.
not working your code or tell me the error viz.go() viz.setMultiSample(4) viz.fov(60) viz.clearcolor(viz.SKYBLUE) edificio=viz.addChild('model/ID_1.dae',pos=[0,0,0]) edificio.color(viz.GREEN) Result: |
#4
|
|||
|
|||
This my result:
http://bit.ly/1mPIpCY |
#5
|
|||
|
|||
The code should work for the box.wrl that comes with Vizard. I don't anything about your collada model, so perhaps an exporting issue? Check this knowledge base for more information about importing collada models in Vizard: http://kb.worldviz.com/articles/1413. The answer to your other scale question is also on that page.
|
Tags |
change, color, model |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Masking specific color on texture applied | Chapre | Vizard | 1 | 05-03-2011 12:20 PM |
Change textbox color? | renama | Vizard | 2 | 10-19-2010 07:44 PM |
trouble changing subnode (child node) color, alpha, etc. | michaelrepucci | Vizard | 7 | 01-14-2009 08:38 PM |
Changing the Color of On-the-Fly Objects | vjosh | Vizard | 1 | 01-04-2005 11:48 PM |
Fog Color | bstankie | Vizard | 1 | 06-02-2004 01:59 PM |