Releases: needle-tools/needle-engine-support
4.12.0-beta
Needle Engine
- NEW: Intellisense support for the
<needle-engine>web component and its attributes, both in HTML and in code. Thecustom-elements.jsonallows for VSCode intellisense support, whileHTMLElementTagNameMapandget/setAttributeoverloads bring code completion and documentation. - Add: exposed
createColliderAPI for the Rapier physics engine - Add: an
beforeLODExportcallback for USDZ export. This allows overriding which LOD level gets exported per object. - Add:
?spector=#frameURL parameter to enable a Spector.js capture on the specified frame number after page load. Make sure to install the Spector.js browser extension. You can optionally specify a frame number for capturing:?spector=15. - Add: auto-registration of custom elements for easier discovery of available web components in Needle Engine. You can disable this feature by setting
noCustomElementDatato false in vite config. To manually register custom elements data, add it to your workspace or.vscode/settings.jsonvia thehtml.customDatasetting. - Improve: detection of user interactions to enable media playback
- Improve: JSDoc documentation for Everywhere Actions and other components
- Fix: issue with callbacks on freshly destroyed components when leaving XR sessions
- Fix: Instancing issue with growing vertex/index buffers when not necessary
- Fix: Instancing and texture LODs
- Fix: Issue with
<needle-engine>element being moved in the DOM - Fix: Better type declarations in package.json
Unity Integration
- Update UnityGLTF dependency to 2.18.5. This fixes deprecation warnings on Unity 6.0+ and improves BiRP material export.
- Fix: got rid of compilation warnings with updated APIs on Unity 6.0+
- Fix: more checks for invalid characters in paths and project names
Links
Download for Unity • Download for Blender • Documentation • API • Live Samples
4.11.5
Needle Engine
- Fix: Timeline cloning with
instantiate(forum 2733) - Fix: Renderer
sharedMaterialsbeing null in awake - Fix: Issue where lightmapped materials were cloned
- Fix: Apply lighting intensity multiplier in root scene
- Fix: GLTF extensions when loading scene with Blob URL
- Improve JSDoc documentation
Unity Integration
- Fix: DeployToGithubPages should not try to deploy gzipped assets (forum 2735)
- Fix: DeployToGlitch inspector UI
- Rename Needle Engine
All Targetsbutton toBuild Window
Links
Download for Unity • Download for Blender • Documentation • API • Live Samples
4.11.4
Needle Engine
- Add:
qrcode-logo-srcattribute to<needle-engine>web component to override the logo displayed in the QR code button. Requires PRO license. - Improve JSDoc documentation
Links
Download for Unity • Download for Blender • Documentation • API • Live Samples
4.11.3
Needle Engine
- Fix: See-Through with MeshPhysicalMaterial
Unity Integration
- Improve WebXR and WebARSessionRoot component inspectors
Links
Download for Unity • Download for Blender • Documentation • API • Live Samples
4.11.2
Needle Engine
- Change: Animation component disable
randomStartTime - Change: Vite build build pipeline plugin increased default max wait time to 60 seconds.
This time is now exposed vianeedlePluginsuser config, e.g. to increase it to 5 minutes writeneedlePlugins(command, needleConfig, { buildPipeline: { maxWaitDuration: 300_000 } })in yourvite.config.js.
Unity Integration
- Update three-animation-pointer dependency
- Update build pipeline dependency
Links
Download for Unity • Download for Blender • Documentation • API • Live Samples
4.11.1
Needle Engine
- Fix: WebXR / VR issue where trying to access missing geometry during raycasting caused errors
- Change: ScrollFollow now only applies when scroll has changed. It also immediately jumps to the target position on the first update instead of interpolating (avoiding interpolation through long timeline animations).
- Change: SplineWalker now has an option to disable LookAt. It also received a
pullStrengthproperty which controls how tightly the object moves along the spline. - Improved: OrbitControls and ViewBox interaction
Unity Integration
- Update UnityGLTF dependency to 2.18.3. This fixes an issue where animations would falsely be exported with STEP interpolation.
Links
Download for Unity • Download for Blender • Documentation • API • Live Samples
4.11.0
Needle Engine
- NEW: SeeThrough component. With this component you can easily fade-out objects between the camera and a reference point in the scene. See the See-Through sample to see it in action
- NEW: Droplistener sample
- Add: CursorFollow option to follow cursor on the full page, even when a user moves their mouse outside of the
<needle-engine>element. - Add: CursorFollow
snapToSurfaceoption to automatically snap the object to the surface below the cursor. - Add: Object3D
raycastAllowedproperty to disable raycasting on specific objects (e.g. for performance reasons or to ignore invisible helper objects) - Add: OrbitControls
targetBoundsproperty which can be used to constrain the OrbitControls target within a defined area in the scene. A Object3D can be assigned to the property. The position and scale of this object will be used. - Add: Experimental - Vite plugin to generate
needle-app.jswhich encapsulates the whole website into a single web component. Theneedle-app.jsfile will be emitted next to index.html and can be used to directly embed the website and 3D assets into another website by importing<url>/needle-app.jsand then using the<needle-app></needle-app>web component. - Add: Object3D
contains(otherObject: Object3D)method to check if an object is a child of another object in the scene graph - Fix: three nodes update camera for TSL
- Fix: Renderer lightmaps are now updating
sharedMaterials - Fix:
Gizmos.DrawWireMeshmatrix - Fix: Image UI color was sometimes not correctly calculated for Button color states when used with the CanvasGroup component
- Fix: ScrollMarker issue
- Improved JSDoc documentation
Links
Download for Unity • Download for Blender • Documentation • API • Live Samples
4.10.4
Needle Engine
- Update: three-animation-pointer dependency to 1.0.4 to support KHR_node_visibility extension
- Documentation improvements
Unity Integration
- Add: Support for importing GLB/glTF assets with Needle Engine AnimatorController assets
- Change: Set UnityGLTF as default importer for .gltf and .glb files
- Update: UnityGLTF dependency to 2.18.0 with improvements for exporting partially animated properties.
For example it's now possible to animateposition.xonly without keyframes forposition.yandposition.z(see issue in forum)
Links
Download for Unity • Download for Blender • Documentation • API • Live Samples
4.10.3
Needle Engine
- Add:
ScrollFollowtimeline markers can now be defined in HTML only and don't require markers to be present in the Timeline anymore. This means any timeline animation can now be mapped to HTML content by annotating the HTML elements.
For example<div data-timeline-marker="2.5">will define that the timeline should reach the time 2.5 seconds when this element becomes visible in the viewport. The bike-scroll-follow example on Github will be updated to use this new feature soon (example index.html).
Links
Download for Unity • Download for Blender • Documentation • API • Live Samples
4.10.2
Unity Integration
- Add: Vuejs template
- Improve Editor setup when NPM is not installed
Links
Download for Unity • Download for Blender • Documentation • API • Live Samples