![]() |
|
#2
|
|||
|
|||
|
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')
|
| Tags |
| image jpg bmp |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to start video texture on world load in cave mode | raj | Vizard | 3 | 02-27-2014 05:55 PM |
| ERROR: Failed to load .ive file | turgutm | Vizard | 1 | 09-16-2010 06:16 AM |
| Failed to load wav file | BrynJ | Vizard | 1 | 04-24-2008 10:35 AM |
| Could not find plugin to load objects... | halley | Vizard | 1 | 05-30-2006 12:01 PM |
| File Path 4 Object Load | softscan2 | Vizard | 1 | 09-23-2005 09:59 AM |