View Single Post
  #2  
Old 12-16-2014, 04:57 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You'll probably want to apply the texture to a sub-part of the model rather than the model as a whole. In the following code a new texture is applied to one of the gallery paintings:

Code:
import viz
viz.go()

gallery = viz.addChild('gallery.osgb')
texture = viz.addTexture('lake3.jpg')
gallery.texture(texture,node='painting_starry-night')
Reply With Quote