BlockRenderer icon indicating copy to clipboard operation
BlockRenderer copied to clipboard

Entity Renderer

Open AterAnimAvis opened this issue 5 years ago • 2 comments

MinecraftWiki:StandardizedViews

  • [x] Calculate Render Size based on Scale and Angle
  • [ ] UI to change Partial Ticks
  • [ ] UI to select / preview Entity
  • [ ] UI to change viewing angles
  • [ ] Bulk Render
  • [x] API to declare Entity Bound Box
    • [ ] Vanilla values
  • [ ] API to declare / modify Entity for View
    • [ ] Zombie Arms
    • [ ] Silverfish
    • [ ] Guardians
    • Anything Else
  • [ ] Entity Particles (e.g. Blaze)

AterAnimAvis avatar May 02 '20 16:05 AterAnimAvis

Current Bounding Box is just the entities AABB + .5f

Current Rendering State Cave Spider Current Rendering State Zombie

AterAnimAvis avatar May 11 '20 10:05 AterAnimAvis

Blue Bounding Box is a unit cube centered on (0, 0, 0) Red Bounding Box is declared Entity Render Box

Fixed an issue with centering not taking into account none equal x and z values.

Javascript files get loaded from /renders/scripts/*.bounds.js using Nashorn (With ES6 enabled). Can also register 'BoundsProvider' by a ServiceLoader or programatically.

TODO:

  • Priority System?
  • Further Sandboxing
  • Utility functions for API
  • A whole lot of JS files for Vanilla Mobs

Current Render State:

BoundsProviderJS BoundsProviderJSResult

AterAnimAvis avatar May 17 '20 13:05 AterAnimAvis