Skip to content

Latest commit

 

History

History
256 lines (230 loc) · 26.7 KB

what's new.md

File metadata and controls

256 lines (230 loc) · 26.7 KB

3.3.0

Major updates

  • Documentation
  • GUI
  • Gizmo Support (TrevorDev)
    • Gizmo and GizmoManager classes used to manipulate meshes in a scene. Gizmo types include: position, scale, rotation and bounding box Doc (TrevorDev)
    • New behaviors: PointerDragBehavior, SixDofDragBehavior and MultiPointerScaleBehavior to enable smooth drag and drop/scaling with mouse or 6dof controller on a mesh Doc (TrevorDev)
    • Added attachToBoxBehavior to attach UI to a bounding box (TrevorDev)
    • Gizmo manager's internal gizmos are now public (TrevorDev)
    • Ability to customize meshes on gizmos (TrevorDev)
    • Added ignoreChildren field to bounding box to save performance when using heavily nested meshes (TrevorDev)
    • Add uniform scaling drag support to the scale gizmo (TrevorDev)
    • Support interacting with child elements (TrevorDev)
    • BoundingBox gizmo support for including/excluding descendants when computing the bounding box (TrevorDev)
    • Drag start and stop events for all gizmos (TrevorDev)
  • Particle system improvements (Deltakosh)
    • Added a ParticleHelper class to create some pre-configured particle systems in a one-liner method style. Doc (Deltakosh) / (DevChris)
    • Improved CPU particles rendering performance (up to x2 on low end devices)
    • Added support for isBillboardBased. Doc
    • Added support for billboard mode. Doc
    • Added support for minScaleX, minScaleY, maxScaleX, maxScaleY. Doc
    • Added support for radiusRange for sphere emitter. Doc
    • Added support for radiusRange and heightRange for cone emitter. Doc
    • Added new point emitter. Doc
    • Added new hemispheric emitter. Doc
    • Added support for ParticleSystem.BLENDMODE_ADD alpha mode. Doc
    • Added support for color gradients. Doc
    • Added support for pre-warming. Doc
    • Added support for minInitialRotation and maxInitialRotation. Doc
    • Added support for size gradients. Doc
    • Added support for life time gradients. Doc
    • Added support for angular speed gradients. Doc
    • Added support for velocity gradients. Doc
    • Added support for limit velocity gradients. Doc
    • Added support for drag gradients. Doc
    • Added support for noise textures. Doc
    • Added support for emit rate gradients. Doc
    • Added support for ramp gradients. Doc
    • Start size gradient support for particles. Doc (TrevorDev)
    • Attached sub emitters. Doc (TrevorDev)
    • Cylinder particle emitter and constructor in baseParticle Doc (TrevorDev)
    • Added support for cylinder particle emitter. Doc (TrevorDev)
    • Added startDelay to support delaying system start of sub emitters. Doc (TrevorDev)
    • Added support for random start cell when using animated sprite sheets. Doc
  • Added SceneComponent to help decoupling Scene from its components. (sebavan)
  • Added Environment Texture Tools to reduce the size of the usual .DDS file (sebavan)
  • Playground can now be used with TypeScript directly! Demo (Deltakosh, NasimiAsl)
  • GUI and Inspector are now ES-Modules (RaananW)
  • Added support for noise procedural textures. Doc (Deltakosh)
  • Added new PhotoDome object to display 360 photos. Demo (SzeyinLee)
  • Added Video Recorder. Doc (sebavan)

Updates

  • Updated TypeScript version to new major 3.0.1 (christopherstock)
  • All NPM packages have latest and preview streams (RaananW)
  • Added New Tools Tab in the inspector (env texture and screenshot tools so far) (sebavan)
  • Moved to gulp 4, updated dependencies to latest (RaananW)

GUI

  • Added dead key support and before key add observable to InputText. Doc (theom)
  • Added TextBlock.computeExpectedHeight, added TextWrapping.Ellipsis as TextBlock.wordWrapping possible value (adrientetar)
  • New vertical mode for sliders in 2D GUI. Demo (Saket Saurabh)
  • Added isEnabled and disabledColor property to Gui Control (barteq100)
  • Added support for connecting multiple InputText controls to VirtualKeyboard and can disconnect individual InputTexts. (brian Zinn)

Core Engine

  • Improved the way world matrices were computed (Deltakosh)
  • Added scene.rootNodes to track root nodes (ie. nodes with no parent) (Deltakosh)
  • Added scene.pickSpriteWithRay function (Deltakosh)
  • Added support for multiple clip planes. Demo (Deltakosh)
  • Added new MixMaterial to the Materials Library allowing to mix up to 8 textures (julien-moreau)
  • Added new BoundingInfo.scale() function to let users control the size of the bounding info (Deltakosh)
  • Added new Animatable.waitAsync function to use Promises with animations. Demo (Deltakosh)
  • Added the choice of forming a closed loop to the catmull-rom-spline curve3 (johnk)
  • Added support for specifying the center of rotation to textures (bghgary)
  • Added webVR support for Oculus Go (TrevorDev)
  • Added ability to not generate polynomials harmonics upon prefiltered texture creation (sebavan)
  • Added predicate function to customize the list of mesh included in the computation of bounding vectors in the getHierarchyBoundingVectors method (sebavan)
  • Added webVR constructor options: disable laser pointer toggle, teleportation floor meshes (TrevorDev)
  • Get a root mesh from an asset container, load a mesh from a file with a single string url (TrevorDev)
  • UtilityLayer class used to render another scene as a layer on top of an existing scene (TrevorDev)
  • AnimationGroup has now onAnimationGroupEnd observable (RaananW)
  • New serialize and Parse functions to serialize and parse all procedural textures from the Procedural Textures Library (julien-moreau)
  • Added a new mesh.ignoreNonUniformScaling to turn off non uniform scaling compensation (Deltakosh)
  • AssetsManager tasks will only run when their state is INIT. It is now possible to remove a task from the assets manager (RaananW)
  • Added sprite isVisible field (TrevorDev)
  • EnvironmentHelper will recreate ground and skybox meshes if force-disposed (RaananW)
  • Added viewport caching mechanism in engine (sebavan)
  • Added unpackFlipY caching mechanism in engine (sebavan)
  • Added rebind optimization of video texture (sebavan)
  • Fix Background Material effect caching (sebavan)
  • Prevent texture getSize to generate garbage collection (sebavan)
  • Prevent lodGenerationScale and lodGenerationOffset to force rebind (sebavan)
  • Added poster property on VideoTexture (sebavan)
  • Added onUserActionRequestedObservable to workaround and detect autoplay video policy restriction on VideoTexture (sebavan)
  • Sound now accepts MediaStream as source to enable easier WebAudio and WebRTC integrations (menduz)
  • Vector x, y and z constructor parameters are now optional and default to 0 (TrevorDev)
  • Added and removed camera methods in the default pipeline (TrevorDev)
  • Added internal texture format support for RenderTargetCubeTexture (PeapBoy)
  • Added canvas toBlob polyfill in tools (sebavan)
  • Added RawCubeTexture class with RGBD and mipmap support (bghgary)
  • Added effect layer per rendering group addressing (sebavan)
  • Added predicate function targetMask argument to scene.beginWeightedAnimation, scene.beginAnimation, scene.stopAnimation, and animatable.stop to allow for selective application of animations. (fmmoret)
  • Oculus GO and GearVR 3dof controllers will now rotate with the user's head if they turn around in their room (TrevorDev)
  • Added onPoseUpdatedFromDeviceObservable to webVRCamera to detect when the camera's pose has been updated (TrevorDev)
  • Added gltf light falloff (sebavan)
  • Added falloff type per light to prevent material only inconsistencies (sebavan)
  • Added WeightedSound; selects one from many Sounds with random weight for playback. (najadojo)
  • Added HDR support to ReflectionProbe (Deltakosh)
  • Added ACES ToneMapping to the image processing to help getting more parity with other engines (sebavan)
  • Added Image Processing to the particle system to allow consistency in one pass forward rendering scenes (sebavan)
  • Added support for main WebGL2 texture formats (PeapBoy)
  • Added fadeInOutBehavior and tooltipText for holographic buttons (TrevorDev)
  • StartDrag method added to pointerDragBehavior used to simulate the start of a drag (TrevorDev)
  • Added EdgesLineRenderer to address #4919 (barteq100)
  • Added ambientTextureImpactOnAnalyticalLights in PBRMaterial to allow fine grained control of the AmbientTexture on the analytical diffuse light (sebavan)
  • BoundingBoxGizmo scalePivot field that can be used to always scale objects from the bottom (TrevorDev)
  • Improved _isSyncronized performance and reduced GC in TransformNode.computeWorldMatrix by directly reading property (Bolloxim)
  • Added supports for reflectionMatrix in Skybox Mode Cube Texture allowing offsetting the world center or rotating the matrix (sebavan)
  • Improved performance of cached nodes but ensuring parent always updates cache. This removes failed isSynchronized test that meant computeWorldMatrix would always have to rebuild. On large scenes this could double framerate. (Bolloxim)
  • Added FXAA and MSAA support to the StandardRenderingPipeline (julien-moreau)
  • Make teleportCamera public in VR experience helper (TrevorDev)
  • Added optional alphaFilter parameter to CreateGroundFromHeightMap to allow for heightmaps to be created that ignore any transparent data (Postman-nz)
  • Fixed renormalization of mesh weights to in cleanMatrixWeights function. (Bolloxim)
  • Added a validationSkin function to report out any errors on skinned meshes. (Bolloxim)
  • PolygonMeshBuilder can be used to generate VertexData instead of requiring a mesh to be built

glTF Loader

  • Added support for KHR_texture_transform (bghgary)
  • Added onNodeLODsLoadedObservable and onMaterialLODsLoadedObservable to MSFT_lod loader extension (bghgary)
  • Added glTF loader settings to the GLTF tab in the debug layer (bghgary)
  • Added debug logging and performance counters (bghgary)
  • Added support for EXT_lights_imageBased (bghgary)
  • Added support for MSFT_audio_emitter (najadojo)
  • Added support for custom loader extensions (bghgary)
  • Added support for validating assets using glTF-Validator (bghgary)

glTF Serializer

  • Added support for exporting the scale, rotation and offset texture properties (kcoley)

Viewer

  • No fullscreen button on small devices (RaananW)
  • Nav-Bar is now displayed on fullscreen per default (RaananW)
  • Viewer configuration supports deprecated values using the new configurationCompatibility processor (RaananW)
  • Shadows will only render while models are entering the scene or animating (RaananW)
  • Support for model drag and drop onto the canvas (RaananW)
  • New lab feature - global light rotation (RaananW)
  • New NPM package - babylonjs-viewer-assets, to separate the binary assets and the code of the viewer (RaananW)
  • A new HD-Toggler button allows setting a better hardware scaling rate (RaananW)
  • An initial support for WebVR is implemented (RaananW)
  • It is now possible to choose the element that goes fullscreen in the default viewer (RaananW)
  • The default viewer has a plugin system with which new buttons can be added externally (RaananW)
  • The extended configuration is now the default when not providing the "extended" parameter (RaananW)
  • viewer.updateConfiguration also accepts a URL to download configuration remotely (RaananW)
  • Viewer supports 3D printing on windows 10 (RaananW)
  • The viewer's environment map is using the new .env feature (RaananW)

Materials Library

  • Added unlit mode to lava material (sebavan)

Bug fixes

  • VR experience helper will now fire pointer events even when no mesh is currently hit (TrevorDev)
  • RawTexture.CreateAlphaTexture no longer fails to create a usable texture (TrevorDev)
  • SceneSerializer.SerializeMesh now serializes all materials kinds (not only StandardMaterial) (julien-moreau)
  • WindowsMotionController's trackpad field will be updated prior to it's onTrackpadChangedObservable event (TrevorDev)
  • VR experience helper's controllers will not fire pointer events when laser's are disabled, instead the camera ray pointer event will be used (TrevorDev)
  • Node's setParent(node.parent) will no longer throw an exception when parent is undefined and will behave the same as setParent(null) (TrevorDev)
  • Mesh.MergeMeshes flips triangles on meshes with negative scaling (SvenFrankson)
  • Avoid firing button events multiple times when calling vrController.attachMesh() (TrevorDev)
  • Parse geometry when load binary mesh (SinhNQ)
  • Removing observers during observable notify should not skip over valid observers (TrevorDev)
  • Initializing gamepadManager should register the gamepad update events (TrevorDev)
  • Do not generate mipmaps for RawCubeTexture if OES_texture_float_linear and/or EXT_color_buffer_float extensions are not supported (PeapBoy)
  • Do not modify passed camera array parameter when creating a default pipeline (TrevorDev)
  • Fixed issue where gaze trackers were appearing even after leaving VR (atulyar)
  • AdvancedDynamicTexture should not overwrite skipOnPointerObservable to false (TrevorDev)
  • Fixed issue where VRExperienceHelper.onExitingVR observable was being fired twice (atulyar)
  • Avoid firing onExitingVR observable multiple times when calling exitVR() and add observables to Viewer that can be used instead of the ones in VRExperienceHelper (atulyar)
  • GizmoManager should hide existing gizmos if a non-attachable mesh is selected (TrevorDev)
  • Ignore isPickable = false for vr ray casting if the mesh's name matches the specified floorMeshName to maintain backwards compatibility (TrevorDev)
  • Fix File Loading if hosted from file:-Protocol (ltetzlaff)
  • Do not throw error when updating a controller with no left stick (TrevorDev)
  • Exiting VR can result in messed up view (TrevorDev)
  • Dispose existing gazeTrackers when setting a new one (TrevorDev)
  • Set missing parentId in Mesh.serialize() for instances (julien-moreau)
  • Do not modify pivot point when using bounding box gizmo or behaviors (TrevorDev)
  • GPUParticleSystem does not get stuck in burst loop when stopped and started (TrevorDev)
  • trackPosition:false not working in webVRCamera/controllers (TrevorDev)
  • Spring Joint could not be removed (TrevorDev)
  • Sometimes duplicate controller models are loaded in VR (TrevorDev)
  • Particle emit rate and start size over time do not reset on every particle system start (TrevorDev)
  • SSAO2 now correctly takes diffuse texture alpha value into account (CraigFeldspar)

Core Engine

  • Fixed shadowEnabled property on lights. Shadows are not visible anymore when disabled (sebavan)
  • Physics unregisterOnPhysicsCollide didn't remove callback correctly (RaananW)
  • Added missing getter and setter for global exposure in ColorCurves (RaananW)
  • Fixed an issue with view matrix when ArcRotateCamera was used with collisions (Deltakosh)
  • Fixed a bug with setting unlit on PBRMaterial after the material is ready (Wrong dirty flags) (bghgary)
  • Fixed HighlightLayer support on browsers not supporting HalfFloat (sebavan)
  • Fixed support for R and RG texture formats (sebavan)
  • Fixed updatable parameter setting in the SPS (jerome)
  • Angular and linear velocity were using the wrong method to copy values to the physics engine (RaananW)
  • Fixed env texture generation in Byte Mode (sebavan)
  • Oimo.js now receives quaternion and not euler when a body is being constructed (RaananW)
  • Improving visual quality on SSAO2 shader (CraigFeldspar)
  • Fixed a bug where changing the sample count on PostProcess would not update the WebGL Texture (CraigFeldspar)
  • Fixed multi camera support in defaultRenderingPipeline depth of field (sebavan)

Viewer

  • Fix Navbar Interaction on Mozilla/Firefox (SzeyinLee)
  • Fix Animation Slider Interaction on Mozilla/Firefox (sebavan)
  • Fix Animation Slider Clickable area size Cross Plat (sebavan)
  • Ground material didn't take the default main color is no material definition was provided (RaananW)
  • Model configuration was not extended correctly if loaded more than one model (RaananW)
  • It wasn't possible to disable camera behavior(s) using configuration (RaananW)
  • Animation blending was always set to true, ignoring configuration (RaananW)
  • Animation navbar now updates correctly when a new model is loaded (RaananW)
  • Non-normalized meshes didn't center and focus correctly (RaananW)
  • Meshes with skeletons could have incorrect animations (RaananW)
  • Removed element IDs from viewer's templates to allow multiple viewers in a single page (RaananW)
  • Viewer is not using Engine.LastCreatedScene anymore, to support multiple viewers in a single page (RaananW)
  • Template location was ignored if html was defined (RaananW)
  • Drag and Drop only worked if a model was already loaded before (RaananW)
  • It was not possible to add new custom optimizers, only use existing ones (RaananW)
  • Button texts were truncated incorrectly (RaananW)
  • Animation names with more than one word didn't work correctly (RaananW)

Loaders

  • STL Loader only supported binary downloads and no data: urls (RaananW)
  • OBJ Loader is now an async loader (RaananW)
  • GLTF Loader does not have texture conflicts on subsequent loads anymore (sebavan)

Breaking changes

  • Fixing support for R and RG texture formats made us remove TextureFormat_R32F and TextureFormat_RG32F as they were mixing formats and types. Please, use the respective TextureFormat_R and TextureFormat_RG with the Float types (sebavan)
  • Replacing scene.onRenderingGroupObservable by onBeforeRenderingGroupObservable and onAfterRenderingGroupObservable to prevent the stage check (sebavan)
  • Replacing IActiveMeshCandidateProvider and the according scene setter by a set of custom predicates scene.getActiveMeshCandidates, scene.getActiveSubMeshCandidates, scene.getIntersectingSubMeshCandidates and scene.getCollidingSubMeshCandidates (sebavan). This helps opening more customization to everybody.