View Single Post
  #4  
Old 12-11-2015, 01:33 PM
Veleno Veleno is offline
WorldViz Team Member
 
Join Date: Sep 2005
Posts: 148
Hi lklab,
Unfortunately avatar materials do not currently support exporting unfiltered textures like you are using in your scene. You may be able to turn it on manually through code.

The checkerboard effect you are looking at is an artifact of multisampling alpha - a technique that prevents draw order artifacts. Normally this shouldn't be on in your model unless you've explicitly turned on GL_SAMPLE_ALPHA_TO_COVERAGE_ARB, but it's possible that it's being set by your graphics card.

For references, this is how you would normally turn it on, with higher sampling giving smoother results.

Quote:
import viz

viz.setMultiSample(4)
#higher values increase quality but decrease framerate.
#usually set between 2 and 16

viz.go()

transModel = viz.add('model.IVE') #add a model, call it tranModel

GL_SAMPLE_ALPHA_TO_COVERAGE_ARB = 0x809E
transModel.disable(viz.BLEND)
transModel.enable(GL_SAMPLE_ALPHA_TO_COVERAGE_ARB)

viz.clearcolor(viz.GRAY)
Reply With Quote