Deprecated API List

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.

Below is a list of such elements, along with info regarding their replacements.

Buffers

[page:BufferAttribute.length]

BufferAttribute.length has been renamed to [page:BufferAttribute.count].

[page:DynamicBufferAttribute]

DynamicBufferAttribute has been removed. Use [page:BufferAttribute.setDynamic]( true ) instead.

[page:Int8Attribute]

Int8Attribute has been removed. Use [page:BufferAttributeTypes Int8BufferAttribute] instead.

[page:Uint8Attribute]

Uint8Attribute has been removed. Use [page:BufferAttributeTypes Uint8BufferAttribute] instead.

[page:Uint8ClampedAttribute]

Uint8ClampedAttribute has been removed. Use [page:BufferAttributeTypes Uint8ClampedBufferAttribute] instead.

[page:Int16Attribute]

Int16Attribute has been removed. Use [page:BufferAttributeTypes Int16BufferAttribute] instead.

[page:Uint16Attribute]

Uint16Attribute has been removed. Use [page:BufferAttributeTypes Uint16BufferAttribute] instead.

[page:Int32Attribute]

Int32Attribute has been removed. Use [page:BufferAttributeTypes Int32BufferAttribute] instead.

[page:Uint32Attribute]

Uint32Attribute has been removed. Use [page:BufferAttributeTypes Uint32BufferAttribute] instead.

[page:Float32Attribute]

Float32Attribute has been removed. Use [page:BufferAttributeTypes Float32BufferAttribute] instead.

[page:Float64Attribute]

Float64Attribute has been removed. Use [page:BufferAttributeTypes Float64BufferAttribute] instead.

Cameras

[page:PerspectiveCamera.setLens]

PerspectiveCamera.setLens is deprecated. Use [page:PerspectiveCamera.setFocalLength] and [page:PerspectiveCamera.filmGauge] for a photographic setup.

Constants

[page:LineStrip]

[page:LinePieces]

LinePieces mode is no longer supported for [page:Line]s. Create a [page:LineSegments] instead.

Core

[page:EventDispatcher.apply]

EventDispatcher.apply has been has been removed. Inherit or Object.assign the prototype to mix-in instead.

[page:Uniform.dynamic]

Uniform.dynamic has been has been removed. Use object.onBeforeRender() instead.

[page:Uniform.onUpdate]

Uniform.onUpdate has been has been removed. Use object.onBeforeRender() instead.

Geometry

[page:BufferGeometry.addIndex]

BufferGeometry.addIndex has been renamed to [page:BufferGeometry.setIndex].

[page:BufferGeometry.addDrawCall]

BufferGeometry.addDrawCall is now [page:BufferGeometry.addGroup].

[page:BufferGeometry.clearDrawCalls]

BufferGeometry.clearDrawCalls is now [page:BufferGeometry.clearGroups].

[page:BufferGeometry.computeTangents]

BufferGeometry.computeTangents has been removed.

[page:BufferGeometry.computeOffsets]

BufferGeometry.computeOffsets has been removed.

[page:BufferGeometry.drawcalls]

BufferGeometry.drawcalls has been renamed to [page:BufferGeometry.groups].

[page:BufferGeometry.offsets]

BufferGeometry.offsets has been renamed to [page:BufferGeometry.groups].

[page:CubeGeometry]

CubeGeometry has been renamed to [page:BoxGeometry].

[page:GeometryUtils]

GeometryUtils.merge has been moved to [page:Geometry.merge].

GeometryUtils.center has been moved to [page:Geometry.center].

[page:Plane]

[page:Plane.isIntersectionLine]() has been renamed to [page:Plane.intersectsLine]().

Helpers

[page:EdgesHelper]

EdgesHelper has been removed. Use [page:EdgesGeometry] instead.

[page:WireframeHelper WireframeHelper]

WireframeHelper has been removed. Use [page:WireframeGeometry] instead.

Loaders

[page:XHRLoader]

XHRLoader has been renamed to [page:FileLoader].

Maths

[page:Box2.center]

Box2.center has been renamed to [page:Box2.getCenter]().

[page:Box2.empty]

Box2.empty has been renamed to [page:Box2.isEmpty]().

[page:Box2.isIntersectionBox]

Box2.isIntersectionBox has been renamed to [page:Box2.intersectsBox]().

[page:Box2.size]

Box2.size has been renamed to [page:Box2.getSize]().

[page:Box3.center]

Box3.center has been renamed to [page:Box3.getCenter]().

[page:Box3.empty]

Box3.empty has been renamed to [page:Box3.isEmpty]().

[page:Box3.isIntersectionBox]

Box3.isIntersectionBox has been renamed to [page:Box3.intersectsBox]().

[page:Box3.isIntersectionSphere]

Box3.isIntersectionBox has been renamed to [page:Box3.intersectsSphere]().

[page:Box3.size]

Box3.size has been renamed to [page:Box3.getSize]().

[page:Face4]

Face4 has been removed. Use [page:Face3] instead.

[page:Line3.center]

Line3.center has been renamed to [page:Line3.getCenter]().

[page:Matrix3.multiplyVector3]

Matrix3.multiplyVector3 has been removed. Use vector.applyMatrix3( matrix ) instead.

[page:Matrix3.multiplyVector3Array]

Matrix3.multiplyVector3Array has been renamed to [page:Matrix3.applyToVector3Array]( array ).

[page:Matrix4.extractPosition]

Matrix4.extractPosition has been renamed to [page:Matrix4.copyPosition].

[page:Matrix4.setRotationFromQuaternion]

Matrix4.setRotationFromQuaternion has been renamed to [page:Matrix4.makeRotationFromQuaternion].

[page:Matrix4.multiplyVector3]

Matrix4.multiplyVector3 has been has been removed. Use vector.applyMatrix4( matrix ) or vector.applyProjection( matrix ) instead.

[page:Matrix4.multiplyVector4]

Matrix4.multiplyVector4 has been removed. Use vector.applyMatrix4( matrix ) instead.

[page:Matrix4.multiplyVector3Array]

Matrix4.multiplyVector3Array has been renamed to [page:Matrix4.applyToVector3Array] (array ).

[page:Matrix4.rotateAxis]

Matrix4.rotateAxis has been removed. Use[page:Matrix4.transformDirection]( matrix ) instead.

[page:Matrix4.crossVector]

Matrix4.crossVector has been removed. Use vector.applyMatrix4( matrix ) instead.

[page:Matrix4.rotateX]

Matrix4.rotateX has been removed.

[page:Matrix4.rotateY]

Matrix4.rotateY has been removed.

[page:Matrix4.rotateZ]

Matrix4.rotateZ has been removed.

[page:Matrix4.rotateByAxis]

Matrix4.rotateByAxis has been removed.

[page:Quaternion.multiplyVector3]

Quaternion.multiplyVector3 has been removed. Use vector.applyQuaternion( quaternion ) instead.

[page:Ray.isIntersectionBox]

Ray.isIntersectionBox has been renamed to [page:Ray.intersectsBox].

[page:Ray.isIntersectionBox]

Ray.isIntersectionPlane has been renamed to [page:Ray.intersectsPlane].

[page:Ray.isIntersectionBox]

Ray.isIntersectionSphere has been renamed to [page:Ray.intersectsSphere].

[page:Vector3.setEulerFromRotationMatrix]

Vector3.setEulerFromRotationMatrix has been removed. Use [page:Euler.setFromRotationMatrix] instead.

[page:Vector3.setEulerFromQuaternion]

Vector3.setEulerFromQuaternion has been removed. Use [page:Euler.setFromQuaternion] instead.

[page:Vector3.getPositionFromMatrix]

Vector3.getPositionFromMatrix has been renamed to [page:Vector3.setFromMatrixPosition].

[page:Vector3.getScaleFromMatrix]

Vector3.getScaleFromMatrix has been renamed to [page:Vector3.setFromMatrixScale].

[page:Vector3.getColumnFromMatrix]

Vector3.getColumnFromMatrix has been renamed to [page:Vector3.setFromMatrixColumn].

[page:Vertex]

Vertex has been removed. Use [page:Vector3] instead.

Materials

[page:Light.onlyShadow]

Light.onlyShadow has been removed.

[page:Light.shadowCameraLeft]

Light.shadowCameraLeft is now [page:Light.shadow.camera.left].

[page:Light.shadowCameraRight]

Light.shadowCameraRight is now [page:Light.shadow.camera.right].

[page:Light.shadowCameraTop]

Light.shadowCameraTop is now [page:Light.shadow.camera.top].

[page:Light.shadowCameraBottom]

Light.shadowCameraBottom is now [page:Light.shadow.camera.bottom].

[page:Light.shadowCameraNear]

Light.shadowCameraNear is now [page:Light.shadow.camera.near].

[page:Light.shadowCameraFar]

Light.shadowCameraFar is now [page:Light.shadow.camera.far].

[page:Light.shadowCameraVisible]

Light.shadowCameraVisible has been removed. Use [page:CameraHelper] ( light.shadow.camera ) instead.

[page:Light.shadowBias]

Light.shadowBias is now [page:Light.shadow.bias].

[page:Light.shadowDarkness]

Light.shadowDarkness has been removed.

[page:Light.shadowMapWidth]

Light.shadowMapWidth is now [page:Light.shadow.mapSize.width].

[page:Light.shadowMapHeight]

Light.shadowMapHeight is now [page:Light.shadow.mapSize.height].

Materials

[page:Material.wrapAround]

Material.wrapAround has been removed.

[page:Material.wrapRGB]

Material.wrapRGB has been removed.

[page:MeshFaceMaterial]

MeshFaceMaterial has been removed. Use [page:MultiMaterial] instead.

[page:MeshPhongMaterial.metal]

MeshPhongMaterial.metal has been removed. Use [page:MeshStandardMaterial] instead.

[page:ParticleBasicMaterial]

ParticleBasicMaterial has been renamed to [page:PointsMaterial].

[page:ParticleSystemMaterial]

ParticleBasicMaterial has been renamed to [page:PointsMaterial].

[page:PointCloudMaterial]

PointCloudMaterial has been renamed to [page:PointsMaterial].

[page:ShaderMaterial.derivatives]

ShaderMaterial.derivatives has been moved to [page:ShaderMaterial.extensions.derivatives].

Objects

[page:LOD.objects]

LOD.objects has been renamed to [page:LOD.levels].

[page:Object3D.eulerOrder]

Object3D.eulerOrder is now [page:Object3D.rotation.order].

[page:Object3D.getChildByName]

Object3D.getChildByName has been renamed to [page:Object3D.getObjectByName].

[page:Object3D.renderDepth]

Object3D.renderDepth has been removed. Use [page:Object3D.renderOrder] instead.

[page:Object3D.translate]

Object3D.translate has been removed. Use [page:Object3D.translateOnAxis]( axis, distance ) instead.

[page:Object3D.useQuaternion]

Object3D.useQuaternion has been removed. The library now uses quaternions by default.

[page:Particle]

ParticleSystem has been renamed to [page:Sprite].

[page:ParticleSystem]

ParticleSystem has been renamed to [page:Points].

[page:PointCloud]

PointCloud has been renamed to [page:Points].

[page:Shape.extrude]

Shape.extrude has been removed. Use [page:ExtrudeGeometry] instead.

[page:Shape.makeGeometry]

Shape.makeGeometry has been removed. Use [page:ShapeGeometry] instead.

Renderer

[page:Projector]

Projector has been moved to [link:https://github.com/mrdoob/three.js/blob/master/examples/js/renderers/Projector.js /examples/js/renderers/Projector.js].

Projector.projectVector() is now [page:Vector.project].

Projector.unprojectVector() is now [page:Vector.unproject].

Projector:.pickingRay() is now [page:Raycaster.setFromCamera].

Textures

[page:ImageUtils]

ImageUtils.loadTexture has been deprecated. Use [page:TextureLoader] instead.

ImageUtils.loadTextureCube has been deprecated. Use [page:CubeTextureLoader] instead.

ImageUtils.loadCompressedTexture has been removed. Use [page:DDSLoader] instead.

ImageUtils.loadCompressedTextureCube has been removed. Use [page:DDSLoader] instead.