scenerygraphics / sciview

sciview is a tool for visualization and interaction with ND image and mesh data
BSD 2-Clause "Simplified" License
67 stars 17 forks source link

Meshes rotating with camera #444

Closed kephale closed 1 year ago

kephale commented 1 year ago

The meshes in Show Segmentations demo seem to rotate with the camera

image

After rotating a little bit

image
kephale commented 1 year ago

IIRC, @skalarproduktraum we had this issue before

kephale commented 1 year ago

This one really confuses me. Why does this only happen for the meshes from Show Segmentations but not CREMI?

image image
skalarproduktraum commented 1 year ago

Hah! This is a fun one! There's nothing wrong here with transformations - the objects just have the wrong vertex order, so inside is outside. And as they are round, it looks like they're turning when you're moving around. Nice huh? 😂

skalarproduktraum commented 1 year ago

Can be solved btw by setting isoSurfaceMesh.material().setCullingMode(Material.CullingMode.Front); in the demo.