silx-kit / h5web

React components for data visualization and exploration
https://h5web.panosc.eu/
MIT License
161 stars 17 forks source link

Tweak camera frustrum to provide wider `z` range #1632

Closed axelboc closed 2 months ago

axelboc commented 2 months ago

Fix #1626

I went with { near: 0, far: 1000, position: [0, 0, 1000] } to give a visible z range of [0 1000] as explained in https://github.com/silx-kit/h5web/issues/1626#issuecomment-2082921944.

To make the relation between the camera frustrum/position settings and the visible z range, I've defined three constants and exported/documented them in @h5web/lib.