Comments (4)
I just added support for animations to the GPU-renderer. It does not seem to work as expected in the CPU-renderer, though.
The Scene class contains an addSceneObserver(SceneObserver) method. The SceneObserver interface now contains an onUpdate(Scene, float) method that can be implemented. You could use the AbstractSceneObserver class and only override that method, instead of implementing them all.
I'm not sure if this could be used by you, or you need something else?
An example scene, called Animation.java, has been added as well.
from dayflower.
Thats so awesome!
An observer on the Transforms would be the easiest interface. That said i guess i can look into a stateful update. I will look closely at Animation.java when im back at work tomorrow morning.
from dayflower.
The Transform class already has methods to add TransformObservers to it. But they are only called by the Transform class, when it is updated by its methods. You perhaps need some adapter class that delegates changes from the JavaFX Transform to something equivalent in its associated Dayflower Transform? Or even in both directions; from JavaFX to Dayflower and from Dayflower to JavaFX.
from dayflower.
In what use case would Dayflower modify a Transform itself? I think one directional binding is sufficient. If your transform implemented
cube.localToSceneTransformProperty().addListener((value, oldValue, newValue) -> {
System.out.println("Transformation has changed");
});
and applied that in a way that the renderer is aware, then a User can write code to attach the Dayflower transfomr to the JavaFX transform (where animations are targeted by other software to be rendered)
from dayflower.
Related Issues (14)
- resources folder HOT 2
- Closing the last tab in Dayflower Application causes a hang HOT 2
- [Question] License? HOT 4
- Recent dependancy change broke Java 8 support HOT 2
- Add support for DiffuseAreaLight to the GPU-renderer
- Add support for UberMaterial to the GPU-renderer
- calls to missing resources HOT 8
- Main Dayflower application stays loaded in NetBeansIDE HOT 3
- Add support for FileParameter in the JavaFX-based ParameterLoader implementation
- Rename methods called luminance to relativeLuminance HOT 1
- Add intersection methods to Rectangle2D, Rectangle2F and Rectangle2I
- [Question] Virtual Range finder (Realsense) depth image from Dayflower HOT 9
- [Feature Request] Change JavaSceneLoader to use InputStream instead of File
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 dayflower.