karasusan / OpenVDBForUnity

Unity plugins for OpenVDB
MIT License
261 stars 41 forks source link

VR Support #3

Open GordeyChernyy opened 6 years ago

GordeyChernyy commented 6 years ago

Awesome work! It opens a lot of possibilities. Just tried to run it in VR. It works with default unity pipeline and have a good frame rate on a cloud but have a weird stereoscopic distortion. Is there any chance to adapt it for VR?

karasusan commented 6 years ago

Thank you for your attention. I am sorry I have never tried to run in VR. Maybe I have bugs in my shader code. Could you attach screenshots for the bug?

GordeyChernyy commented 6 years ago

There is a one sample cloud and objects intersecting with it just to see that cloud have a very different view for the left and right eye. You can notice this in editor when you rotate view if there is an object intersecting with volume some pieces might disappear.

screenshot 145

karasusan commented 6 years ago

This is very interesting and it is understood that I have to fix my shader for multiple cameras. I will check this article and fix my raymarching algorithm.

GordeyChernyy commented 6 years ago

Holy crap! Experience of raymarching toolkit in VR is something. Looking forward to your implementation! Thanks!

riccardogiorato commented 5 years ago

Is there any news on this fix to use it in VR?