WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-23-2005, 12:10 PM
mspusch mspusch is offline
WorldViz Team Member
 
Join Date: Feb 2003
Posts: 223
how I can get my texture to appear exactly as is defined

Interesting question from Worldviz Support Forum at
http://worldviz.us/tt/index.php

Appearance of applied texture at color border -

I have a very simple texture which I apply to a quad. The texture simply is red (255,0,0) everywhere except for a green (0, 123, 0) circle in the center. The texture does not have any anti-aliasing so these are the only two colors which are in the texture.

When it is rendered on a quad, the borders are anti-aliased or something.

Can you tell me how I can get my texture to appear exactly as is defined?
Reply With Quote
  #2  
Old 04-23-2005, 12:12 PM
mspusch mspusch is offline
WorldViz Team Member
 
Join Date: Feb 2003
Posts: 223
You need to set the appearance mode of your quad to viz.TEXNEAREST. Here is some sample code:

quad = viz.add(viz.TEXQUAD)
tex = viz.add(\'stim-green_123.png\')
quad.texture(tex)

#This will remove mipmapping of the texture
quad.appearance(viz.TEXNEAREST)
Reply With Quote
Reply

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:31 AM.


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