WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-12-2010, 10:24 AM
Renato Lima Renato Lima is offline
Member
 
Join Date: Sep 2010
Posts: 54
Exclamation textures bug/problem?

I have to choose between to methods of applying a texture.
I would like to use A, but the resolution is MUCH lower than B. Why? How do I make is as good? Thanks

Method A:
pngData = cStringIO.StringIO()
pylab.savefig(pngData, format='png')
pylab.close()
T = viz.addBlankTexture([1, 1])
T.loadBuffer('.png', pngData.getvalue())
TMP = vr_world.getChild("object")
TMP.texture(T)


Method B:
pngData = "mydo_chart.png"
pylab.savefig(pngData, format='png')
pylab.close()
T = viz.add(pngData)
TMP = vr_world.getChild("object")
TMP.texture(T)
Reply With Quote
  #2  
Old 10-12-2010, 03:12 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
How much lower is the resolution? Add the following line at the end of each sample to see what the images sizes are:
Code:
print T.getSize()
Reply With Quote
Reply


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
Textures not loading properly and offset window TarkaDahl Vizard 2 05-18-2010 01:54 PM
Textures Scrambled lionfish Vizard 3 02-26-2010 01:42 AM
Multiple Textures for Diffuse and Specularity Shader Issue shivanangel Vizard 1 05-11-2009 10:44 AM
Max -> Vizard, Two Sided Textures shivanangel Vizard 5 12-04-2008 03:15 AM
Overlaying Textures with Alpha Masks vjosh Vizard 7 04-06-2005 07:46 PM


All times are GMT -7. The time now is 04:25 PM.


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