microsoft / HoloJS

Provides a framework for creating holographic apps using JavaScript and WebGL.
MIT License
1.19k stars 114 forks source link

How to increase the FAR of the holographic camera frustum? #155

Closed nosy-b closed 6 years ago

nosy-b commented 6 years ago

Hi! It seems that the holographic camera FAR is at 10 meters. Where can I change this value?

Thanks!

nosy-b commented 6 years ago

@Almost-Done any clue? Thanks!

Almost-Done commented 6 years ago

The far plane is hard coded for now in ANGLE.

See HolographicSwapChain

For now, the only way to change it is to recompile ANGLE with your required value and update the ANGLE binaries in the HoloJS solution. A better solution is to make the near/far plane distances configurable from script, but that would require some design.

nosy-b commented 6 years ago

I changed the mFarPlaneDistance and rebuilt ANGLE, works like a charm thanks!