WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 01-18-2012, 02:04 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
In the second example you are not actually creating a texture object. You are just passing the string containing the filename to the texture command. Unfortunately, the texture command silently ignores this error. It will be modified in a future release to raise an exception in this case. Either way, you can fix this problem by modifying the line:
Code:
self.obj.infoImage = contentsImage
to:
Code:
self.obj.infoImage = viz.add(contentsImage)
Reply With Quote
 


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
Jumping to a class object from one of it's components EnvisMJ Vizard 0 04-25-2011 12:22 PM
Collision of an avatar with a quad Frank Verberne Vizard 8 06-04-2008 10:44 AM
quad buffered stereo? halley Vizard 2 10-19-2005 01:28 PM
method of a class instance not accepted as Callback Gilliard Vizard 1 08-10-2005 06:49 PM
texturing on-the-fly objects vr_boyko Vizard 1 05-11-2005 06:06 PM


All times are GMT -7. The time now is 04:47 AM.


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