Skip to content

v0.2.0 Release πŸŽ‰

Choose a tag to compare

@HugoOlsson HugoOlsson released this 08 Nov 19:50
· 99 commits to main since this release

This is a pretty big release and puts DefinedMotion into a more finished state.

New features

  1. Introducing addDeferredAnims(...). When using the standard addAnims(...), animations use state values at "plan time", which makes it awkward to use the values the animation will have when it's planned to start. This is a consequence of DefinedMotion's declarative model where it builds the entire animation before anything is run. This model is great for most things, but makes some sequential animations hard to do. By using addDeferredAnims(...) these problems are fixed. Adding animations with this makes DM only evaluate the animation when it starts.
  2. Major UI updates giving new design, frame and time indicators, helpers, and details that show animation FPS and render FPS.
  3. The viewer window will remember its size and position when you close it and open it. This is pretty important because depending on the aspect ratio of the animation you are currently working on, very different sizes/aspect ratios will be used. To always resize this after you run "npm run dev" is quite annoying and this fixes that.
  4. Adding DoAt(tick/frame, function). This is a function that works like the current do(...), but lets you put the action anywhere instead of just the current scheduler position.
  5. A new hot reload mode where the animation starts fresh from the beginning when you save has been added. This is often useful for scenes that simulate, are very expensive or are inherently random since they might be awkward to trace or to hot reload at the current frame without trace. This new mode is therefore a third option when it comes to hot reload in DefinedMotion.
  6. More clear FPS settings for the animation and render. This is now also shown with clear output of what is currently used.
  7. Rename of the functions addAnim(...) and insertAnimAt(...) to addAnims(...) and insertAnimsAt(...) since they actually can take multiple animations.

Bug fixes

  1. Fixed HDRIs making some computers super slow. This was because they had a high pixel ratio and the textures were scaled weirdly which resulted in large shader work for HDRIs on some computers like MacBooks.
  2. Added "Do not save" text during rendering so that people are aware that the viewer is still sensitive to hot reload during a render. In the future, mechanisms that prevent hot reload during rendering might be implemented to handle this more robustly. This is however likely not a big issue.