@needle-tools/engine 4.10.0-next.4f9d92a → 4.10.0-next.870425c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/CHANGELOG.md +8 -3
  2. package/README.md +2 -1
  3. package/dist/{needle-engine.bundle-D4dO0t5I.umd.cjs → needle-engine.bundle-0b6rexDr.umd.cjs} +139 -137
  4. package/dist/{needle-engine.bundle-BeZ_xmJa.js → needle-engine.bundle-B5GtGvbq.js} +7750 -7653
  5. package/dist/needle-engine.bundle-CicGQeCY.min.js +1652 -0
  6. package/dist/needle-engine.js +15 -14
  7. package/dist/needle-engine.min.js +1 -1
  8. package/dist/needle-engine.umd.cjs +1 -1
  9. package/dist/vendor-CPuBPspY.umd.cjs +1121 -0
  10. package/dist/vendor-DPCU8cUF.min.js +1121 -0
  11. package/dist/vendor-MBoqSyFm.js +16240 -0
  12. package/lib/engine/engine_camera.js +5 -5
  13. package/lib/engine/engine_camera.js.map +1 -1
  14. package/lib/engine/engine_gizmos.d.ts +11 -10
  15. package/lib/engine/engine_gizmos.js +24 -10
  16. package/lib/engine/engine_gizmos.js.map +1 -1
  17. package/lib/engine/engine_license.js +1 -1
  18. package/lib/engine/engine_license.js.map +1 -1
  19. package/lib/engine/engine_lightdata.d.ts +3 -3
  20. package/lib/engine/engine_lightdata.js +10 -10
  21. package/lib/engine/engine_lightdata.js.map +1 -1
  22. package/lib/engine/engine_physics_rapier.js +4 -0
  23. package/lib/engine/engine_physics_rapier.js.map +1 -1
  24. package/lib/engine/engine_scenelighting.d.ts +1 -1
  25. package/lib/engine/engine_scenelighting.js +4 -5
  26. package/lib/engine/engine_scenelighting.js.map +1 -1
  27. package/lib/engine/engine_utils.d.ts +3 -1
  28. package/lib/engine/engine_utils.js +11 -0
  29. package/lib/engine/engine_utils.js.map +1 -1
  30. package/lib/engine/extensions/extension_utils.js +1 -1
  31. package/lib/engine/extensions/extension_utils.js.map +1 -1
  32. package/lib/engine/webcomponents/needle-engine.js +22 -0
  33. package/lib/engine/webcomponents/needle-engine.js.map +1 -1
  34. package/lib/engine/xr/NeedleXRController.d.ts +3 -3
  35. package/lib/engine/xr/NeedleXRController.js +28 -0
  36. package/lib/engine/xr/NeedleXRController.js.map +1 -1
  37. package/lib/engine-components/Camera.d.ts +1 -1
  38. package/lib/engine-components/Camera.js +1 -1
  39. package/lib/engine-components/CameraUtils.js +2 -1
  40. package/lib/engine-components/CameraUtils.js.map +1 -1
  41. package/lib/engine-components/CharacterController.d.ts +2 -2
  42. package/lib/engine-components/CharacterController.js +2 -2
  43. package/lib/engine-components/OrbitControls.d.ts +1 -1
  44. package/lib/engine-components/OrbitControls.js +1 -1
  45. package/lib/engine-components/Skybox.js +22 -4
  46. package/lib/engine-components/Skybox.js.map +1 -1
  47. package/lib/engine-components/debug/LogStats.d.ts +1 -0
  48. package/lib/engine-components/debug/LogStats.js +1 -0
  49. package/lib/engine-components/debug/LogStats.js.map +1 -1
  50. package/lib/engine-components/timeline/PlayableDirector.js +1 -1
  51. package/lib/engine-components/timeline/PlayableDirector.js.map +1 -1
  52. package/lib/engine-components/timeline/TimelineModels.d.ts +37 -2
  53. package/lib/engine-components/timeline/TimelineModels.js +6 -0
  54. package/lib/engine-components/timeline/TimelineModels.js.map +1 -1
  55. package/lib/engine-components/timeline/TimelineTracks.d.ts +2 -1
  56. package/lib/engine-components/timeline/TimelineTracks.js +26 -23
  57. package/lib/engine-components/timeline/TimelineTracks.js.map +1 -1
  58. package/lib/engine-components/web/ScrollFollow.d.ts +2 -0
  59. package/lib/engine-components/web/ScrollFollow.js +114 -99
  60. package/lib/engine-components/web/ScrollFollow.js.map +1 -1
  61. package/lib/engine-components/web/ViewBox.d.ts +33 -3
  62. package/lib/engine-components/web/ViewBox.js +133 -49
  63. package/lib/engine-components/web/ViewBox.js.map +1 -1
  64. package/lib/engine-components/webxr/WebARSessionRoot.js +1 -0
  65. package/lib/engine-components/webxr/WebARSessionRoot.js.map +1 -1
  66. package/lib/engine-components-experimental/Presentation.d.ts +1 -0
  67. package/lib/engine-components-experimental/Presentation.js +1 -0
  68. package/lib/engine-components-experimental/Presentation.js.map +1 -1
  69. package/package.json +2 -1
  70. package/src/engine/engine_camera.ts +5 -7
  71. package/src/engine/engine_gizmos.ts +37 -23
  72. package/src/engine/engine_license.ts +1 -1
  73. package/src/engine/engine_lightdata.ts +11 -11
  74. package/src/engine/engine_physics_rapier.ts +3 -0
  75. package/src/engine/engine_scenelighting.ts +5 -6
  76. package/src/engine/engine_utils.ts +12 -0
  77. package/src/engine/extensions/extension_utils.ts +1 -1
  78. package/src/engine/webcomponents/needle-engine.ts +33 -6
  79. package/src/engine/xr/NeedleXRController.ts +36 -4
  80. package/src/engine-components/Camera.ts +1 -1
  81. package/src/engine-components/CameraUtils.ts +1 -1
  82. package/src/engine-components/CharacterController.ts +2 -2
  83. package/src/engine-components/OrbitControls.ts +1 -1
  84. package/src/engine-components/Skybox.ts +26 -7
  85. package/src/engine-components/debug/LogStats.ts +1 -0
  86. package/src/engine-components/timeline/PlayableDirector.ts +1 -1
  87. package/src/engine-components/timeline/TimelineModels.ts +37 -3
  88. package/src/engine-components/timeline/TimelineTracks.ts +26 -23
  89. package/src/engine-components/web/ScrollFollow.ts +121 -103
  90. package/src/engine-components/web/ViewBox.ts +140 -50
  91. package/src/engine-components/webxr/WebARSessionRoot.ts +1 -0
  92. package/src/engine-components-experimental/Presentation.ts +1 -0
  93. package/dist/needle-engine.bundle-C3bpSNYu.min.js +0 -1650
  94. package/dist/vendor-D0Yvltn9.umd.cjs +0 -1121
  95. package/dist/vendor-DU8tJyl_.js +0 -14366
  96. package/dist/vendor-JyrX4DVM.min.js +0 -1121
package/CHANGELOG.md CHANGED
@@ -4,14 +4,19 @@ All notable changes to this package will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
- ## [4.10.0-beta] - 2025-09-18
7
+ ## [4.10.0] - 2025-09-29
8
+ - **NEW**: [**Scrollytelling Bike Example**](https://scrollytelling-bike-z23hmxb2gnu5a.needle.run/) – This example uses ViewBox, FocusRect and ScrollFollow to create a scrollytelling experience. All project files are [available on Github](<https://github.com/needle-engine/needle-engine-bike-scrollytelling>).
8
9
  - **NEW**: HoverAnimation component. Use this component to get a scale hover animation of an object when the cursor is hovering over the object or one of it's children.
10
+ - **NEW**: ViewBox component. Use this component to automatically perfectly fit your 3D scene into the camera view. Try the Scrollytelling Example to see it in action, test the [example on Stackblitz](<https://stackblitz.com/edit/needle-engine-view-box-example?file=src%2Fmain.ts>) or see the [ViewBox documentation](<https://engine.needle.tools/docs/api/ViewBox>) for details.
9
11
  - Add: `fitCamera` function
10
- - Add: `<needle-engine poster>` attribute. It works with an URL to an image that should be shown as a poster image. If no URL is assigned then the poster that is automatically generated during the first frame will be used
12
+ - Add: `<needle-engine poster>` attribute. It works with an URL to an image that should be shown as a poster image. If no URL is assigned then the poster that is automatically generated during the first frame will be used.
13
+ - Add: `<needle-engine focus-rect="<html_selector">` attribute. Assign a HTML selector to the attribute to use a specific HTML element on screen offset the 3D camera center to the center of the HTML element. (The same can be done programmatically using `ctx.setCameraFocusRect(<html_element|DOMRect>)`)
14
+ - Add: Timeline [ScrollMarker](<https://engine.needle.tools/docs/api/ScrollMarkerModel>) for Unity and Blender timeline animations to control timing based on HTML visibility.
11
15
  - Fix: Renderer `material` accessing error when component was not yet initialized
12
16
  - Fix: Poster screenshot glitch during the first frame (development only)
17
+ - Fix: HTC Vive Focus 3 controller movement ([forum post](<https://forum.needle.tools/t/movement-via-controller-in-vr-with-htc-vive-focus-3/2718>))
13
18
  - Change: Loading display does not show Needle logo anymore by default
14
- - Change: Use fallback raycast method for lowpoly meshes while BVH is being generated
19
+ - Change: Use fallback raycast method for lowpoly meshes while the faster mesh BVH is being generated
15
20
 
16
21
  ## [4.9.3] - 2025-09-15
17
22
  - Fix: SpriteRenderer index issue when animated where animation precision issue was causing the wrong sprite to be selected ([issue](<https://forum.needle.tools/t/switching-sprite-images-via-timeline-causes-ghosting-glitches-when-exported/2709>))
package/README.md CHANGED
@@ -63,7 +63,8 @@ npm install @needle-tools/engine
63
63
  | [![](https://cdn.needle.tools/static/images/changelog/4.8.8-focus-thumbnail.jpg)](https://responsive-layout-z23hmxb22no6t.needle.run/) | [Camera Focus DIV 1](https://responsive-layout-z23hmxb22no6t.needle.run/) | Responsive layout with camera focus | [Code on Stackblitz](https://stackblitz.com/edit/needle-engine-camera-focus-rect?file=src%2Fsidebar.ts,index.html,src%2Fmain.ts) |
64
64
  | [![](https://cdn.needle.tools/static/images/changelog/4.8.8-focus-2-thumbnail.jpg)](https://responsive-layout-click-example-z23hmxbzuyk6y.needle.run/) | [Camera Focus DIV 2](https://responsive-layout-click-example-z23hmxbzuyk6y.needle.run/) | Click-to-move camera focus example | [Code on Stackblitz](https://stackblitz.com/edit/needle-engine-camera-focus-rect-click-to-move?file=index.html,src%2Fmain.ts) |
65
65
  | [![](https://cdn.needle.tools/static/images/changelog/fasthdr-thumbnail.jpg?1)](https://fasthdr-needle-engine-zubcks1li2iy.needle.run/) | [FastHDR Loading](https://fasthdr-needle-engine-zubcks1li2iy.needle.run/) | 10x faster than EXR, non-blocking, 95% less GPU memory | [Code on Stackblitz](https://stackblitz.com/edit/needle-fast-hdri-needle-engine) • [Learn more](https://cloud.needle.tools/hdris) |
66
- | [![](https://cdn.needle.tools/static/images/changelog/scrollytelling-2-thumbnail.jpg)](https://scrollytelling-2-z23hmxby7c6x.needle.run/) | [Scrollytelling Example](https://scrollytelling-2-z23hmxby7c6x.needle.run/) | No-Code example for using browser scroll and cursor to create playful and stunning 3D backgrounds | [Included in Samples Package](https://samples.needle.tools) |
66
+ | [![](https://cdn.needle.tools/static/images/changelog/scrollytelling-2-thumbnail.jpg)](https://scrollytelling-2-z23hmxby7c6x.needle.run/) | [Scrollytelling Example](https://scrollytelling-2-z23hmxby7c6x.needle.run/) | Scroll, physics and cursor interaction: a playful 3D interactive scrollytelling website | [Included in Samples Package](https://samples.needle.tools) |
67
+ | [![](https://cdn.needle.tools/static/images/changelog/scrollytelling-bike-thumbnail.jpg)](https://scrollytelling-bike-z23hmxb2gnu5a.needle.run/) | [Scrollytelling Bike Example](https://scrollytelling-bike-z23hmxb2gnu5a.needle.run/) | Timeline Animation using ScrollFollow, ViewBox and FocusRect | [Project on Github](https://github.com/needle-engine/needle-engine-bike-scrollytelling) |
67
68
  | | [AR Restaurant](https://ar-restaurant-example-zubcks1t14le.needle.run/) | Interactive AR restaurant experience | [Code on Github](https://github.com/needle-engine/ar-restaurant-example) |
68
69
  | | [Custom Loading Overlay](https://lods-loading-overlay-z23hmxbz29h8vr.needle.run/) | Wait for LODs with custom loading states | [Code on Stackblitz](https://stackblitz.com/edit/needle-engine-wait-for-lods) |
69
70
  | | [React Shopping Cart](https://reactshoppingcart-z23hmxbzcfkmf.needle.run/) | E-commerce integration with React | [Code on Stackblitz](https://stackblitz.com/edit/needle-react-shopping-cart-2) |