PDA

View Full Version : pincushion distortion


whj
04-16-2010, 01:25 PM
Hi,

I have trouble to get pincushion distortion with this simple code. Can somebody point out what I'm missing? Thanks a lot!


import viz
import vizlens
viz.go()


pincushion = vizlens.PincushionDistortion()
viz.add('tankmaze.wrl')

Jeff
04-16-2010, 01:36 PM
That is working correctly. You can see how the image changes when you press the spacebar.
import viz
import vizlens
viz.go()

viz.add('tankmaze.wrl')

vizact.onkeydown(' ',vizlens.PincushionDistortion)

whj
04-19-2010, 03:46 PM
Thank you Jeff. But I guess my graphics card doesn't support this function. I'm wondering what is the limit of my graphics card. It works well on other applications.

THANKS!