#1
|
|||
|
|||
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) |
#2
|
|||
|
|||
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() |
|
|
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 |