wasabia / three_dart

three.js rewrite by Dart, Dart 3D library. an easy to use, lightweight, cross-platform, general purpose 3D library.
MIT License
444 stars 77 forks source link

StereoCamera not working #126

Closed JustFrederik closed 1 year ago

JustFrederik commented 1 year ago

I tried to implement the StereoCamera. I just created a second renderer to render each eye. The problem is eyeSep and aspect, both dont have an effect. The Cameras are equal. Heres a gist with my code. https://gist.github.com/JustFrederik/911e37e8174129768730d84e2db9ab78

wasabia commented 1 year ago

https://github.com/wasabia/three_dart/blob/main/lib/three3d/cameras/stereo_camera.dart not working?

https://github.com/mrdoob/three.js/blob/dev/src/cameras/StereoCamera.js

StereoCamera is one renderer two camera, not two renderer

JustFrederik commented 1 year ago

I ported StereoEffect, which is now in jsm