Deprecated API List

As Verge3D 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.

Audio

Audio

Audio.load has been deprecated. Use AudioLoader instead.

AudioAnalyser

AudioAnalyser.getData() has been renamed to AudioAnalyser.getFrequencyData().

BinaryTextureLoader

BinaryTextureLoader has been renamed to DataTextureLoader.

Buffers

BufferAttribute

BufferAttribute.length has been renamed to BufferAttribute.count.

BufferAttribute.copyIndicesArray() has been removed.

DynamicBufferAttribute

DynamicBufferAttribute has been removed. Use BufferAttribute.setUsage(v3d.DynamicDrawUsage) instead.

Int8Attribute

Int8Attribute has been removed. Use Int8BufferAttribute instead.

Uint8Attribute

Uint8Attribute has been removed. Use Uint8BufferAttribute instead.

Uint8ClampedAttribute

Uint8ClampedAttribute has been removed. Use Uint8ClampedBufferAttribute instead.

Int16Attribute

Int16Attribute has been removed. Use Int16BufferAttribute instead.

Uint16Attribute

Uint16Attribute has been removed. Use Uint16BufferAttribute instead.

Int32Attribute

Int32Attribute has been removed. Use Int32BufferAttribute instead.

Uint32Attribute

Uint32Attribute has been removed. Use Uint32BufferAttribute instead.

Float32Attribute

Float32Attribute has been removed. Use Float32BufferAttribute instead.

Float64Attribute

Float64Attribute has been removed. Use Float64BufferAttribute instead.

Cameras

PerspectiveCamera

PerspectiveCamera.setLens() is deprecated. Use PerspectiveCamera.setFocalLength() and PerspectiveCamera.filmGauge() for a photographic setup.

Constants

LineStrip

LinePieces

LinePieces mode is no longer supported for Lines. Create a LineSegments instead.

Core

EventDispatcher

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

Raycaster

Raycaster.params.PointCloud has been renamed to Raycaster.params.Points.

Uniform

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

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

Extras

ClosedSplineCurve3

ClosedSplineCurve3 has been deprecated. Use CatmullRomCurve3 instead.

SplineCurve3

SplineCurve3 has been deprecated. Use CatmullRomCurve3 instead.

BufferGeometry

BufferGeometry.addIndex has been renamed to BufferGeometry.setIndex.

BufferGeometry.addDrawCall is now BufferGeometry.addGroup.

BufferGeometry.clearDrawCalls is now BufferGeometry.clearGroups.

BufferGeometry.computeTangents has been removed.

BufferGeometry.computeOffsets has been removed.

BufferGeometry.drawcalls has been renamed to BufferGeometry.groups.

BufferGeometry.offsets has been renamed to BufferGeometry.groups.

BufferGeometry.applyMatrix() has been renamed to BufferGeometry.applyMatrix4().

CubeGeometry

CubeGeometry has been renamed to BoxGeometry.

Geometry

Geometry.computeTangents() has been removed.

Geometry.computeLineDistances() has been removed. Use Line.computeLineDistances instead.

Geometry.applyMatrix() has been renamed to Geometry.applyMatrix4().

GeometryUtils

GeometryUtils.merge has been moved to Geometry. Use Geometry.merge(geometry2, matrix, materialIndexOffset) instead.

GeometryUtils.center has been moved to Geometry. Use Geometry.center() instead.

Plane

Plane.isIntersectionLine() has been renamed to Plane.intersectsLine().

Helpers

BoundingBoxHelper

BoundingBoxHelper has been deprecated. Use BoxHelper instead.

EdgesHelper

EdgesHelper has been removed. Use EdgesGeometry instead.

GridHelper

GridHelper.setColors() has been deprecated, pass them in the constructor instead.

WireframeHelper

WireframeHelper has been removed. Use WireframeGeometry instead.

Lights

Light

Light.onlyShadow has been removed.

Light.shadowCameraLeft is now Light.shadow.camera.left.

Light.shadowCameraRight is now Light.shadow.camera.right.

Light.shadowCameraTop is now Light.shadow.camera.top.

Light.shadowCameraBottom is now Light.shadow.camera.bottom.

Light.shadowCameraNear is now Light.shadow.camera.near.

Light.shadowCameraFar is now Light.shadow.camera.far.

Light.shadowCameraVisible has been removed. Use CameraHelper (light.shadow.camera) instead.

Light.shadowMapWidth is now Light.shadow.mapSize.width.

Light.shadowMapHeight is now Light.shadow.mapSize.height.

Loaders

XHRLoader

XHRLoader has been renamed to FileLoader.

JSONLoader

JSONLoader has been removed from core.

Math

Box2

Box2.center has been renamed to Box2.getCenter().

Box2.empty has been renamed to Box2.isEmpty().

Box2.isIntersectionBox has been renamed to Box2.intersectsBox().

Box2.size has been renamed to Box2.getSize().

Box3

Box3.center has been renamed to Box3.getCenter().

Box3.empty has been renamed to Box3.isEmpty().

Box3.isIntersectionBox has been renamed to Box3.intersectsBox().

Box3.isIntersectionSphere has been renamed to Box3.intersectsSphere().

Box3.size has been renamed to Box3.getSize().

Face4

Face4 has been removed. Use Face3 instead.

Frustum

Frustum.setFromMatrix() has been renamed to Frustum.setFromProjectionMatrix().

Line3

Line3.center has been renamed to Line3.getCenter().

Math

Math.random16() has been deprecated. Use Math.random() instead.

Matrix3

Matrix3.flattenToArrayOffset() is deprecated. Use Matrix3.toArray() instead.

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

Matrix3.multiplyVector3Array() has been renamed to Matrix3.applyToVector3Array(array).

Matrix3.applyToBufferAttribute() has been removed. Use BufferAttribute.applyMatrix3(matrix) instead.

Matrix3.applyToVector3Array() has been removed.

Matrix4

Matrix4.flattenToArrayOffset() is deprecated. Use Matrix4.toArray() instead.

Matrix4.extractPosition() has been renamed to Matrix4.copyPosition(matrix).

Matrix4.getPosition() has been removed. Use Vector3.setFromMatrixPosition(matrix) instead.

Matrix4.setRotationFromQuaternion() has been renamed to Matrix4.makeRotationFromQuaternion(quaternion).

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

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

Matrix4.multiplyVector3Array() has been renamed to Matrix4.applyToVector3Array (array).

Matrix4.rotateAxis() has been removed. Use Matrix4.transformDirection(matrix) instead.

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

Matrix4.rotateX() has been removed.

Matrix4.rotateY() has been removed.

Matrix4.rotateZ() has been removed.

Matrix4.rotateByAxis() has been removed.

Matrix4.applyToBufferAttribute() has been removed. Use BufferAttribute.applyMatrix4(matrix) instead.

Matrix4.applyToVector3Array() has been removed.

Matrix4.makeFrustum() has been removed. Use Matrix4.makePerspective(left, right, top, bottom, near, far) instead.

Quaternion.multiplyVector3

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

Ray

Ray.isIntersectionBox() has been renamed to Ray.intersectsBox().

Ray.isIntersectionPlane has been renamed to Ray.intersectsPlane.

Ray.isIntersectionSphere has been renamed to Ray.intersectsSphere.

Triangle

Triangle.area() has been renamed to Triangle.getArea().

Triangle.barycoordFromPoint() has been renamed to Triangle.getBarycoord().

Triangle.midpoint() has been renamed to Triangle.getMidpoint().

Triangle.normal() has been renamed to Triangle.getNormal().

Triangle.plane() has been renamed to Triangle.getPlane().

Vector2

Vector2.fromAttribute() has been renamed to Vector2.fromBufferAttribute().

Vector3

Vector3.setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.

Vector3.setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.

Vector3.getPositionFromMatrix() has been renamed to Vector3.setFromMatrixPosition().

Vector3.getScaleFromMatrix() has been renamed to Vector3.setFromMatrixScale().

Vector3.getColumnFromMatrix() has been renamed to Vector3.setFromMatrixColumn().

Vector3.applyProjection() has been removed. Use Vector3.applyMatrix4() instead.

Vector3.fromAttribute() has been renamed to Vector3.fromBufferAttribute().

Vector4

Vector4.fromAttribute() has been renamed to Vector4.fromBufferAttribute().

Vertex

Vertex has been removed. Use Vector3 instead.

Spline

Spline has been removed. Use CatmullRomCurve3 instead.

Materials

Material

Material.wrapAround has been removed.

Material.wrapRGB has been removed.

MeshFaceMaterial

MeshFaceMaterial has been removed. Use an array of materials instead.

MultiMaterial

MultiMaterial has been removed. Use an array of materials instead.

MeshPhongMaterial

MeshPhongMaterial.metal has been removed. Use MeshStandardMaterial instead.

ParticleBasicMaterial

ParticleBasicMaterial has been renamed to PointsMaterial.

ParticleSystemMaterial

ParticleBasicMaterial has been renamed to PointsMaterial.

PointCloudMaterial

PointCloudMaterial has been renamed to PointsMaterial.

ShaderMaterial.derivatives

ShaderMaterial.derivatives has been moved to ShaderMaterial.extensions.derivatives.

Objects

LOD.objects

LOD.objects has been renamed to LOD.levels.

Object3D

Object3D.eulerOrder is now Object3D.rotation.order.

Object3D.getChildByName() has been renamed to Object3D.getObjectByName().

Object3D.renderDepth has been removed. Use Object3D.renderOrder instead.

Object3D.translate() has been removed. Use Object3D.translateOnAxis(axis, distance) instead.

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

Object3D.applyMatrix() has been renamed to Object3D.applyMatrix4().

LensFlare

LensFlare has been moved to /examples/js/objects/Lensflare.js.

Particle

Particle has been renamed to Sprite.

ParticleSystem

ParticleSystem has been renamed to Points.

PointCloud

PointCloud has been renamed to Points.

Shape

Shape.extrude has been removed. Use ExtrudeGeometry instead.

Shape.makeGeometry has been removed. Use ShapeGeometry instead.

SkinnedMesh

SkinnedMesh.initBones() has been removed.

Renderers

CanvasRenderer

CanvasRenderer has been removed.

Projector

Projector has been moved to /examples/js/renderers/Projector.js.

Projector.projectVector() is now Vector.project().

Projector.unprojectVector() is now Vector.unproject().

Projector:.pickingRay() is now Raycaster.setFromCamera().

WebGLProgram

WebGLProgram.uniforms is now WebGLProgram.getUniforms().

WebGLProgram.attributes is now WebGLProgram.getAttributes().

WebGLRenderer

WebGLRenderer.supportsFloatTextures() is now WebGLRenderer.extensions.get('OES_texture_float').

WebGLRenderer.supportsHalfFloatTextures() is now WebGLRenderer.extensions.get('OES_texture_half_float').

WebGLRenderer.supportsStandardDerivatives() is now WebGLRenderer.extensions.get('OES_standard_derivatives').

WebGLRenderer.supportsCompressedTextureS3TC() is now WebGLRenderer.extensions.get('WEBGL_compressed_texture_s3tc').

WebGLRenderer.supportsCompressedTexturePVRTC() is now WebGLRenderer.extensions.get('WEBGL_compressed_texture_pvrtc').

WebGLRenderer.supportsBlendMinMax() is now WebGLRenderer.extensions.get('EXT_blend_minmax').

WebGLRenderer.supportsVertexTextures() is now WebGLRenderer.capabilities.vertexTextures.

WebGLRenderer.supportsInstancedArrays() is now WebGLRenderer.extensions.get('ANGLE_instanced_arrays').

WebGLRenderer.enableScissorTest() is now WebGLRenderer.setScissorTest().

WebGLRenderer.initMaterial() has been removed.

WebGLRenderer.addPrePlugin() has been removed.

WebGLRenderer.addPostPlugin() has been removed.

WebGLRenderer.updateShadowMap() has been removed.

WebGLRenderer.setFaceCulling() has been removed.

WebGLRenderer.setTexture is deprecated, use WebGLRenderer.setTexture2D() instead.

WebGLRenderer.shadowMapEnabled is now WebGLRenderer.shadowMap.enabled.

WebGLRenderer.shadowMapType is now WebGLRenderer.shadowMap.type.

WebGLRenderer.shadowMapCullFace has been removed. Set Material.shadowSide instead.

WebGLRenderer.shadowMap.cullFace has been removed. Set Material.shadowSide instead.

WebGLRenderer.shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.

WebGLRenderer.shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.

WebGLRenderTarget

WebGLRenderTarget.wrapS is now WebGLRenderTarget.texture.wrapS.

WebGLRenderTarget.wrapT is now WebGLRenderTarget.texture.wrapT.

WebGLRenderTarget.magFilter is now WebGLRenderTarget.texture.magFilter.

WebGLRenderTarget.minFilter is now WebGLRenderTarget.texture.minFilter.

WebGLRenderTarget.anisotropy is now WebGLRenderTarget.texture.anisotropy.

WebGLRenderTarget.offset is now WebGLRenderTarget.texture.offset.

WebGLRenderTarget.repeat is now WebGLRenderTarget.texture.repeat.

WebGLRenderTarget.format is now WebGLRenderTarget.texture.format.

WebGLRenderTarget.type is now WebGLRenderTarget.texture.type.

WebGLRenderTarget.generateMipmaps is now WebGLRenderTarget.texture.generateMipmaps.

Textures

ImageUtils

ImageUtils.loadTexture has been deprecated. Use TextureLoader instead.

ImageUtils.loadTextureCube has been deprecated. Use CubeTextureLoader instead.

ImageUtils.loadCompressedTexture has been removed. Use DDSLoader instead.

ImageUtils.loadCompressedTextureCube has been removed. Use DDSLoader instead.

Source

For more info on how to obtain the source code of this module see this page.