WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   How can I make objects (not the whole screen) blurry? (https://forum.worldviz.com/showthread.php?t=6432)

khvo100v 09-25-2023 08:13 AM

How can I make objects (not the whole screen) blurry?
 
Hello!

I am coding an experiment in Vizard. I want to present an object (e.g., a box) behind the semitransparent glass. To make it look more realistic, I want to make the edges of the object a bit blurry.
How can I do that? I found the Blur effects in Vizard documentation but it seems to me that they make the whole picture blurry, not specific places.

I would appreciate any help! I attached the toy version of my script with an object behind the glass. As you can see, the edges of the object have the same sharpness if you look at them directly or through the glass.


viz.setMultiSample(8)
viz.fov(60)
viz.go()
ground = viz.addChild('ground.osgb')
target = vizshape.addBox(size=[0.5,0.5,0.001], pos=[0,1.5,6])
filter_= vizshape.addQuad(size=[3.4,1.8],axis=vizshape.AXIS_Z,cullFace=False,alpha=0.5,eul er = [0,180,0],pos=[0,1.5,4],color=[0,0,1])


All times are GMT -7. The time now is 10:56 PM.

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