Open kephale opened 8 years ago
@hanslovsky got this working somewhere
@kephale This is what I have:
https://github.com/saalfeldlab/bigcat/blob/063ad42e75d99023491ebeafcd6b1a8c224b67e9/src/main/java/bdv/bigcat/viewer/viewer3d/OrthoSlice.java
https://github.com/saalfeldlab/bigcat/blob/063ad42e75d99023491ebeafcd6b1a8c224b67e9/src/main/java/bdv/bigcat/viewer/viewer3d/OrthoSliceMesh.java
The OrthoSlice
manages updates of the OrthoSliceMesh
whenever the bdv renderer finishes or the transform changed but it should not be too hard to modify it to your use case.
OrthoSliceMesh
should be useable pretty much as is. There are some caveats:
GenericTexture
This should be GLTypeEnum.UnsignedByte
instead (scenerygraphics/scenery#102)@hanslovsky the lighting you describe is just called ambient lighting, and I originally wanted to keep it out. But after talking to you, and Kyle and others, I think it actually makes sense to have it. I'll soon put it in so you can use it, the changes required from you then will be minimal
Orthogonal views was another way of viewing an image in 3D. This might be easily achieved via textures and Scenery's Plane Node.