WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Tags
image jpg bmp

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
how to start video texture on world load in cave mode raj Vizard 3 02-27-2014 04:55 PM
ERROR: Failed to load .ive file turgutm Vizard 1 09-16-2010 05:16 AM
Failed to load wav file BrynJ Vizard 1 04-24-2008 09:35 AM
Could not find plugin to load objects... halley Vizard 1 05-30-2006 11:01 AM
File Path 4 Object Load softscan2 Vizard 1 09-23-2005 08:59 AM


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


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