Three.js Versions Save

JavaScript 3D Library.

r154

10 months ago

https://github.com/mrdoob/three.js/wiki/Migration-Guide#r153--r154 https://github.com/mrdoob/three.js/milestone/67?closed=1

  • Global
    • Remove deprecated code. #26175 (@LeviPesin)
    • Add security policy. #26204 (@pnacht)
    • Hash-pin workflow dependencies. #26338 (@pnacht)
  • Loader
    • Add DEFAULT_MATERIAL_NAME. #26188 (@kovacsv)
  • Material
    • Add alphaHash transparency mode. #24271, #26341, #26344 (@donmccurdy)
  • MeshPhysicalMaterial
    • Fix shader error for clear coat/anisotropy when normal map is missing. #26334 (@repalash)
  • WebGLObjects
    • Optimize InstancedMesh updates. #26300 (@Mugen87)
  • WebGLProgram
    • Don't use tangents when flat shading. #26197 (@WestLangley)
  • WebGLRenderer
    • Rename encodings_fragment to colorspace_fragment. #26206, #26269 (@WestLangley)
    • Rename output_fragment to opaque_fragment. #26278 (@WestLangley)
    • Fix incorrect argument passed to clearBufferuiv. #26249 (@gkjohnson)
    • Fix shadow update when object is culled. #26293, #26299 (@OndrejSpanel, @Mugen87)
    • Test that WebGLRenderingContext exists. #26306 (@linev)
    • Fix feedback loop in transmission pass for WebGL 2. #26177 (@Mugen87)
  • WebXRManager
    • Revert getCamera() removal. #26350 (@mrdoob)

Documentation

  • Improve Color page. #26210 (@donmccurdy)
  • Improve LineBasicMaterial page. #26228 (@Mugen87)
  • Improve PlaneGeometry page. #26248 (@tomhsiao1260)
  • Improve number and code formatting. #26147, #26181 (@afilahkle)
  • Improve Arabic translation. #26176, #26182, #26195, #26194, #26202, #26209, #26226, #26230, #26250, #26263, #26277, #26297, #26323 (@afilahkle)
  • Improve Chinese translation. #26215, #26216, #26223, #26273 (@appache163, @supan0228)
  • Improve French translation. #26310 (@Patzi275)
  • Dedent code node content correctly. #26115 (@ycw)
  • Use useLegacyLights=false in browsers. #26291 (@Mugen87)

Manual

  • Fix typo in prerequisites.html. #26315 (@DrejT)

Examples

  • Clean up. #26193, #26238, #26260 (@Mugen87, @sunag)
  • More usage of WebGLRenderer.useLegacyLights = false. #26218, #26267, #26274, #26275, #26280, #26284, #26286, #26288, #26290 (@Mugen87, @sunag)
  • Update BVH and CSG library versions. #26203 (@gkjohnson)
  • Update from GammaCorrectionShader to OutputPass. #26129 (@donmccurdy)
  • Change how after-image effect is toggled. #26321 (@Mugen87)
  • Fix displacement map usage of velocity shader. #26324 (@Mugen87)
  • Use construct() in webgpu_instance_uniform example. #26336 (@sunag)
  • Added blurred option in webgpu_backdrop_area example. #26342 (@sunag)

  • ArcballControls

    • Add rotateSpeed. #26332 (@begmec)
  • CopyShader

    • Assume render targets have premultiplied alpha. #26179 (@Mugen87)
  • FlyControls

    • Introduce enabled property. #26154, #26339 (@andredsm, @Mugen87)
  • GLTFLoader

    • Refactor animation methods to be accessible from extensions on parser. #26126 (@hybridherbst)
  • MeshSurfaceSampler

    • Add uv support. #26207 (@makc)
    • Add support for interpolated normals. #26219 (@makc)
    • Remove need for non indexed geometry. #26268 (@gkjohnson)
  • NodeMaterial

    • Clean up. #26271 (@sunag)
    • Fix uv attributes. #26220 (@sunag)
    • Fix cacheKey. #26227 (@sunag)
    • Fix default forceSinglePass and alphaMap. #26231 (@sunag)
    • Add two missing shader functions. #26237 (@aardgoose)
    • Fix VideoTexture in WebGPUBackend and ColorSpaceNode. #26261 (@sunag)
    • Simplify Node.getChildren(). (@LeviPesin)
    • UVEditor revision and remove nodes for programmers. #26345 (@sunag)
    • UVEditor and fix selection of nodes by keyboard in playground. #26349 (@sunag)
  • OculusHandPointerModel

    • Cleanup on disconnect, implement dispose(). #26262 (@CodyJasonBennett)
  • PLYLoader

    • Add vertex colors back. #26214 (@Mugen87)
    • Fix handling binary files with \n\r line endings in header. #26232 (@aardgoose)
  • TAARenderPass

    • Fix color shift. #26199 (@Mugen87)
  • TSL

    • Add editor. #26270, #26283 (@sunag)
    • Move ShaderNode to tslFn(). #26311 (@sunag)
  • WebGPURenderer

    • Don't set redundant state. #26186 (@sunag)
    • Backdrop Node - Part 2/3. #26196 (@sunag)
    • Add clear coat support. #26211 (@sunag)
    • Support Material.blending = NoBlending. #26295 (@aardgoose)
    • Handle interleaved instanced buffers correctly. #26304 (@aardgoose)
    • Improve reuse programs in WebGPUPipelines. #26305 (@sunag)
    • MorphNode 1/2 and updates. #26325 (@sunag)
    • Add readRenderTargetPixelsAsync(). #26326 (@aardgoose)
    • Add sheen support. #26329 (@sunag)
    • Render Pass ID and Double Pass. #26333 (@sunag)

Tests

  • Use new headless mode for E2E tests. #25982 (@LeviPesin)
  • Replace BrowserFetcher with @puppeteer/browsers. #26282 (@LeviPesin)
  • Fix WebGL on Mac ARM. #26343 (@LeviPesin)

Editor

  • Remove dependency to deleted ColladaExporter. #26243 (@Mugen87)
  • Fix LDrawLoader usage. #26294 (@Mugen87)
  • Fix import of TGA textures. #26316 (@Mugen87)

r153

11 months ago

https://github.com/mrdoob/three.js/wiki/Migration-Guide#r152--r153 https://github.com/mrdoob/three.js/milestone/66?closed=1

  • Global
    • Fix sourcemaps in dev builds. #25901 (@donmccurdy)
    • Introduce coordinateSystem. #26140 (@sunag)
  • BufferAttribute
    • Add gpuType. #26084 (@CodyJasonBennett)
  • Color
    • Let set() accept RGB values. #25999 (@Mugen87)
  • CubeTextureLoader
    • Return sRGB textures by default. #26162, #26169 (@Mugen87)
  • DepthTexture
    • Support texture depth comparison. #25958 (@RenaudRohlinger)
  • FramebufferTexture
    • Remove format parameter. #26027 (@Mugen87)
  • InstancedMesh
    • Honor bounding volumes in copy(). #25973 (@Mugen87)
  • MathUtils
    • Add support for Uint32 and Int32 to normalize / denormalize functions. #25984 (@gkjohnson)
  • Matrix3
    • Constructor has now parameters. #26021 (@Mugen87)
    • Make makeTranslation() accept Vector2. #26054 (@chenyy101)
  • Matrix4
    • Constructor has now parameters. #26021 (@Mugen87)
    • Make makeTranslation() accept Vector3. #26044 (@makc)
  • Mesh
    • Add deprecation comment in checkGeometryIntersection(). #25971 (@LeviPesin)
  • MeshPhysicalMaterial
    • Add anisotropy support. #25580, #26125 (@elalish)
    • Fix support for texture transform for anisotropy map. #26069 (@zeux)
  • PositionalAudio
    • Implement missing connect() method. #26145 (@max-sym)
  • Shaders
    • Add name property. #26101 (@WestLangley)
  • SkinnedMesh
    • Add raycast() method back. #25957 (@Mugen87)
    • Honor bounding volumes in copy(). #25973 (@Mugen87)
  • Source
    • Add id property. e296032db56c2d238a19c3911e2fa0768b533b82 (@mrdoob)
  • WebGLGeometries
    • Fix leak of morph target attributes. #26040 (@0b5vr)
  • WebGLInfo
    • Decouple info.render.frame from info.autoReset. #25978 (@RenaudRohlinger)
  • WebGLProgram
    • Add define for MeshGouraudMaterial. #26075 (@WestLangley)
  • WebGLPrograms
    • Simplify getChannel(). #25972 (@LeviPesin)
  • WebGLRenderer
    • Use correct bounding volume for depth sorting. #25974 (@Mugen87)
    • Allow for clearing integer render targets. #22351 (@gkjohnson)
    • Deprecate WebGL 1 support. #25959 (@Mugen87)
    • Improve integer attribute support. #21606 (@Mugen87)
    • Improved transparent rendering. #25819, 79cc93ceb85530fc3b16f4e4da6b38d2f658554a (@elalish, @WestLangley, @mrdoob)
    • Fix alpha map rendering for points and sprites. #26128 (@Mugen87)
    • Revert to drawingbuffer sized transmissionRenderTarget. #26138 (@mrdoob)
    • Ensure tone mapped value is in-range. #26130 (@WestLangley)
  • WebXRManager
    • Remove getCamera() and add setUserCamera(). #26041, c4befe1e2f54179dcef2ce80592e74729faec9ac (@mrdoob)
    • Refactored planes code. #26098 (@mrdoob)

Documentation

  • Improve BoxGeometry page. #26156 (@afilahkle)
  • Improve MeshSurfaceSampler page. #26031 (@makc)
  • Improve PerspectiveCamera page. #26105, #26117 (@afilahkle)
  • Improve ShaderMaterial page. #26116 (@ycw)
  • Improve Vector4 page. #26151 (@afilahkle)
  • Improve WebGLRenderer page. #26002 (@ycw)
  • Accept multiline callargs in page.js. #26030 (@ycw)
  • Fix redirect exception in Firefox. #26033 (@ycw)
  • Improve light pages. #26064 (@Mugen87)
  • Improved Arabic translation. #26088, #26100, #26123, #26132, #26141, #26149, #26155, #26174 (@afilahkle)
  • Improve Chinese translation. #26077, #26074, #26081, #26073, #26083, #26086, #26089, #26093 (@appache163, @l123wx, @LJNaN)

Manual

  • Improved Chinese translation. #26059 (@LJNaN)

Examples

  • More usage of sRGB and color management. #25986, #25988, #25991, #25994, #26018, #26070, #26082, #26085, #26090, #26092, #26094, #26097, #26111, #26119, #26120, #26121, #26135, #26144, #26150 (@Mugen87)
  • ​​Fix broken GPU picking demo. #25952 (@Mugen87)
  • Update GPU picking to use integer Ids, render target. #25983, #26001 (@gkjohnson)
  • Remove webgl_skinning_simple. #25992 (@Mugen87)
  • Improve webgl2_multisampled_renderbuffers example. #26005 (@WestLangley)
  • Replaced custom physics code with Rapier in webxr_xr_ballshooter. #26032 (@mrdoob)
  • Improved webgl_loader_gltf_anisotropy example. #26051, #26058 (@sunag, @mrdoob)
  • Added mediapipe face landmark detection example. #26080, 1f75a58371d7c34449224ca7e92e08d7564236f3 (@mrdoob)
  • Define renderOrder in webgl_loader_svg. #26114 (@ycw)
  • Fix webxr_xr_sculpt example. a55e5a37a26a279ae4cea46394352d6c9ca24704 (@mrdoob)
  • Improve webgl_materials_car. d4116b5ad2c3e8ed3d6e638b7e6496412ce3a9c7 (@mrdoob)
  • Removed obsolete/outdated examples. 8d527423202fe6bd8f35cb360fccff793599ffd0, d13f49c42050bd8d7caa9563227fd19c81b71938, 37f90dd12a659d8998a60aa37de915905325e49b, f355d37c79d6d48df052a7156964b98aebb5e656, 502183211c29dc89c9b024a8705a9cf204fb8e2e, e289dcecc04e5499405110b93a96cab9781ad49a, 0db73837f2849c17056497c6c6eb8f4f9ee10b02, d666ff8903d701a514afba786f11bb8796b3152e, 5a408a8915e682e7ae711357d6bc89161b598029, dc630b09c1c175fd610a070eb30d670a3c9df8b4, bf1da65052b0a8dec2a2750b81a344fec4e138af, 973d751be77019406e3e30ae424f0855bb0ada04, 45ef934fb952f3c9188c319babca2f316523b118, dd8a722e1f5b3aaaee91222f458a77690d2fb586 (@mrdoob)
  • Introduce ExposureShader. #26136 (@WestLangley)
  • Added webgpu_cubemap_dynamic example. #26152 (@sunag)

  • CSM

    • Remove default value of data ctor parameter. #25968 (@Mugen87)
  • DracoLoader

    • Normalize color attributes by default. #26036 (@Gmadges)
  • EffectComposer

    • Use HalfFloatType as default. #26099 (@Mugen87)
    • Introduce OutputPass. #26102 (@Mugen87)
  • GLTFExporter

    • Export from compressed texture data. #23321 (@hybridherbst)
  • GLTFLoader

    • Optimize GLTFParser.createUniqueName(). #25969 (@benwest)
    • Fix cache conflict for geometry sharing attributes but not morph targets. #25976 (@donmccurdy)
    • Preserve unknown gltf mesh extensions. #25948 (@cstegel)
  • KTX2Loader

    • Return LODs through DataTexture's mipmaps field. #25871 (@emmanueljl)
    • Support compressed cubemaps. #25909 (@donmccurdy)
    • Fix regression in mipmap chain upload. #26095 (@donmccurdy)
  • MeshGouraudMaterial

    • Add LEGACY_LIGHTS define. #26075 (@WestLangley)
  • MeshSurfaceSampler

    • Add sampleFaceIndex() function. #25970 (@gkjohnson)
  • MMDLoader

    • Catch parser exceptions. #25966 (@YusakuNo1)
  • NodeMaterial

    • Rework ConvertType(). #26025 (@LeviPesin)
    • Fix circular dependency. #26163 (@sunag)
  • OrbitControls

    • Added target distance check in change condition. #26063, 0a97813fd293f77b7c2b5a5432a9224acd06926c (@mrdoob)
  • PLYLoader

    • Add support for files with face color definitions. #26014 (@SindreYang)
  • RapierPhysics

    • Clean up. #26042 (@LeviPesin)
  • TSL

    • Add loop(). #25967 (@sunag)
  • USDZExporter

    • Add Texture.channel support. #25996 (@mrdoob)
    • Add MaterialBindingAPI schema, fix primvars:st data type, add colorspace for normal map. #26009 (@hybridherbst)
    • Add basic Texture.colorSpace support. #26011 (@mrdoob)
    • Support Texture.wrapS and Texture.wrapT. #26012 (@mrdoob)
    • Add Texture.rotation support. #26013 (@mrdoob)
    • Remove redundant Texture.format check. #26017 (@mrdoob)
    • Use scale input to tint the texture. #26019, cea7a35b3559f0a9e1932916899dcec006a23d2e (@mrdoob)
    • Improve UsdTransform2d. #26023 (@hybridherbst)
    • Clean up. 44ab823157bcae95b01d857e55a1ce685709448b (@mrdoob)
  • ViewHelper

    • Fix computation of pointer coordinates. #26067 (@alitan)
  • WebGPURenderer

    • Prevent duplicated init requests. #25964 (@takahirox)
    • Fix skinning bone multiplication order. #25987 (@sunag)
    • Static adapter for hasFeature(). #26006 (@sunag)
    • Added BufferAttributeNode. #26016, #26022 (@sunag)
    • Fix clear(). #26046 (@sunag)
    • Universal renderer and WebGPUBackend. #26079 (@sunag)
    • Move TextureRenderer to RenderTarget approach. #26142 (@sunag)
    • CubeRenderTarget and CubeCamera. #26152 (@sunag)
  • XRHandPrimitiveModel

    • Disable frustum culling. 77c27896d36e4f9633ab44a6fe153be45b986fda (@mrdoob)

Editor

  • Removed unused TeapotGeometry code. d6fe1558c1682307d9882cb12ddd9dc4a548d0a0 (@mrdoob)

r152

1 year ago

https://github.com/mrdoob/three.js/wiki/Migration-Guide#r151--r152 https://github.com/mrdoob/three.js/milestone/65?closed=1

  • Global
    • Add three.module.min.js to npm package. #25778, #25828 (@Beilinson, @marcofugaro)
  • AudioLoader
    • Trigger error callback when decodeAudioData fails. #25784 (@luisfonsivevo)
  • BufferGeometry
    • Renamed uv2, uv3, uv4 to uv1, uv2, uv3. #25943 (@mrdoob)
  • Color
    • Clean up. #25833 (@LeviPesin)
    • Fix rounding errors in getHex() and getStyle(). #25832 (@LeviPesin)
  • ColorManagement
    • Enable by default. #25866 (@donmccurdy)
  • MaterialLoader
    • Honor clipping and lights properties. #25891 (@tfreifeld)
  • Object3D
    • Honor animations in copy(). #25928 (@Mugen87)
  • Shaders
    • Clean up transmission_pars_fragment. #25776 (@sunag)
  • SkinnedMesh
    • Implement own getVertexPosition() method. #25791 (@Mugen87)
  • Texture
    • Replace encoding with colorSpace. #25771 (@donmccurdy)
  • WebGLMultipleRenderTargets
    • Copy viewport and scissor from source. #25803 (@querielo)
  • WebGLRenderer
    • Remove inline sRGB decode of video textures. #25752 (@donmccurdy)
    • Replace outputEncoding with outputColorSpace. #25756 (@donmccurdy)
    • Default output to sRGB. #25783 (@donmccurdy)
    • Sort on bounding sphere center, not origin. #25913 (@donmccurdy)
    • Add support for uv3 and uv4. #25788 (@mrdoob)
    • Only update skeletons in frustum. #25937 (@ashconnell)
  • WebGLRenderTarget
    • Replace encoding with colorSpace. #25771 (@donmccurdy)
    • Honor scissor properties in copy(). #25805 (@Mugen87)
  • WebGLShadowMap
    • Fix shadow map types changes. #25847, #25863 (@digitalArt3DTobias, @jostschmithals, @Mugen87)
  • WebGLState
    • Fix bindTexture() does not have fallback for 2D array and 3D textures. #25758 (@RenaudRohlinger)
  • WebXRManager
    • Added getEnvironmentBlendMode(). #25825 (@mrdoob)
    • Update controller matrices before dispatching event. #25951 (@mrdoob)

Documentation

  • Clean up. #25795, #25799, #25808, #25814, #25817, #25827, #25931, 12e6b0b455c3ec0ecb1c4c049e5392827aab8c82 (@vinaykulk621, @Mugen87, @mrdoob)
  • Improve BufferGeometry page. #25824, #25834 (@abernier, @Mugen87)
  • Improve BufferGeometryUtils page. #25813 (@makc)
  • Improve Triangle page. #25749 (@donmccurdy)
  • Improve WebGLRenderer page. #25745 (@Mugen87)
  • Improve Creating a scene guide. #25806 (@Mugen87)
  • Improve Updating resources guide. #25804 (@Mugen87)
  • Improve WebGL compatibility guide. #25761, #25762 (@0xAxiome, @Mugen87)
  • Improve Chinese translation. #25775, #25777, #25794, #25896 (@newstart0514, @Gerocer)
  • Update Color Management related pages. #25792 (@Mugen87)
  • Remove Testing with npm guide. #25807 (@Mugen87)
  • Use color management in scene browsers. #25816 (@Mugen87)
  • Clean up color space references. #25922 (@donmccurdy)
  • Improve color space constant documentation. #25939 (@donmccurdy)

Manual

  • Fix history bug in Firefox. #25918 (@greggman)

Examples

  • Clean up. #25753, #25739, 50993b246434a8beb637e6b0b212bb5b624ffa98 (@timgates42, @hybridherbst, @mrdoob)
  • Refactor webgl_loader_bvh example. #25763, #25811 (@Mugen87, @mattrossman)
  • Added XRButton. #25781 (@mrdoob)
  • Update webgpu_loader_gltf to match webgl_loader_gltf. #25812 (@mrdoob)
  • Fix wireframe toggle in webgl_loader_md2 example. #25838 (@NFSS10)
  • Remove redundant event listener in webgl_camera_cinematic example. #25869 (@TheRedLancer)
  • Upgrade three-gpu-pathtracer in webgl_renderer_pathtracer example. #25879 (@gkjohnson)
  • Adjust lego pathtraced materials in webgl_renderer_pathtracer example. #25883 (@gkjohnson)
  • Add physics_rapier_instancing example. #25892, 39936f7ec109fb8f8dc1ee6da95d2293188606f8 (@mrdoob)
  • Remove physics_oimo_instancing example. #25895 (@mrdoob)
  • Use color management in more examples. #25818, #25844, #25851, #25849, #25858, #25868, #25873, #25882, #25889, #25907, #25912 (@donmccurdy, @Mugen87)
  • Improve WebGPU error message. 124e7cc8d9a0a73e07b536d18e6779d702a6bf29, db4d0899d2f2e5eb38fb9408f82e110de09b6ee3, f9035d864253f131b767cc9b0ebf340eb1738891 (@mrdoob)
  • Improve dragging, paint and sculpt WebXR examples. 39779300e9b450f6de2cba0f0d33269f29db694d (@mrdoob)
  • Improve webxr_xr_haptics example. e0a631f1a520a7569c49ff8cbf595b85d59e9e2f, 443cb7dfde1e411ab659c288acbb9ab2ba6444c1 (@mrdoob)
  • Add floor clipping to webxr_xr_dragging example. 724b00b858c6d7f107e92b696dad95963150fb2e (@mrdoob)
  • Implement simpler floor clipping technique in XR examples. 0f81064166bc869f6c65a97f55a9edf693415fd4 (@mrdoob)

  • BufferGeometryUtils

    • Fix attribute count access in computeMikkTSpaceTangents(). #25884 (@paugit)
  • EffectComposer

    • Always honor pixel ratio when creating the composer. #25942 (@Mugen87)
  • EXRLoader

    • Default to Linear-sRGB. #25854 (@donmccurdy)
  • Flow

    • Remove unnecessary constructor arguments. #25747 (@sunag)
  • GLTFExporter

    • Support multiple UV sets. #25843 (@donmccurdy)
  • HDRCubeTextureLoader

    • Default to Linear-sRGB. #25856 (@donmccurdy)
  • HTMLMesh

    • Render image at the correct position. #25916, #25930 (@vincentfretin)
  • KTX2Loader

    • Add WebGPU support. #25867 (@Mugen87)
    • Prefer traditional for loop. #25929 (@RenaudRohlinger)
  • NodeMaterial

    • Clean up. #25768, #25860 (@LeviPesin)
    • Fix equirectUV background. #25842 (@sunag)
  • NRRDLoader

    • Fix spacing issue when loading 16 bit images. #25767 (@LinkunGao)
  • OBJLoader

    • Clarify comment skips. #25906 (@hamirmahal)
  • PLYLoader

    • Ignore lines in the body. #25796 (@pobrn)
  • RGBELoader

    • Default to Linear-sRGB. #25853 (@donmccurdy)
  • SkeletonUtils

    • Simplify module. #25769 (@Mugen87)
    • Revert "Fix retargetClip() final keyframe". #25809 (@Mugen87)
  • WebGPURenderer

    • New cache system. #25750 (@sunag)
    • Set labels of some WebGPU objects. #25773, #25785, #25801 (@takahirox)
    • Add DepthTexture support. #25766, #25886, #25890 (@sunag, @Mugen87)
    • Upload texture in the same frame if possible and clean up. #25821 (@sunag)
    • Shadows node-based. #25822 (@sunag)
    • Add basic support for ETC2 compressed textures. #25864 (@Mugen87)
    • Add basic support for ASTC compressed textures. #25865, #25876 (@Mugen87)
    • Request all supported GPU features. #25875, #25885 (@Mugen87)
    • Introduce hasFeature(). #25878 (@Mugen87)
    • Make work without three/nodes. #25904 (@sunag)
    • Backdrop Node - Part 1/3. #25903 (@sunag)
    • Improve vertex format support and revisions. #25924, #25934 (@sunag)

Editor

  • Honor latest color management changes. #25793 (@Mugen87)

Tests

  • Add missing constants to unit test. #25810 (@Mugen87)
  • Update sizes message of CI. #25826 (@marcofugaro)
  • Update Chromium version of E2E tests. #25840 (@LeviPesin)
  • Increase E2E timeout from 15 to 20 minutes. #25880 (@LeviPesin)

r151

1 year ago

https://github.com/mrdoob/three.js/wiki/Migration-Guide#r150--r151 https://github.com/mrdoob/three.js/milestone/64?closed=1

  • Global
    • More usage of strict equality operators. #25574 (@ycw)
    • Add missing /*@__PURE__*/ statements. #25604 (@ycw)
    • Improve deprecation comments. #25643 (@LeviPesin)
    • Add minified version of ESM build. #25714, #25719 (@Beilinson, @marcofugaro)
  • AnimationAction
    • Ensure class is exported. #25676 (@linbingquan)
  • Box3
    • Refactor setFromArray() and setFromBufferAttribute(). #25573 (@ycw)
  • Color
    • Simplify hex notation parsing in setStyle(). #25572 (@ycw)
  • ColorManagement
    • Clean up. #25709 (@WestLangley)
  • Float16BufferAttribute
    • Unpack/pack float16's in getters/setters. #25519 (@simondevyoutube)
  • InstancedMesh
    • Add bounding volumes. #25591 (@Mugen87)
    • Optimize raycast(). #25606 (@Mugen87)
  • LineBasicMaterial
    • Add support for map. #25717 (@Mugen87)
  • Material
    • Improve warnings in setValues(). #25582 (@ycw)
  • Math
    • Add convenience methods. #25637 (@WestLangley)
  • Mesh
    • Simplify function name. #25651 (@WestLangley)
  • MeshDistanceMaterial
    • Remove light related properties. #25695 (@Mugen87, @WestLangley)
  • Object3D
    • Honor up in toJSON() and ObjectLoader. #25687 (@Mugen87)
  • PointsMaterial
    • Add support for uv attribute. #25707 (@Mugen87)
  • Quaternion
    • Add toJSON(). #25631 (@Mugen87)
  • Raycaster
    • Add interpolated normals. #25566, #25639 (@zalo, @Mugen87)
  • SkinnedMesh
    • Rename boneTransform() to applyBoneTransform(). #25586 (@WestLangley)
    • Add bounding volumes. #25612 (@Mugen87)
  • ShaderMaterial
    • Disable two-pass rendering by default. #25720 (@WestLangley)
  • Shaders
    • Make inline comments more explicit. #25575 (@WestLangley)
    • Refactor PBR shaders. #25693 (@elalish)
  • UniformsUtils
    • Skip cloning textures of render targets and report warning. #25560 (@simondevyoutube)
  • Vector2
    • Add angleTo(). #25678 (@puxiao, @Mugen87)
  • WebGLPrograms
    • Sheen and transmission checks clean up. #25723 (@mrdoob)
  • WebGLRenderer
    • Render transmissive objects in two passes. #25502 (@mrdoob)
    • Convert to ES6 class. #25599 (@marcofugaro)
    • Add onShaderError(). #25679 (@Mugen87)
    • Add support for multiple uv sets and transforms. #25721, #25740 (@mrdoob)
    • Improve WebGL 2 detection in iframes. #25733 (@antpb)
  • WebXRManager
    • Correctly update the user camera when it has a parent. #25231 (@rhuitl)

Documentation

  • Add MapControls page. #25621 (@Mugen87
  • Improve 3DMLoader page. #25616 (@dgrcode)
  • Improve Color page. #25577 (@Mugen87)
  • Improve Material page. #25614 (@towhare)
  • Improve SkeletonUtils page. #25649 (@Legionses)
  • Improve Chinese translation. #25628, #25672, #25677, #25706, #25713 (@towhare, @newstart0514)
  • Improve French translation. #25644 (@Mael-Kehl)
  • Update Installation guide with clearer guidance on build tools and CDNs. #25468 (@donmccurdy)

Manual

  • Updated monaco-editor to 0.36.0. #25583 (@linbingquan)
  • Clean up. #25716 (@DavidDufour)

Examples

  • Clean up. #25605, #25633, #25640 (@LeviPesin, @Mugen87)
  • Fix invalid Object3D ctor usage in css3d_molecules. #25587 (@Methuselah96)
  • Update Tween.js. #25607 (@Methuselah96)
  • Update FBXLoader examples to .outputEncoding = sRGBEncoding. #25441 (@donmccurdy)
  • Update webgl_morphtargets_*, use physically-based lights. #25537 (@donmccurdy)
  • Rename GroundProjectedEnv to GroundProjectedSkybox. #25645 (@Mugen87)
  • Added damping to webgl_loader_ldraw example. #25656 (@WestLangley)
  • Change skinned model asset in some examples. #25654 (@greggman)
  • Fix GUI in webgl_loader_md2 example. #25670 (@llzen44)
  • Add missing render() to webgl_geometry_spline_editor example. #25690 (@puqeko)
  • Update model in glTF AVIF demo. #25708, #25712 (@Mugen87)
  • Clean up webgl_materials_texture_rotation example. #25711 (@WestLangley)

  • 3DMLoader

    • Clean up. #25423 (@LeviPesi)
  • BufferGeometryUtils

    • Simplify function names. #25652, #25657 (@WestLangley)
  • CSS2DRenderer

    • Introduce CSS2DObject.center. #25673 (@WestLangley)
  • FBXLoader

    • Fix DeformPercent regex. #25689 (@FXTD-ODYSSEY)
  • GLTFLoader

    • Do not disable frustum culling for InstancedMesh. #25623 (@Mugen87)
    • Texture URI as name. #25664, #25682 (@sunag)
    • Prevent load exception for assets that animation.target.node is undefined. #24770 (@hybridherbst)
  • HTMLMesh

    • Add image support. #25660 (@Mugen87)
  • MapControls

    • Move implementation in its own file. #25608 (@WestLangley)
    • Clean up. #25622 (@LeviPesin)
  • NodeEditor

    • Add support for exporting node chaining, materials and Object3Ds (individually). #25553 (@sunag)
    • New Version (Rev. 3). #25692 (@sunag)
  • NodeMaterial

    • Added InputNode.setPrecision(). #25561 (@sunag)
    • Rework NodeUtils.getNodesKeys(). #25581 (@LeviPesin)
    • Fix if timeNode is not a nodeObject() in OscNode. #25588 (@sunag)
    • Deserialize sub-properties and fixes in NodeLoader. #25590 (@sunag)
    • TSL: if, elseif, else syntax. #25653 (@sunag)
    • TSL: Different params order if method chaining is used. #25683 (@sunag)
    • TSL: Add ScriptableNode. #25685 (@sunag)
    • Fix specular color node in MeshStandardNodeMaterial. #25700 (@sunag)
    • Rename invert() -> oneMinus(). #25725 (@sunag)
  • OrbitControls

    • Use onPointerUp() for pointercancel events. #25540 (@Mugen87)
  • PLYLoader

    • Fix comments. #25578 (@girumasfaw)
  • PointerLockControls

    • Refactor class structure. #25665 (@Mugen87)
  • SkeletonUtils

    • Fix retargetClip() final keyframe. #25589 (@kate-grant)
  • TrackballControls

    • Add minZoom/maxZoom properties. #25597 (@agargaro)
  • USDZExporter

    • Add flipY support. #25559 (@elalish)
  • WebGPURenderer

    • Fix backward compatibility of scene.environment. #25698 (@sunag)
    • Added VideoTexture support. #25530 (@sunag)

Editor

  • Rename physicallyCorrectLights to useLegacyLights. #25556 (@linbingquan)
  • Use selected camera when playing the scene. #25641 (@Mugen87)
  • Fix broken material tab when Texture.image is null. #25703 (@Mugen87)

Tests

  • Convert some todos to done. #25567 (@epreston)
  • Update versions of used actions. #25585 (@marcofugaro)
  • Report tree-shaking size in PRs. #25615, #25625, #25627, #25630 (@marcofugaro, @donmccurdy)

r150

1 year ago

https://github.com/mrdoob/three.js/wiki/Migration-Guide#r149--r150 https://github.com/mrdoob/three.js/milestone/63?closed=1

  • Global
    • Improve GLSL formatting. #25448 (@ycw)
    • Updated ES Module Shims. #25444, #25455 (@linbingquan)
    • Add deprecation warning to build/three.js and build/three.min.js. #25465 (@Mugen87)
    • Remove .isBufferGeometry checks. #25490 (@LeviPesin)
    • Deduplicated Imports. #25551 (@ycw)
    • More usage of addScaledVector(). #25543 (@ycw)
  • Audio
    • Fix .stop() without audio source definition. #25336 (@maxscharwath)
  • Box2
    • Ensure that empty intersections in .intersect() result in fully empty boxes. #25546 (@ycw)
    • Simplified .distanceToPoint(). #25547 (@ycw)
  • Box3
    • Preserves emptiness on .getBoundingSphere(). #25489 (@ycw)
    • Simplified .distanceToPoint(). #25547 (@ycw)
  • BufferGeometry
    • Overwrite .copy() in generators. #25536 (@Mugen87)
  • Color
    • Warn more specifically on bad color specification. #25476 (@rotu)
  • ColorManagement
    • Rename .legacyMode=false.enabled=true. #24940 (@donmccurdy)
    • Add Display P3 transforms. #25520 #25528 (@donmccurdy)
  • Mesh
    • Refine .raycast(). #25484 (@ycw)
  • LineCurve
    • Override getTangent() and getTangentAt(). #25544 (@ycw)
  • LineCurve3
    • Override getTangent() and getTangentAt(). #25544 (@ycw)
  • PropertyBinding
    • Remove fallback to root node on incorrect path names. #25329 (@hybridherbst)
  • Ray
    • Clean up. #25524 (@LeviPesin)
  • ShaderChunk
    • Implemented mipped bicubic transmission texture filtering. #25483 (@N8python and @mrdoob)
  • ShadowMaterial
    • Add support for logarithmic depth buffer. #25516 (@Mugen87)
  • Texture
    • Honor internalFormat in .toJSON() and ObjectLoader. #25491 (@Mugen87)
    • Use default value for image setter. #25533 (@xlsfs)
  • WebGLRenderer
    • Rename .physicallyCorrectLights = true.useLegacyLights = false. #24975 (@WestLangley)
    • Restore POT for transmission render target. #25494 (@Mugen87)
    • Use ES6 default parameter in .setSize(). #25486 (@linbingquan)
  • WebGLMorphTargets
    • Removes unused fn args from .update() #25549 (@ycw)

Documentation

  • Clean up. #25363 (@Mugen87)
  • Add DRACOExporter page. #25349 (@epreston)
  • Add STLExporter page. #25352 (@epreston)
  • Improve Audio page. #25344 (@Mugen87)
  • Improve CSS renderer pages. #25463 (@Mugen87)
  • Improve Data3DTexture page. #25427 (@epreston)
  • Improve DataArrayTexture page. #25431 (@epreston)
  • Improve fog pages. #25474 (@Mugen87)
  • Improve GLTFExporter page. #25348, #25350, #25358 (@epreston, @Mugen87)
  • Improve Material page. #25340 (@Mugen87)
  • Improve Ray page. #25487 (@ycw)
  • Improve Korean translation. #25415, #25488 (@HEOJUNFO)
  • Improve Color Management guide. #25452 (@Mugen87)
  • Add import section. #18778, #25467, #25473 (@donmccurdy, @epreston, @Mugen87)
  • Simplify geometry browser. #25482 (@linbingquan)
  • Correct image property type of texture pages. #25492, #25496 (@epreston, @Mugen87)

Manual

  • Refactor links. #25394 (@Mugen87)
  • Use antialiasing. #25408 (@Mugen87)
  • Fix Shadertoy titles. #25439 (@davcri)
  • Defer script execution for primitives.html. #25445 (@ycw)
  • Improve Fundamentals page. (@Mugen87)
  • Updated monaco-editor. #25454, #25461 (@linbingquan)
  • Use <version> for three.js link. #25456 (@linbingquan)

Examples

  • Clean up. #25347, #25425, #25507, #25545 (@donmccurdy, @epreston, @linbingquan)
  • Add GLTFExporter example for KHR_mesh_quantization. #25354 (@donmccurdy)
  • Remove BasisTextureLoader. #25392 (@donmccurdy)
  • Fix imports in webgl_nodes_loader_gltf_sheen example. #25400 (@linbingquan)
  • Update rhino3dm version. #25421 (@HEOJUNFO)
  • Add webgl_loader_gltf_lights example. #25506 (@Mugen87)
  • Refactor webgl_loader_ifc to external demo. #25440 (@agviegas)
  • Fix order of FXAA pass. #25542 (@Mugen87)

  • AnimationClipCreator

    • Fix CreateMaterialColorAnimation(). #25376 (@Mugen87)
  • CSS3DRenderer

    • Enable camera view offset. #25508 (@yomotsu)
  • DRACOExporter

    • Convert vertex colors to/from Linear-sRGB. #25390 (@donmccurdy)
  • DRACOLoader

    • Convert vertex colors to/from Linear-sRGB. #25390 (@donmccurdy)
    • Update Draco decoders to v1.5.6. #25475 (@donmccurdy)
  • EXRLoader

    • Fix parseInt64() regression. #25522 (@LeviPesin)
  • GLTFExporter

    • Add support for signed data types. #25297 (@spearwolf)
    • Add sheen and emission strength export. #25346 (@elalish)
    • Add MAT3 accessor support. #25426 (@paugit)
  • GLTFLoader

    • Add EXT_texture_avif support. #25173 (@leon)
    • Fix node parsing regression. #25377 (@takahirox)
    • Remove IIFE closures. #25416 (@takahirox)
    • Remove special case for normalized skin weights. #25469 (@donmccurdy)
  • KTX2Loader

    • Fix mipmaps width and height. #25375 (@zajkowskie)
  • NodeMaterial

    • Add MeshNormalNodeMaterial. #25471 (@sunag)
    • Update Flow.js lib and added TreeView to create Node. #25500 (@sunag)
    • Rework ShaderNodeElements and make some other refactorings. #25498 (@LeviPesin)
  • NRRDLoader

    • Fix loading 16-bits file with custom axes. #25367 (@LinkunGao)
  • OrbitControls

    • Add stopListenToKeyEvents(). #25418, #25481 (@nikolas, @Mugen87)
  • SVGLoader

    • Gracefully handle empty paths. #25550 (@Mugen87)
  • WebGPURenderer

    • Fix .autoClear. #25527 (@sunag)

Editor

  • Make event listeners passive. #25374 (@puxiao)
  • Added shading mode selector. #25554 (@mrdoob)

Tests

  • Improve unit tests. #25361, #25366, #25365, #25369, #25373, #25378, #25385, #25388, #25391, #25393, #25398, #25399, #25401, #25402, #25404, #25406, #25407, #25409, #25412, #25417, #25453, #25466, #25472 (@epreston)
  • Improve E2E testing. #25314, #25382, #25380, #25383, #25389, #25395, #25397, #25414, #25403, #25386, #25447, #25410, #25459, #25501, #25503, #25504, #25511 (@LeviPesin)

r149

1 year ago

https://github.com/mrdoob/three.js/wiki/Migration-Guide#r148--r149 https://github.com/mrdoob/three.js/milestone/62?closed=1

  • Global
    • Remove JS syntax > ECMA 2018. #25172, #25181, #25183, #25192 (@Mugen87)
    • Improve linting. #25251, #25276, #25312 (@LeviPesin)
    • Remove deprecated code. #25279, #25293 (@LeviPesin)
  • Euler
    • Updated static class properties to ALL_CAPS. #25104 (@WestLangley)
  • GLBufferAttribute
    • Add name property. #25219, #25220 (@mikkom, @Mugen87)
  • Material
    • Replace TwoPassDoubleSide with Material.forceSinglePass. #25239 (@mrdoob)
  • Mesh
    • Maintain consistent nomenclature. #25178 (@WestLangley)
  • Object3D
    • Updated static class properties to ALL_CAPS. #25188 (@WestLangley)
  • PMREMGenerator
    • Fix replacing render targets with different heights. #25301 (@JordyvanDortmont)
  • Scene
    • Fix serialization of background properties. #25213 (@Mugen87)
  • WebGLClipping
    • Project global clipping planes per camera. #25272 (@mrxz)
  • WebGLRenderer
    • Add support for RGTC(ATI1/ATI2/BC4/BC5) compressed textures. #25180 (@djytw)
  • WebGLShadowmap
    • Clean up. #25228 (@LeviPesin)
    • Handle TwoPassDoubleSide case. #25221 (@WestLangley)
    • Fix shadow map shader regression. #25270 (@Mugen87)
  • WebXRManager
    • Allow early set of foveation. #25282 (@saitonakamura)

Documentation

  • Improve CameraHelper page. #25205 (@Mugen87)
  • Improve CameraUtils page. #25302 (@ma1ted)
  • Improves Libraries and Plugins page. #25319, #25322 (@Alchemist0823, @Mugen87)
  • Improve Material page. #25289 (@Mugen87)
  • Improve Object3D page. #25324, #25328 (@0b5vr, @Mugen87)
  • Improve SkinnedMesh page. #25189 (@WestLangley)
  • Remove IE11 references. #25209 (@Mugen87)
  • Keep focus when clear search input. #25194 (@abernier)

Manual

  • Improve Chinese translation. #25199 (@Housz)
  • Improve French translation. #25300 (@Lecrapouille)

Examples

  • Clean up. #25184, #25195 (@Mugen87)
  • Use TwoPassDoubleSide in webgl_geometry_convex example. #25175 (@WestLangley)
  • Add note about AVIF in webgl_materials_matcap example. #25176 (@WestLangley)
  • Simplified webgl_lines_fat_raycasting example. #25191 (@WestLangley)
  • Bump pathtracer, BVH versions. #25237 (@gkjohnson)
  • Remove use of LoaderUtils.decodeText() in loaders. #25236 (@aardgoose)
  • Add external three-bvh-csg example. #25299, #25311 (@gkjohnson)

  • ArcballControls

    • Refactor class structure. #25182 (@Mugen87)
  • CSM

    • Avoid circular dependency in camera computations. #25265 (@OndrejSpanel)
  • DRACOLoader

    • Revoke workerSourceURL. #25174 (@Mugen87)
  • FBXLoader

    • Remove workaround for Safari 9. #25241 (@aardgoose)
  • GLTFExporter

    • Added IOR and specular support. #25335 (@elalish)
  • GLTFLoader

    • Remove redundant toTrianglesDrawMode() function. #25316 (@gkjohnson)
  • LWOLoader

    • Remove workaround for Safari 9. #25245 (@aardgoose)
  • MMDLoader

    • Use matcap instead of envMap. #25226 (@takahirox)
  • MMDToonMaterial

    • Removed unnecessary envMap shader chunks. #25128 (@WestLangley)
  • NodeMaterial

    • Revision of lighting model system. #25170 (@sunag)
    • Tone mapping backward compatibility and fixes. #25215 (@sunag)
    • IES SpotLight Node-Based. #25238 (@sunag)
    • Fix texture reference. #25259 (@sunag)
  • PLYExporter

    • Export points normals and colors. #25235 (@WestLangley)
  • PLYLoader

    • Improve parsing performance. #25210, #25248, #25261 (@aardgoose)
  • SVGLoader

    • Fix parsing of points attribute. #25206 (@ozekik)
  • ViewHelper

    • Clean up. #25200 (@Mugen87)
    • Remove dependency to EditorControls. #25202 (@Mugen87)
  • WebGPURenderer

    • Add Material.wireframe support. #25204 (@sunag)
    • Fix bytesPerRow computation in WebGPUTextures. #25249 (@LeviPesin)
    • Remove return on lines 258 and 626. #25258 (@LeviPesin)
    • Rename getArrayFromBuffer() to getArrayBuffer(), fix return type. #25257 (@LeviPesin)

Editor

  • Add support for Scene.backgroundIntensity. #25216 (@Mugen87)
  • Specify value range for emissive intensity. #25225 (@WestLangley)
  • Specify value range for aoMap intensity. #25244 (@WestLangley)
  • Call dispose() when using DRACOLoader. #25283 (@Mugen87)
  • Remove glTF1 alert. #25284 (@Mugen87)
  • Set ColorManagement.legacyMode = false. #25222 (@donmccurdy)

Tests

  • Display percentage of pixels failed. #25305 (@gkjohnson)
  • Enable WebGPU in Puppeteer. #25304 (@mrdoob)
  • Upgrade Puppeteer to 19.4.0 (Chromium 109.0.5412.0). #25313 (@mrdoob)

r148

1 year ago

https://github.com/mrdoob/three.js/wiki/Migration-Guide#r147--r148 https://github.com/mrdoob/three.js/milestone/61?closed=1

  • Global
    • Unify userData check in toJSON(). #25026, #25085 (@Hoodgail, @Mugen87)
    • Change defaults of geometry generators to match Blender. #25086 (@Dannie226)
  • BufferAttribute
    • Make normalized parameter optional. #25046 (@linbingquan)
  • BufferGeometry
    • Clean up. #25045 (@linbingquan)
  • Material
    • Add TwoPassDoubleSide. #25165 (@Mugen87)
  • Mesh
    • Add getVertexPosition(). #25049 (@elalish)
  • Object3D
    • Ensure localToWorld() uses the updated world matrix. #25097 (@WestLangley)
    • Add getObjectsByProperty(). #25006 (@ANFADEV)
  • ObjectLoader
    • Honor Texture.generateMipmaps. #25109, #25110 (@Hoodgail)
  • WebGLBackground
    • Don't tone map sRGB backgrounds. #25134 (@elalish)
  • WebGLRenderer
    • Force highp for uv computation in bilinearCubeUV(). #25121 (@Mugen87)
    • Remove all( bvecN( ... ) ) workaround. #25119 (@LeviPesin)
  • WebGLShadowMap
    • Properly honor customDepthMaterial. #25137 (@WestLangley)
  • WebGLTextures
    • Only use anistropic filtering with certain minFilter/magFilter combinations. #25068 (@hybridherbst)
  • WebGLUniformsGroups
    • Fix programs sharing multiple UBO and support array uniforms. #25084 (@RenaudRohlinger)

Documentation

  • Clean up. #25141 (@Mugen87)
  • Improve ColladaExporter page. #25066 (@atul-mourya)
  • Improve PointLight page. #25136 (@marquizzo)
  • Support unicode links. #25099 (@bergden-resonai)
  • Improve Italian translation. #25160 (@AngyDev)
  • Replace inline links for template version. #25152 (@bergden-resonai)
  • Refactor link generation to allow more natural mouse interaction. #23071 (@gero3)

Manual

  • Correct material table. #25087 (@Mugen87)

Examples

  • Clean up #25057, #25151 (@LeviPesin, @WestLangley)
  • Remove examples/js. #25043 (@Mugen87)
  • Remove obsolete dependency. #25051, #25052, #25053 (@Mugen87)
  • Unify default options pattern in exporters. #25060 (@Mugen87)
  • Remove customDistanceMaterial from webgl_shadowmap_pointlight example. #25091 (@WestLangley)
  • Add rotation/translation to webgl_lines_fat_raycasting example. #25042 (@bergden-resonai)
  • Throw exception when processing textures with no image data in exporters. #25093, #25100, #25106 (@Mugen87)
  • Hide scrollbars in webgl_effects_ascii example. #25047 (@linbingquan)
  • Improve webgl_buffergeometry_compression example. #25118 (@WestLangley)
  • Port webgl_materials_lightmap to NodeMaterial. #25123 (@sunag)
  • Make some examples more mobile friendly. #25145, #25146 (@Mugen87)
  • Updated lil-gui to 0.17.0. #25147 (@linbingquan)
  • Add pixel frustum alignment in webgl_postprocessing_pixel example. #25140 (@zalo)

  • ColladaLoader

    • Change file version printing to debug rather than log level. #25143 (@wxmerkt)
  • CSMShader

    • Fix shadows with spotlights. #25116 (@titansoftime)
  • GLTFLoader

    • Clean up skeleton binding. #25033 (@takahirox)
    • Clean up node hierarchy build. #25058 (@takahirox)
    • Fix regression in normalized attributes. #25076 (@donmccurdy)
    • Add loadNode() hook. #25077 (@takahirox)
    • loadNode() dependency request optimization. #25079 (@takahirox)
  • GroundProjectedEnv

    • Clean up. #25107 (@WestLangley)
  • LineSegments2

    • Fix raycasting when the geometry has instanceCount set. #25032 (@MixMasterMitch)
  • MMDLoader

    • Set material type to MMDToonMaterial. #25117 (@WestLangley)
  • NodeMaterial

    • Clean up. #25075 (@sunag)
    • Implement CacheNode. #25041 (@sunag)
    • Added FogExp2. #25073 (@sunag)
    • Improve syntax in ShaderNode (fluent interface). #25074 (@sunag)
  • PackedPhongMaterial

    • Simplify and update shader. #25127 (@WestLangley)
  • SSAARenderPass

    • Fix blending equation. #25089 (@skillbert)
  • SVGLoader

    • Fix hole identifier. #25065 (@Ttommeke)
  • TransformControls

    • Fix position of AXIS handle. #25080 (@Mugen87)
  • WebGPURenderer

    • Fix binding size. #25072 (@sunag)
    • Support AmbientLight, DirectionalLight and SpotLight. #25150 (@sunag)

Editor

  • Fix usage of USDZExporter. #25055 (@Mugen87)

Benchmarks

  • Fix rotation setup in updateMatrixWorld() test. #25112, #25122 (@diarmidmackenzie)

r147

1 year ago

https://github.com/mrdoob/three.js/wiki/Migration-Guide#r146--r147 https://github.com/mrdoob/three.js/milestone/60?closed=1

  • Color
    • Update the default color space settings. #24965 (@WestLangley)
  • CubeCamera
    • Orient cameras right-side-up. #24921 (@WestLangley)
  • FileLoader
    • Add X-File-Size header support. #24971 (@mxsxs2)
  • Helpers
    • Add missing type definitions. #24159 (@Heaust-ops)
    • Ensure light helpers are not frame-late. #21427 (@Mugen87)
  • InstancedBufferGeometry
    • Remove unused argument from super.toJSON(). #24948 (@ycw)
    • Remove redundant clone() code. b58ecfd1701f29b1bac486f36c2d624cda3ef79a (@mrdoob)
  • Lights
    • Change default decay to 2. #23897, #24941, #24942 (@mrdoob, @Mugen87)
  • LOD
    • Add hysteresis option. #14566 (@donmccurdy)
  • Matrix3
    • Added 2D transform methods. #24985 (@WestLangley)
  • ObjectLoader
    • Call onError() if no metadata found in JSON. #24891 (@frading)
  • Scene
    • Add backgroundIntensity. #24876 (@WestLangley)
  • Shaders
    • Remove outdated code. #24977 (@WestLangley)
  • Texture
    • Add DEFAULT_ANISOTROPY. #25015 (@WestLangley)
  • WebGLAttributes
    • Call onUploadCallback() again after updating a buffer. #24912 (@luisfonsivevo)
  • WebGLLights
    • Remove outdated comment. #24966 (@WestLangley)
  • WebGLRenderer
    • Remove deprecated code. #24867 (@Mugen87)
    • Enable rendering without vertex data. #24179 (@filonik)
    • Consider .outputEncoding for background, clear color, and fog. #23937 (@donmccurdy)
  • WebGLShadowMap
    • Support material.map with alphaTest. #25000 (@WestLangley)
  • WebGLState
    • Assign boolean to currentPremultipledAlpha. #24955 (@ycw)
  • WebGLUtils
    • Move RedFormat to WebGL 2 section. #24945 (@LeviPesin)
  • WebXRManager
    • Add AR plane detection. #24855 (@richardanaya)
    • Fix hand joints not being initialized when hand connected. #24827 (@DevPika)

Documentation

  • Clean up. #24911, #24953, #24954, #24994, 25036 (@Mugen87, @bergden-resonai)
  • Improve BufferGeometryUtils page. #24874, #24875 (@Mugen87)
  • Improve Material page. #24931 (@WestLangley)
  • Improve MeshPhysicalMaterial page. #24917 (@WestLangley)
  • Improve OrbitControls page. #24951 (@Draichi)
  • Improve PointLightShadow page. #24927 (@Mugen87)
  • Improve WebGLProgram page. #24889 (@Mugen87)
  • Improve Color Management guide. #24929 (@donmccurdy)
  • Improve Installation guide. #24579, #24887 (@LeviPesin, @Mugen87)
  • Improve Libraries and Plugins guide. #24947 (@mallsoft)
  • Improved French translation. #24928 (@xMael-Kehl)
  • Improve Italian translation. #24882, #24885, #24905 (@AngyDev)
  • Started Russian translation. #24896 (@bad4iz)

Manual

  • Clean up. #24901 (@nmattia)
  • Improve Chinese translation. #24884, #24907 (@mk965)
  • Improved French translation. #24913 (@Lecrapouille)
  • Change examples to addons. #24888 (@LeviPesin)
  • Fix code error in load-gltf.html. #24976 (@thelostword)

Examples

  • Clean up. #24869, #24881, #24880, #25018 (@Mugen87, @linbingquan, @WestLangley)
  • Improve GUI of pathtracer demo. #24862 (@Mugen87)
  • Add new pixelization effect. #24873 (@KodyJKing, @Mugen87)
  • Fix raycasting in webgl_lines_fat_raycasting example. #23690 (@gkjohnson)
  • Add WebGPU flag tip message for Chrome. #24892 (@sunag)
  • Simplify calls to lookAt(). #24909 (@WestLangley)
  • Updated external subdivision demo. #24930 (@stevinz)
  • Update WebGPU examples to honor new decay value. #24981 (@sunag)
  • Allow passing GLTFLoader into OculusHandModel/XRHandMeshModel. #25013, 8422f325cabf2afb6b327a172b7e73fae1989c52 (@hybridherbst, @Mugen87)

  • CCDIKSolver

    • Make .createHelper() compatible with generic SkinnedMesh. #24988 (@abernier)
  • ColladaLoader

    • Fix line rendering with incompatible materials. #25017 (@Mugen87)
  • FBXLoader

    • Add warning about unsupported polygons. #25030, #25035 (@Mugen87)
  • GLTFExporter

    • Remove KHR_materials_pbrSpecularGlossiness support. #24950 (@donmccurdy)
  • GLTFLoader

    • Honor extras in light definitions. #24897 (@Mugen87)
    • Support accessors with no bufferView. #24904 (@Mugen87)
    • Add getDependency( type, index ) implementation. #24252 (@hybridherbst)
    • Remove KHR_materials_pbrSpecularGlossiness support. #24950 (@donmccurdy)
    • Make navigator access more robust. #24989 (@Hoodgail)
    • Clean up loadSkin(). #25007 (@takahirox)
    • Fix exception when a texture can't be fetched/created. #25014 (@hybridherbst)
    • Update comment. #25034 (@takahirox)
  • LDrawLoader

    • Include building step count in model. #24868 (@sbgib)
  • LineSegments2

    • Fix raytracing when the mesh has a transformation applied. #24405 (@MixMasterMitch)
  • NodeMaterial

    • Fix WebGPUNodeBuilder.repeatWrapping(). #24922 (@sunag)
    • Add ViewportNode. #24934 (@sunag)
    • Add audio processing using ShaderNode. #24918 (@sunag)
    • Fix OperatorNode. #24970 (@LeviPesin)
    • Fix ConvertType. #24967 (@LeviPesin)
    • Move ShaderNode internals to a Node class. #24961 (@LeviPesin)
    • Add support to material.vertexColors. #25002 (@sunag)
    • Fix _listeners warning. #25003 (@sunag)
  • OrbitControls

    • Enable keyboard rotation with modifier keys. #24974 (@nikolas)
  • PCDLoader

    • Remove unnecessary escape character. #24960 (@puxiao)
  • PLYLoader

    • Allow custom attributes. #25001 (@alankalb)
  • SVGLoader

    • Use new 2D Matrix3 transform methods. #24987 (@WestLangley)
  • USDZExporter

    • Add anchoring support. #22854, #24865 (@aleneum, @Mugen87)
    • Fix default plane anchoring orientation and add precision specifiers. #25012 (@hybridherbst)
  • USDZLoader

    • Fix loading files exported with USDZExporter. #25023 (@hybridherbst)
  • WebGPURenderer

    • Add textured background support. #24986 (@sunag)

Tests

  • Implement Object3D inheritance tests. #25009 (@ANFADEV)

r146

1 year ago

https://github.com/mrdoob/three.js/wiki/Migration-Guide#r145--r146 https://github.com/mrdoob/three.js/milestone/59?closed=1

  • AudioContext
    • Use class syntax. #24840 (@linbingquan)
  • CompressedArrayTexture
    • Add new class for supporting compressed texture arrays. #24745 (@RenaudRohlinger)
  • Earcut
    • Upgrade to version 2.2.4. #24760 (@yanranxiaoxi)
  • InstancedMesh
    • Use renderable instanceMatrix default. #24749 (@CodyJasonBennett)
  • Material
    • Fix attenuationDistance in toJSON(). #24798 (@davcri)
  • Ray
    • Improve readability in intersectBox(). #24790 (@Mugen87)
  • Scene
    • Add backgroundBlurriness. #24752 (@Mugen87)
  • Sphere
    • Simplify some methods. #24721 (@WestLangley)
  • WebGLRenderer
    • Remove unnecessary if statement. #24816 (@linbingquan)
    • Refactor background shaders. #24805 (@WestLangley)
  • WebGLRenderTarget
    • Use default parameters for dimensions. #24747 (@Mugen87)
  • WebGLTextures
    • Make userAgent test more robust. #24717 (@linev)
    • Fix warning when using 3D Textures. #24753 (@clemenssielaff)
  • WebGLUniforms
    • Improve setValueV2/3/4(u)i functions. #24784 (@Mugen87)

Documentation

  • Clean up. #24734, #24735, #24813, #24848 (@AngyDev, @Mugen87, @jynxio)
  • Improve Chinese translation. #24814, #24841, #24852 (@jynxio, @callmegaga, @xlsfs)
  • Improve French translation. #24824 (@Mael-Kehl)
  • Improve Italian translation. #24782, #24850 (@AngyDev)
  • Improve GLTFLoader page. #24808 (@Mugen87)
  • Improve MeshLambertMaterial page. #24847 (@ianklatzco)
  • Improve MeshPhysicalMaterial page. #24836 (@Mugen87)
  • Improve Object3D page. #24726 (@0xAxiome)
  • Improve Scene page. #24831 (@Mugen87)
  • Improve Triangle page. #24837 (@Borodin)
  • Improve VideoTexture page. #24768 (@Mugen87)
  • Fix raycast() return type. #24741 (@Mugen87)

Manual

  • Improve Chinese translation. #24761 (@MongooseSong)

Examples

  • Clean up. #24737, #24738, #24793, #24859 (@StrandedKitty, @WestLangley, @Mugen87, @linbingquan)
  • Implement dispose() in post processing passes. #24724 (@Mugen87)
  • Add setSize() to more post-processing passes. #24744 (@Mugen87)
  • Improve webgl_lights_spotlight example. #24751 (@WestLangley)
  • Use ESM version of lottie. #24763 (@Mugen87)
  • Add space character support for search. #24775 (@sunag)
  • Add external three-gpu-pathtracer example. #24803 (@gkjohnson)
  • Improve webgl_tonemapping example. f3b1f55d6ba3a2e467e017ab9e3aead9e441f64a (@mrdoob)
  • Add VelocityShader and update webgl_materials_channels example. #23784 (@bhouston)
  • Improve webgpu_equirectangular mouse drag interaction. #24844 (@sunag)
  • Simplified webgl_nodes_loader_gltf_sheen example. ddaf9ea688ec051005341605d19b86ca357b3310 (@mrdoob)

  • BufferGeometryUtils

    • Skip .userData in .mergeBufferGeometries(). #24754 (@donmccurdy)
  • EffectComposer

    • Add dispose(). #24712 (@Mugen87)
  • FBXLoader

    • Refactor material index warning. #24742 (@Mugen87)
  • GLTFLoader

    • Add EXT_mesh_gpu_instancing built-in plugin. #24528 (@takahirox, @shantzis1962)
    • Allow JOSN objects in parse(). #24801 (@Hoodgail)
    • Use source name for texture if available. #24849 (@Mugen87, @donmccurdy)
  • HTMLMesh

    • Delete canvas from internal weak map in dispose(). #24779 (@jrjdavidson)
  • KTX2Loader

    • Make _createTexture() async for better error handling. #24810 (@jameszhong2008)
  • MaterialXLoader

    • Add new loader. #24707 (@sunag)
  • NodeMaterial

    • Add triplanar texture mapping. #24714 (@sunag)
    • Fix support for extended classes. #24723 (@sunag)
    • Add posterize() and reciprocal() for ShaderNode. #24767 (@sunag)
    • Change static string style. #24807 (@sunag)
    • Move generate() to construct(). #24823 (@sunag)
    • Optional varying interpolation #24821 (@sunag)
    • Add equirectUV(). #24825 (@sunag)
  • SceneUtils

    • Add sortInstancedMesh(mesh, fn). #24113, #24833 (@donmccurdy)
    • Add reduceVertices(). #22742 (@elalish)
  • SVGLoader

    • Implement ellipse transformations. #24750 (@nkrkv)
    • Support arbitrary arcs transforms. #24778 (@nkrkv)
  • USDZExporter

    • Add camera support. #24854 (@Vochsel)
  • WebGPURenderer

    • Move .init() to private scope and add .setAnimationLoop(). #24755 (@sunag)

Editor

  • Remove UIListbox namespace from ListboxItem. #24765 (@puxiao)
  • Add transmissionMap and thicknessMap support. #24791 (@davcri)
  • Improved Chinese translation. #24795, #24804 (@linbingquan)
  • Add backgroundBlurriness support. #24783 (@Mugen87)
  • Fix drag'n'drop in outliner when using Chrome. #24802 (@Mugen87)
  • Add sheen support. #24835 (@Mugen87)

r145

1 year ago

https://github.com/mrdoob/three.js/wiki/Migration-Guide#r144--r145 https://github.com/mrdoob/three.js/milestone/58?closed=1

  • Global
    • Add .dispose() to helpers. #24655, #24666, #24668, #24669, #24670 (@WestLangley, @sunag, @Mugen87)
  • LightShadow
    • Improve .updateMatrices(). #24675 (@WestLangley)
  • MeshPhysicalMaterial
    • Match behavior of attenuationDistance to KHR_materials_volume. #24622 (@zach-capalbo)
  • PropertyBinding
    • Fix map property binding regression. #24603 (@hybridherbst)
  • ShaderChunks
    • Remove obsolete comment. #24608 (@Mugen87)
    • Remove legacy workaround for Adreno bug. #24611 (@WestLangley)
  • Sphere
    • Fix expandByPoint() with empty spheres. #24694 (@gkjohnson)
    • Fix union() with empty spheres. #24701 (@gkjohnson)
    • Clean up. #24704 (@WestLangley)
  • WebGLState
    • Fix setting of NeverDepth. #24628 (@mrxz)
    • Minimize gl.activeTexture() calls. #24492 (@snagy)
  • WebGLTextures
    • Store source version in properties object. #24599 (@Mugen87)
    • Force linear encoding for WebXR render targets. #24698, bcdc5c5432dd338ab2b3fe9951d614711ba4f449 (@cabanier, @mrdoob)
  • WebGLUniforms
    • Cache texture unit values when setting texture array uniforms. #24637 (@snagy)

Documentation

  • Rename WebXR basics link to have perfect match name. #24601 (@AngyDev)
  • Honor blendMode in animation pages. #24614 (@Mugen87)
  • Clarify .dispose() methods. #24654, #24667 (@WestLangley)
  • Improve BufferGeometry page. #24616 (@erasta)
  • Improve CapsuleGeometry page. #24626 (@mkeblx)
  • Improve PointsMaterial page. #24695 (@AngyDev)
  • Improve SpotLight page. #24606, #24615 (@V-R-Dighe, @WestLangley)
  • Improve French translation. #24598, #24651 (@AlexandreAllard)
  • Improve Italian translation. #24592, #24619, #24640, #24687 (@AngyDev)

Examples

  • Clean up. #24590, #24686 (@kintel, @Mugen87)
  • Add license for nurbs.fbx. #24602 (@LouisBrunner)
  • Fix animation speed in webgl_multiple_elements_text example. #24596 (@CalebBabin)
  • Export helper classes from ConvexHull module. #24594 (@erasta)
  • Add new webgl_animation_skinning_ik example. #24652 (@abernier)
  • Move remaining controls to Pointer Events. #24693 (@Mugen87)
  • Fixed webxr_vr_layers example. #24691 (@sigmaxipi)
  • Explicitly use event in onPointerUp(). #24708 (@LukasSchmid97)

  • BufferGeometryUtils

    • Fix mergeVertices() with normalized vertex attributes. #24577 (@donmccurdy)
  • CSM

    • Ensure remove() removes light targets, too. #24658 (@yoshikiohshima)
  • GLTFExporter

    • Remove truncateDrawRange option. #24625 (@Mugen87)
  • HTMLMesh

    • Fix canvas cache usage. #24650 (@Degubi)
  • InteractiveGroup

    • Use getBoundingClientRect() when computing pointer. #24586 (@werto165)
  • NodeEditor

    • UX updates. #24573 (@sunag)
  • NodeMaterial

    • Add RemapNode and BlendModeNode. #24649 (@sunag)
    • Various updates and fixes. #24662 (@sunag)
    • Add three/nodes export to package.json. #24660 (@LeviPesin)
    • Add TangentNode and BitangentNode. #24672 (@sunag)
    • Add frameId to ShaderNode. #24680 (@sunag)
    • Add luminance() and lumaCoeffs to ShaderNode. #24682 (@sunag)
    • Add MaterialX procedural functions and overloading support to ShaderNode. #24699 (@sunag)
  • OctreeHelper

    • Add update(). #24641 (@erasta)
  • OutlinePass

    • Fix shader compilation error. #24681 (@TobyGilbert)
  • TrackballControls

    • Fix multi-touch in onTouchEnd(). #24631 (@Fly-in-Free)
  • TransformControls

    • Fix eye vector computation. #24583 (@Mugen87)
  • USDZLoader

    • Support files created with USDZExporter. 73581817a19c75b0c68efe468a3888cbd20c380b (@mrdoob)
    • Added normals handling. f82bbc9c0d64e5fba89175cf58089c3891fb73b3 (@mrdoob)
    • Added transforms support. 141011da4aa278babb9175999e7d619999ee69d1 (@mrdoob)
    • Improved geometry and material parsing. b72144efe0d6ec083b17c5fe8c0d0582806c60d7 (@mrdoob)
    • Handle mesh names. 8938d338bc3ff4fc38f466158a50040251c0b772 (@mrdoob)
    • Improved texture support. d190283b1059c22b6f0bb61916cfcc7d8a0cf5c3 (@mrdoob)
    • Clean up. 3ab8b6a0100aa2ea5b34f9c689fd9244999e50b6, 12b970fe21ea16bd97532317f59adcfb3f8b15dc (@mrdoob)
  • VRMLLoader

    • Process Anchor node as grouping node. #24645 (@Mugen87)

Editor

  • Add secure headers and clean up. #24217 (@LeviPesin)