WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 02-23-2005, 12:57 PM
shai shai is offline
Join Date: Oct 2004
Posts: 29

hi, i was wondering, i'd like to use texquad to texture an image,
but for some reason it "scales" my image and makes my edges
fuzzy, but i'd like my edges to be as clean as they are in photoshop. is there a way to make texquad not scale my image?

tex = viz.add('images/stripes7.jpg')
quad2 = viz.add(viz.TEXQUAD)

btw, even if i don't use .scale it still fuzzes the image, i also tried making the image into a perfect square but that doesn't help either, any suggestions?

Reply With Quote
Old 02-23-2005, 01:09 PM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
OpenGL texture dimensions must be a power of two, unless you use texture rectangles. To remove the fuzziness around the edges try the following:
If you don't want your texture to be scaled and you also don't want to resize it to a power of two then you can do the following:
tex = viz.add('images/stripes7.jpg',viz.TEX_RECT)
xform = viz.Transform()
Replace the variable width and height with the actual width and height of the image.
Reply With Quote

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

All times are GMT -7. The time now is 01:14 AM.

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