Comments (6)
I'd resolve this by rescaling Y by -1 in the volume's transform. That'd also keep segmentations etc. aligned correctly.
from scenery.
from scenery.
@skalarproduktraum bump
from scenery.
When testing on RAIExample, doing this in Volume.kt does not resolve the problem (or the equivalent inside Volume.localScale
):
override fun composeModel() {
@Suppress("SENSELESS_COMPARISON")
if(position != null && rotation != null && scale != null) {
model.translation(position)
model.mul(Matrix4f().set(this.rotation))
if(volume.origin == Origin.Center) {
model.translate(-2.0f, -2.0f, -2.0f)
}
model.scale(scale)
model.scale(volume.localScale())
model.scale(0f,-1f,0f)
}
}
from scenery.
Ok, @skalarproduktraum pointed out that RAIVolume overrides localScale. This is currently the only one that does such an override. Fix is here https://github.com/scenerygraphics/scenery/compare/fix-volume-flip?expand=1
from scenery.
Fixed in #449 👍
from scenery.
Related Issues (20)
- Upgrade pom-scijava dependency to 35.1.1 HOT 1
- Extending the docoumentation by a chapter on RenderDoc usage HOT 1
- Improve build system's handling of native classifier dependencies
- FFM-based OpenGL bindings HOT 1
- Node.runRecursive should use a copy of children HOT 1
- Put a lid on cylinders HOT 1
- RAISource.converterSetups is ArrayList, but should be more general HOT 4
- Subscribing to Node state changes HOT 1
- Shift key does not register in input handler HOT 6
- Wrong default VR controller bindings on HP Reverb G2 (WMR) and missing collision detection HOT 1
- Arcball jittery at far distances HOT 1
- Bug in FlybrainOutOfCoreExample HOT 1
- Support for changing a PointCloud's pointRadius
- Expose private members of ArcballCameraControl as protected
- LineExample renders triangles instead of lines HOT 4
- Resizing transfer function/colormap editor changes rendering of volume HOT 2
- Transfer function editor: disable right click placing of new points
- segfault in sciview HOT 1
- Asynchronous texture transfers for adding volume timepoints
- Relative path reference issue in other project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scenery.