View Single Post
  #1  
Old 07-31-2007, 02:24 PM
mjabon mjabon is offline
Member
 
Join Date: Jul 2007
Posts: 63
Another color question

I have a question about coloring. I want to just make a purple box so I wrote this:

Code:
import viz

viz.go()

#set up view
viz.clearcolor(viz.SKYBLUE)	
view = viz.get(viz.MAIN_VIEWPOINT)
view.translate(0,0,-25)

#add box
box = viz.add('box.wrl')
box.scale(3,3,3)
box.translate(0,0,0)

#color box
box.color(viz.PURPLE)

The thing is, looking straight at the box it appears white. Only when I move around in the world and look at different angles does it appear purple. Why is this? I want the box to always look purple from all sides.
Reply With Quote