Log in

View Full Version : Occlude Peripheral Visual Field


Qiliang He
03-28-2016, 05:55 PM
Hello,

I'm wondering how to occlude the peripheral visual field, as indicated in the attached figure (From a to b)?

https://drive.google.com/open?id=0Bxw9FO0fRYm6enFsLUtQRzRndms

I tried the following codes, but the problem is I don't know how to make the texture transparent at the center but opaque in the peripheral.


quad = viz.addTexQuad(parent=viz.HEAD, size=5)
quad.color(1,0,0)
quad.setPosition([0,0,0.1])
quad.alpha(0.5)


Any help is appreciated, thank you!

Qiliang He
03-29-2016, 04:18 AM
I know how to do it, thanks.