realtime calculated "reflection" & mirror transparency
1 Attachment(s)
Hello.
I am working on an optic effect similar to a reflection projected on an object. The difference to a reflection is, that areas of the "mirror" that would "reflect" the scene background should instead be transparent. For that purpose I created the attached test scene and script. The result should be that when looking into the mirror like surface, you should see the objects, with the wall in the background of the reflection. Actually you see the whole scene reflected in the mirror and the wall is obscured. Theoretically there are several ways to accomplish the desired effect. The easiest would be to simply turn the background (viz.clearcolor()) transparent, but it seems like alpha isnt working ? Alpha for clearcolor isnt documentated but it is recognized and used within viz.py. I am looking into ways to achieve the desired optical effect. Kind regards, Sebastian |
An other option would be to Set the alpha of the mirror to transparent and place the mirror texture at decal appearance. Also the Background has to be excluded from beeing rendered to the mirror.
but it seems that .renderOnlyToRenderNodes([model]) isnt working correct and the background is still visible in the mirror ? |
You could use
|
Thanks for the information.
and overwrites the mirroring of viz.clearcolor r,g,b with also an additional alpha value So the result is the one we were looking for. |
All times are GMT -7. The time now is 09:34 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC