Strange bug concerning a mirror
2 Attachment(s)
Hi all,
I'm having some strange problems with my mirror. When I use viz.go(viz.HMD | viz.STEREO), the right half of the mirror doesn't reflect everything (mainly not my avatar and the frames of the paintings) but the left half does. When I use viz.go(viz.HMD), the whole mirror works fine. I have absolutely no clue why this happens, and it happens on both screens of the HMD in STEREO mode. Any clue on how to fix this problem is appreciated! See the pictures for the difference. |
I've modified the original mirror sample script to support stereo. The main differences are that a render node must be created for each eye. Also, I had to increase the clip plane scale factor to remove the clipping issues. Let me know if this works:
Code:
import viz |
Hi farshizzo,
The modification of the original mirror script works fine. The only error in it is the line Code:
lens.setMatrix(viz.Matrix.translate(-pos)*invRot*viz.Matrix.scale(1,1,-1)*rot*viz.Matrix.translate(pos)) Code:
lens.setMatrix(viz.Matrix.translate(pos*-1)*invRot*viz.Matrix.scale(1,1,-1)*rot*viz.Matrix.translate(pos)) |
All times are GMT -7. The time now is 08:32 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC