WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-25-2014, 03:39 PM
roobert roobert is offline
Member
 
Join Date: May 2014
Location: Pachuca, Hidalgo, México
Posts: 34
Send a message via Skype™ to roobert
Question 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)

Reply With Quote
  #2  
Old 07-26-2014, 01:19 AM
Frank Verberne Frank Verberne is offline
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 148
Code:
model1.color(viz.GREEN)
Would do the trick. You can also use RGB values for all the colors that you would like, see http://docs.worldviz.com/vizard/comm...de3d/color.htm.
Reply With Quote
  #3  
Old 07-26-2014, 08:04 AM
roobert roobert is offline
Member
 
Join Date: May 2014
Location: Pachuca, Hidalgo, México
Posts: 34
Send a message via Skype™ to roobert
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:
Reply With Quote
  #4  
Old 07-26-2014, 08:22 AM
roobert roobert is offline
Member
 
Join Date: May 2014
Location: Pachuca, Hidalgo, México
Posts: 34
Send a message via Skype™ to roobert
This my result:
http://bit.ly/1mPIpCY
Reply With Quote
  #5  
Old 07-26-2014, 12:45 PM
Frank Verberne Frank Verberne is offline
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 148
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.
Reply With Quote
Reply

Tags
change, color, model

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
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


All times are GMT -7. The time now is 08:37 AM.


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