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.load has been deprecated. Use AudioLoader instead.
AudioAnalyser.getData() has been renamed to AudioAnalyser.getFrequencyData().
BinaryTextureLoader has been renamed to DataTextureLoader.
BufferAttribute.length has been renamed to BufferAttribute.count.
BufferAttribute.copyIndicesArray() has been removed.
DynamicBufferAttribute has been removed. Use BufferAttribute.setUsage(v3d.DynamicDrawUsage) instead.
Int8Attribute has been removed. Use Int8BufferAttribute instead.
Uint8Attribute has been removed. Use Uint8BufferAttribute instead.
Uint8ClampedAttribute has been removed. Use Uint8ClampedBufferAttribute instead.
Int16Attribute has been removed. Use Int16BufferAttribute instead.
Uint16Attribute has been removed. Use Uint16BufferAttribute instead.
Int32Attribute has been removed. Use Int32BufferAttribute instead.
Uint32Attribute has been removed. Use Uint32BufferAttribute instead.
Float32Attribute has been removed. Use Float32BufferAttribute instead.
Float64Attribute has been removed. Use Float64BufferAttribute instead.
PerspectiveCamera.setLens() is deprecated. Use PerspectiveCamera.setFocalLength() and PerspectiveCamera.filmGauge() for a photographic setup.
LinePieces mode is no longer supported for Lines. Create a LineSegments instead.
EventDispatcher.apply has been removed. Inherit or Object.assign the prototype to mix-in instead.
Raycaster.params.PointCloud has been renamed to Raycaster.params.Points.
Uniform.dynamic has been removed. Use object.onBeforeRender() instead.
Uniform.onUpdate has been removed. Use object.onBeforeRender() instead.
ClosedSplineCurve3 has been deprecated. Use CatmullRomCurve3 instead.
SplineCurve3 has been deprecated. Use CatmullRomCurve3 instead.
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 has been renamed to BoxGeometry.
Geometry.computeTangents() has been removed.
Geometry.computeLineDistances() has been removed. Use Line.computeLineDistances instead.
Geometry.applyMatrix() has been renamed to Geometry.applyMatrix4().
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.isIntersectionLine() has been renamed to Plane.intersectsLine().
BoundingBoxHelper has been deprecated. Use BoxHelper instead.
EdgesHelper has been removed. Use EdgesGeometry instead.
GridHelper.setColors() has been deprecated, pass them in the constructor instead.
WireframeHelper has been removed. Use WireframeGeometry instead.
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.
XHRLoader has been renamed to FileLoader.
JSONLoader has been removed from core.
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.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 has been removed. Use Face3 instead.
Frustum.setFromMatrix() has been renamed to Frustum.setFromProjectionMatrix().
Line3.center has been renamed to Line3.getCenter().
Math.random16() has been deprecated. Use Math.random() instead.
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.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() has been removed. Use vector.applyQuaternion(quaternion) instead.
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.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.fromAttribute() has been renamed to Vector2.fromBufferAttribute().
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.fromAttribute() has been renamed to Vector4.fromBufferAttribute().
Vertex has been removed. Use Vector3 instead.
Spline has been removed. Use CatmullRomCurve3 instead.
Material.wrapAround has been removed.
Material.wrapRGB has been removed.
MeshFaceMaterial has been removed. Use an array of materials instead.
MultiMaterial has been removed. Use an array of materials instead.
MeshPhongMaterial.metal has been removed. Use MeshStandardMaterial instead.
ParticleBasicMaterial has been renamed to PointsMaterial.
ParticleBasicMaterial has been renamed to PointsMaterial.
PointCloudMaterial has been renamed to PointsMaterial.
ShaderMaterial.derivatives has been moved to ShaderMaterial.extensions.derivatives.
LOD.objects has been renamed to LOD.levels.
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 has been moved to /examples/js/objects/Lensflare.js.
Particle has been renamed to Sprite.
ParticleSystem has been renamed to Points.
PointCloud has been renamed to Points.
Shape.extrude has been removed. Use ExtrudeGeometry instead.
Shape.makeGeometry has been removed. Use ShapeGeometry instead.
SkinnedMesh.initBones() has been removed.
CanvasRenderer has been removed.
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.uniforms is now WebGLProgram.getUniforms().
WebGLProgram.attributes is now WebGLProgram.getAttributes().
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.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.
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.
For more info on how to obtain the source code of this module see this page.