123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <base href="../../" />
- <script src="list.js"></script>
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body>
- <h1>Deprecated API List</h1>
- <div>
- As Three.js has a rapidly evolving interface, you may come across examples that
- suggest the use of API elements that are no longer part of the core.<br /><br />
- Below is a list of such elements, along with info regarding their replacements.
- </div>
- <h2>Buffers</h2>
- <h3>[page:BufferAttribute.length]</h3>
- <div>BufferAttribute.length has been renamed to [page:BufferAttribute.count].</div>
- <h3>[page:DynamicBufferAttribute]</h3>
- <div>DynamicBufferAttribute has been removed. Use [page:BufferAttribute.setDynamic]( true ) instead.</div>
- <h3>[page:Int8Attribute]</h3>
- <div>Int8Attribute has been removed. Use [page:BufferAttributeTypes Int8BufferAttribute] instead.</div>
- <h3>[page:Uint8Attribute]</h3>
- <div>Uint8Attribute has been removed. Use [page:BufferAttributeTypes Uint8BufferAttribute] instead.</div>
- <h3>[page:Uint8ClampedAttribute]</h3>
- <div>Uint8ClampedAttribute has been removed. Use [page:BufferAttributeTypes Uint8ClampedBufferAttribute] instead.</div>
- <h3>[page:Int16Attribute]</h3>
- <div>Int16Attribute has been removed. Use [page:BufferAttributeTypes Int16BufferAttribute] instead.</div>
- <h3>[page:Uint16Attribute]</h3>
- <div>Uint16Attribute has been removed. Use [page:BufferAttributeTypes Uint16BufferAttribute] instead.</div>
- <h3>[page:Int32Attribute]</h3>
- <div>Int32Attribute has been removed. Use [page:BufferAttributeTypes Int32BufferAttribute] instead.</div>
- <h3>[page:Uint32Attribute]</h3>
- <div>Uint32Attribute has been removed. Use [page:BufferAttributeTypes Uint32BufferAttribute] instead.</div>
- <h3>[page:Float32Attribute]</h3>
- <div>Float32Attribute has been removed. Use [page:BufferAttributeTypes Float32BufferAttribute] instead.</div>
- <h3>[page:Float64Attribute]</h3>
- <div>Float64Attribute has been removed. Use [page:BufferAttributeTypes Float64BufferAttribute] instead.</div>
- <h2>Cameras</h2>
- <h3>[page:PerspectiveCamera.setLens]</h3>
- <div>
- PerspectiveCamera.setLens is deprecated. Use [page:PerspectiveCamera.setFocalLength]
- and [page:PerspectiveCamera.filmGauge] for a photographic setup.
- </div>
- <h2>Constants</h2>
- <h3>[page:LineStrip]</h3>
- <h3>[page:LinePieces]</h3>
- <div>
- LinePieces mode is no longer supported for [page:Line]s. Create a [page:LineSegments] instead.
- </div>
- <h2>Core</h2>
- <h3>[page:EventDispatcher.apply]</h3>
- <div>EventDispatcher.apply has been has been removed. Inherit or Object.assign the prototype to mix-in instead.</div>
- <h3>[page:Uniform.dynamic]</h3>
- <div>Uniform.dynamic has been has been removed. Use object.onBeforeRender() instead.</div>
- <h3>[page:Uniform.onUpdate]</h3>
- <div>Uniform.onUpdate has been has been removed. Use object.onBeforeRender() instead.</div>
- <h2>Geometry</h2>
- <h3>[page:BufferGeometry.addIndex]</h3>
- <div>BufferGeometry.addIndex has been renamed to [page:BufferGeometry.setIndex].</div>
- <h3>[page:BufferGeometry.addDrawCall]</h3>
- <div>BufferGeometry.addDrawCall is now [page:BufferGeometry.addGroup].</div>
- <h3>[page:BufferGeometry.clearDrawCalls]</h3>
- <div>BufferGeometry.clearDrawCalls is now [page:BufferGeometry.clearGroups].</div>
- <h3>[page:BufferGeometry.computeTangents]</h3>
- <div>BufferGeometry.computeTangents has been removed.</div>
- <h3>[page:BufferGeometry.computeOffsets]</h3>
- <div>BufferGeometry.computeOffsets has been removed.</div>
- <h3>[page:BufferGeometry.drawcalls]</h3>
- <div>BufferGeometry.drawcalls has been renamed to [page:BufferGeometry.groups].</div>
- <h3>[page:BufferGeometry.offsets]</h3>
- <div>BufferGeometry.offsets has been renamed to [page:BufferGeometry.groups].</div>
- <h3>[page:CubeGeometry]</h3>
- <div>CubeGeometry has been renamed to [page:BoxGeometry].</div>
- <h3>[page:GeometryUtils]</h3>
- <div>
- GeometryUtils.merge has been moved to [page:Geometry.merge].<br /><br />
- GeometryUtils.center has been moved to [page:Geometry.center].
- </div>
- <h3>[page:Plane]</h3>
- <div>
- [page:Plane.isIntersectionLine]() has been renamed to [page:Plane.intersectsLine]().
- </div>
- <h2>Helpers</h2>
- <h3>[page:EdgesHelper]</h3>
- <div>EdgesHelper has been removed. Use [page:EdgesGeometry] instead.</div>
- <h3>[page:WireframeHelper WireframeHelper]</h3>
- <div>WireframeHelper has been removed. Use [page:WireframeGeometry] instead.</div>
- <h2>Loaders</h2>
- <h3>[page:XHRLoader]</h3>
- <div>XHRLoader has been renamed to [page:FileLoader].</div>
- <h2>Maths</h2>
- <h3>[page:Box2.center]</h3>
- <div>Box2.center has been renamed to [page:Box2.getCenter]().</div>
- <h3>[page:Box2.empty]</h3>
- <div>Box2.empty has been renamed to [page:Box2.isEmpty]().</div>
- <h3>[page:Box2.isIntersectionBox]</h3>
- <div>Box2.isIntersectionBox has been renamed to [page:Box2.intersectsBox]().</div>
- <h3>[page:Box2.size]</h3>
- <div>Box2.size has been renamed to [page:Box2.getSize]().</div>
- <h3>[page:Box3.center]</h3>
- <div>Box3.center has been renamed to [page:Box3.getCenter]().</div>
- <h3>[page:Box3.empty]</h3>
- <div>Box3.empty has been renamed to [page:Box3.isEmpty]().</div>
- <h3>[page:Box3.isIntersectionBox]</h3>
- <div>Box3.isIntersectionBox has been renamed to [page:Box3.intersectsBox]().</div>
- <h3>[page:Box3.isIntersectionSphere]</h3>
- <div>Box3.isIntersectionBox has been renamed to [page:Box3.intersectsSphere]().</div>
- <h3>[page:Box3.size]</h3>
- <div>Box3.size has been renamed to [page:Box3.getSize]().</div>
- <h3>[page:Face4]</h3>
- <div>Face4 has been removed. Use [page:Face3] instead.</div>
- <h3>[page:Line3.center]</h3>
- <div>Line3.center has been renamed to [page:Line3.getCenter]().</div>
- <h3>[page:Matrix3.multiplyVector3]</h3>
- <div>Matrix3.multiplyVector3 has been removed. Use vector.applyMatrix3( matrix ) instead.<div>
- <h3>[page:Matrix3.multiplyVector3Array]</h3>
- <div>Matrix3.multiplyVector3Array has been renamed to [page:Matrix3.applyToVector3Array]( array ).</div>
- <h3>[page:Matrix4.extractPosition]</h3>
- <div>Matrix4.extractPosition has been renamed to [page:Matrix4.copyPosition].</div>
- <h3>[page:Matrix4.setRotationFromQuaternion]</h3>
- <div>Matrix4.setRotationFromQuaternion has been renamed to [page:Matrix4.makeRotationFromQuaternion].</div>
- <h3>[page:Matrix4.multiplyVector3]</h3>
- <div>Matrix4.multiplyVector3 has been has been removed. Use vector.applyMatrix4( matrix ) or vector.applyProjection( matrix ) instead.</div>
- <h3>[page:Matrix4.multiplyVector4]</h3>
- <div>Matrix4.multiplyVector4 has been removed. Use vector.applyMatrix4( matrix ) instead.</div>
- <h3>[page:Matrix4.multiplyVector3Array]</h3>
- <div>Matrix4.multiplyVector3Array has been renamed to [page:Matrix4.applyToVector3Array] (array ).</div>
- <h3>[page:Matrix4.rotateAxis]</h3>
- <div>Matrix4.rotateAxis has been removed. Use[page:Matrix4.transformDirection]( matrix ) instead.</div>
- <h3>[page:Matrix4.crossVector]</h3>
- <div>Matrix4.crossVector has been removed. Use vector.applyMatrix4( matrix ) instead.</div>
- <h3>[page:Matrix4.rotateX]</h3>
- <div>Matrix4.rotateX has been removed.</div>
- <h3>[page:Matrix4.rotateY]</h3>
- <div>Matrix4.rotateY has been removed.</div>
- <h3>[page:Matrix4.rotateZ]</h3>
- <div>Matrix4.rotateZ has been removed.</div>
- <h3>[page:Matrix4.rotateByAxis]</h3>
- <div>Matrix4.rotateByAxis has been removed.</div>
- <h3>[page:Quaternion.multiplyVector3]</h3>
- <div>Quaternion.multiplyVector3 has been removed. Use vector.applyQuaternion( quaternion ) instead.</div>
- <h3>[page:Ray.isIntersectionBox]</h3>
- <div>Ray.isIntersectionBox has been renamed to [page:Ray.intersectsBox].</div>
- <h3>[page:Ray.isIntersectionBox]</h3>
- <div>Ray.isIntersectionPlane has been renamed to [page:Ray.intersectsPlane].</div>
- <h3>[page:Ray.isIntersectionBox]</h3>
- <div>Ray.isIntersectionSphere has been renamed to [page:Ray.intersectsSphere].</div>
- <h3>[page:Vector3.setEulerFromRotationMatrix]</h3>
- <div>Vector3.setEulerFromRotationMatrix has been removed. Use [page:Euler.setFromRotationMatrix] instead.</div>
- <h3>[page:Vector3.setEulerFromQuaternion]</h3>
- <div>Vector3.setEulerFromQuaternion has been removed. Use [page:Euler.setFromQuaternion] instead.</div>
- <h3>[page:Vector3.getPositionFromMatrix]</h3>
- <div>Vector3.getPositionFromMatrix has been renamed to [page:Vector3.setFromMatrixPosition].</div>
- <h3>[page:Vector3.getScaleFromMatrix]</h3>
- <div>Vector3.getScaleFromMatrix has been renamed to [page:Vector3.setFromMatrixScale].</div>
- <h3>[page:Vector3.getColumnFromMatrix]</h3>
- <div>Vector3.getColumnFromMatrix has been renamed to [page:Vector3.setFromMatrixColumn].</div>
- <h3>[page:Vertex]</h3>
- <div>Vertex has been removed. Use [page:Vector3] instead.</div>
- <h2>Materials</h2>
- <h3>[page:Light.onlyShadow]</h3>
- <div>Light.onlyShadow has been removed.</div>
- <h3>[page:Light.shadowCameraLeft]</h3>
- <div>Light.shadowCameraLeft is now [page:Light.shadow.camera.left].</div>
- <h3>[page:Light.shadowCameraRight]</h3>
- <div>Light.shadowCameraRight is now [page:Light.shadow.camera.right].</div>
- <h3>[page:Light.shadowCameraTop]</h3>
- <div>Light.shadowCameraTop is now [page:Light.shadow.camera.top].</div>
- <h3>[page:Light.shadowCameraBottom]</h3>
- <div>Light.shadowCameraBottom is now [page:Light.shadow.camera.bottom].</div>
- <h3>[page:Light.shadowCameraNear]</h3>
- <div>Light.shadowCameraNear is now [page:Light.shadow.camera.near].</div>
- <h3>[page:Light.shadowCameraFar]</h3>
- <div>Light.shadowCameraFar is now [page:Light.shadow.camera.far].</div>
- <h3>[page:Light.shadowCameraVisible]</h3>
- <div>Light.shadowCameraVisible has been removed. Use [page:CameraHelper] ( light.shadow.camera ) instead.</div>
- <h3>[page:Light.shadowBias]</h3>
- <div>Light.shadowBias is now [page:Light.shadow.bias].</div>
- <h3>[page:Light.shadowDarkness]</h3>
- <div>Light.shadowDarkness has been removed.</div>
- <h3>[page:Light.shadowMapWidth]</h3>
- <div>Light.shadowMapWidth is now [page:Light.shadow.mapSize.width].</div>
- <h3>[page:Light.shadowMapHeight]</h3>
- <div>Light.shadowMapHeight is now [page:Light.shadow.mapSize.height].</div>
- <h2>Materials</h2>
- <h3>[page:Material.wrapAround]</h3>
- <div>Material.wrapAround has been removed.</div>
- <h3>[page:Material.wrapRGB]</h3>
- <div>Material.wrapRGB has been removed.</div>
- <h3>[page:MeshFaceMaterial]</h3>
- <div>MeshFaceMaterial has been removed. Use [page:MultiMaterial] instead.</div>
- <h3>[page:MeshPhongMaterial.metal]</h3>
- <div>MeshPhongMaterial.metal has been removed. Use [page:MeshStandardMaterial] instead.</div>
- <h3>[page:ParticleBasicMaterial]</h3>
- <div>ParticleBasicMaterial has been renamed to [page:PointsMaterial].</div>
- <h3>[page:ParticleSystemMaterial]</h3>
- <div>ParticleBasicMaterial has been renamed to [page:PointsMaterial].</div>
- <h3>[page:PointCloudMaterial]</h3>
- <div>PointCloudMaterial has been renamed to [page:PointsMaterial].</div>
- <h3>[page:ShaderMaterial.derivatives]</h3>
- <div>ShaderMaterial.derivatives has been moved to [page:ShaderMaterial.extensions.derivatives].</div>
- <h2>Objects</h2>
- <h3>[page:LOD.objects]</h3>
- <div>LOD.objects has been renamed to [page:LOD.levels].</div>
- <h3>[page:Object3D.eulerOrder]</h3>
- <div>Object3D.eulerOrder is now [page:Object3D.rotation.order].</div>
- <h3>[page:Object3D.getChildByName]</h3>
- <div>Object3D.getChildByName has been renamed to [page:Object3D.getObjectByName].</div>
- <h3>[page:Object3D.renderDepth]</h3>
- <div>Object3D.renderDepth has been removed. Use [page:Object3D.renderOrder] instead.</div>
- <h3>[page:Object3D.translate]</h3>
- <div>Object3D.translate has been removed. Use [page:Object3D.translateOnAxis]( axis, distance ) instead.</div>
- <h3>[page:Object3D.useQuaternion]</h3>
- <div>Object3D.useQuaternion has been removed. The library now uses quaternions by default.</div>
- <h3>[page:Particle]</h3>
- <div>ParticleSystem has been renamed to [page:Sprite].</div>
- <h3>[page:ParticleSystem]</h3>
- <div>ParticleSystem has been renamed to [page:Points].</div>
- <h3>[page:PointCloud]</h3>
- <div>PointCloud has been renamed to [page:Points].</div>
- <h3>[page:Shape.extrude]</h3>
- <div>Shape.extrude has been removed. Use [page:ExtrudeGeometry] instead.</div>
- <h3>[page:Shape.makeGeometry]</h3>
- <div>Shape.makeGeometry has been removed. Use [page:ShapeGeometry] instead.</div>
- <h2>Renderer</h2>
- <h3>[page:Projector]</h3>
- <div>
- Projector has been moved to
- [link:https://github.com/mrdoob/three.js/blob/master/examples/js/renderers/Projector.js /examples/js/renderers/Projector.js].<br /><br />
- Projector.projectVector() is now [page:Vector.project].<br /><br />
- Projector.unprojectVector() is now [page:Vector.unproject].<br /><br />
- Projector:.pickingRay() is now [page:Raycaster.setFromCamera].
- </div>
- <h2>Textures</h2>
- <h3>[page:ImageUtils]</h3>
- <div>
- ImageUtils.loadTexture has been deprecated. Use [page:TextureLoader] instead.<br /><br />
- ImageUtils.loadTextureCube has been deprecated. Use [page:CubeTextureLoader] instead.<br /><br />
- ImageUtils.loadCompressedTexture has been removed. Use [page:DDSLoader] instead.<br /><br />
- ImageUtils.loadCompressedTextureCube has been removed. Use [page:DDSLoader] instead.
- </div>
- </body>
- </html>
|