DeprecatedList.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>Deprecated API List</h1>
  12. <div>
  13. As Three.js has a rapidly evolving interface, you may come across examples that
  14. suggest the use of API elements that are no longer part of the core.<br /><br />
  15. Below is a list of such elements, along with info regarding their replacements.
  16. </div>
  17. <h2>Buffers</h2>
  18. <h3>[page:BufferAttribute.length]</h3>
  19. <div>BufferAttribute.length has been renamed to [page:BufferAttribute.count].</div>
  20. <h3>[page:DynamicBufferAttribute]</h3>
  21. <div>DynamicBufferAttribute has been removed. Use [page:BufferAttribute.setDynamic]( true ) instead.</div>
  22. <h3>[page:Int8Attribute]</h3>
  23. <div>Int8Attribute has been removed. Use [page:BufferAttributeTypes Int8BufferAttribute] instead.</div>
  24. <h3>[page:Uint8Attribute]</h3>
  25. <div>Uint8Attribute has been removed. Use [page:BufferAttributeTypes Uint8BufferAttribute] instead.</div>
  26. <h3>[page:Uint8ClampedAttribute]</h3>
  27. <div>Uint8ClampedAttribute has been removed. Use [page:BufferAttributeTypes Uint8ClampedBufferAttribute] instead.</div>
  28. <h3>[page:Int16Attribute]</h3>
  29. <div>Int16Attribute has been removed. Use [page:BufferAttributeTypes Int16BufferAttribute] instead.</div>
  30. <h3>[page:Uint16Attribute]</h3>
  31. <div>Uint16Attribute has been removed. Use [page:BufferAttributeTypes Uint16BufferAttribute] instead.</div>
  32. <h3>[page:Int32Attribute]</h3>
  33. <div>Int32Attribute has been removed. Use [page:BufferAttributeTypes Int32BufferAttribute] instead.</div>
  34. <h3>[page:Uint32Attribute]</h3>
  35. <div>Uint32Attribute has been removed. Use [page:BufferAttributeTypes Uint32BufferAttribute] instead.</div>
  36. <h3>[page:Float32Attribute]</h3>
  37. <div>Float32Attribute has been removed. Use [page:BufferAttributeTypes Float32BufferAttribute] instead.</div>
  38. <h3>[page:Float64Attribute]</h3>
  39. <div>Float64Attribute has been removed. Use [page:BufferAttributeTypes Float64BufferAttribute] instead.</div>
  40. <h2>Cameras</h2>
  41. <h3>[page:PerspectiveCamera.setLens]</h3>
  42. <div>
  43. PerspectiveCamera.setLens is deprecated. Use [page:PerspectiveCamera.setFocalLength]
  44. and [page:PerspectiveCamera.filmGauge] for a photographic setup.
  45. </div>
  46. <h2>Constants</h2>
  47. <h3>[page:LineStrip]</h3>
  48. <h3>[page:LinePieces]</h3>
  49. <div>
  50. LinePieces mode is no longer supported for [page:Line]s. Create a [page:LineSegments] instead.
  51. </div>
  52. <h2>Core</h2>
  53. <h3>[page:EventDispatcher.apply]</h3>
  54. <div>EventDispatcher.apply has been has been removed. Inherit or Object.assign the prototype to mix-in instead.</div>
  55. <h3>[page:Uniform.dynamic]</h3>
  56. <div>Uniform.dynamic has been has been removed. Use object.onBeforeRender() instead.</div>
  57. <h3>[page:Uniform.onUpdate]</h3>
  58. <div>Uniform.onUpdate has been has been removed. Use object.onBeforeRender() instead.</div>
  59. <h2>Geometry</h2>
  60. <h3>[page:BufferGeometry.addIndex]</h3>
  61. <div>BufferGeometry.addIndex has been renamed to [page:BufferGeometry.setIndex].</div>
  62. <h3>[page:BufferGeometry.addDrawCall]</h3>
  63. <div>BufferGeometry.addDrawCall is now [page:BufferGeometry.addGroup].</div>
  64. <h3>[page:BufferGeometry.clearDrawCalls]</h3>
  65. <div>BufferGeometry.clearDrawCalls is now [page:BufferGeometry.clearGroups].</div>
  66. <h3>[page:BufferGeometry.computeTangents]</h3>
  67. <div>BufferGeometry.computeTangents has been removed.</div>
  68. <h3>[page:BufferGeometry.computeOffsets]</h3>
  69. <div>BufferGeometry.computeOffsets has been removed.</div>
  70. <h3>[page:BufferGeometry.drawcalls]</h3>
  71. <div>BufferGeometry.drawcalls has been renamed to [page:BufferGeometry.groups].</div>
  72. <h3>[page:BufferGeometry.offsets]</h3>
  73. <div>BufferGeometry.offsets has been renamed to [page:BufferGeometry.groups].</div>
  74. <h3>[page:CubeGeometry]</h3>
  75. <div>CubeGeometry has been renamed to [page:BoxGeometry].</div>
  76. <h3>[page:GeometryUtils]</h3>
  77. <div>
  78. GeometryUtils.merge has been moved to [page:Geometry.merge].<br /><br />
  79. GeometryUtils.center has been moved to [page:Geometry.center].
  80. </div>
  81. <h3>[page:Plane]</h3>
  82. <div>
  83. [page:Plane.isIntersectionLine]() has been renamed to [page:Plane.intersectsLine]().
  84. </div>
  85. <h2>Helpers</h2>
  86. <h3>[page:EdgesHelper]</h3>
  87. <div>EdgesHelper has been removed. Use [page:EdgesGeometry] instead.</div>
  88. <h3>[page:WireframeHelper WireframeHelper]</h3>
  89. <div>WireframeHelper has been removed. Use [page:WireframeGeometry] instead.</div>
  90. <h2>Loaders</h2>
  91. <h3>[page:XHRLoader]</h3>
  92. <div>XHRLoader has been renamed to [page:FileLoader].</div>
  93. <h2>Maths</h2>
  94. <h3>[page:Box2.center]</h3>
  95. <div>Box2.center has been renamed to [page:Box2.getCenter]().</div>
  96. <h3>[page:Box2.empty]</h3>
  97. <div>Box2.empty has been renamed to [page:Box2.isEmpty]().</div>
  98. <h3>[page:Box2.isIntersectionBox]</h3>
  99. <div>Box2.isIntersectionBox has been renamed to [page:Box2.intersectsBox]().</div>
  100. <h3>[page:Box2.size]</h3>
  101. <div>Box2.size has been renamed to [page:Box2.getSize]().</div>
  102. <h3>[page:Box3.center]</h3>
  103. <div>Box3.center has been renamed to [page:Box3.getCenter]().</div>
  104. <h3>[page:Box3.empty]</h3>
  105. <div>Box3.empty has been renamed to [page:Box3.isEmpty]().</div>
  106. <h3>[page:Box3.isIntersectionBox]</h3>
  107. <div>Box3.isIntersectionBox has been renamed to [page:Box3.intersectsBox]().</div>
  108. <h3>[page:Box3.isIntersectionSphere]</h3>
  109. <div>Box3.isIntersectionBox has been renamed to [page:Box3.intersectsSphere]().</div>
  110. <h3>[page:Box3.size]</h3>
  111. <div>Box3.size has been renamed to [page:Box3.getSize]().</div>
  112. <h3>[page:Face4]</h3>
  113. <div>Face4 has been removed. Use [page:Face3] instead.</div>
  114. <h3>[page:Line3.center]</h3>
  115. <div>Line3.center has been renamed to [page:Line3.getCenter]().</div>
  116. <h3>[page:Matrix3.multiplyVector3]</h3>
  117. <div>Matrix3.multiplyVector3 has been removed. Use vector.applyMatrix3( matrix ) instead.<div>
  118. <h3>[page:Matrix3.multiplyVector3Array]</h3>
  119. <div>Matrix3.multiplyVector3Array has been renamed to [page:Matrix3.applyToVector3Array]( array ).</div>
  120. <h3>[page:Matrix4.extractPosition]</h3>
  121. <div>Matrix4.extractPosition has been renamed to [page:Matrix4.copyPosition].</div>
  122. <h3>[page:Matrix4.setRotationFromQuaternion]</h3>
  123. <div>Matrix4.setRotationFromQuaternion has been renamed to [page:Matrix4.makeRotationFromQuaternion].</div>
  124. <h3>[page:Matrix4.multiplyVector3]</h3>
  125. <div>Matrix4.multiplyVector3 has been has been removed. Use vector.applyMatrix4( matrix ) or vector.applyProjection( matrix ) instead.</div>
  126. <h3>[page:Matrix4.multiplyVector4]</h3>
  127. <div>Matrix4.multiplyVector4 has been removed. Use vector.applyMatrix4( matrix ) instead.</div>
  128. <h3>[page:Matrix4.multiplyVector3Array]</h3>
  129. <div>Matrix4.multiplyVector3Array has been renamed to [page:Matrix4.applyToVector3Array] (array ).</div>
  130. <h3>[page:Matrix4.rotateAxis]</h3>
  131. <div>Matrix4.rotateAxis has been removed. Use[page:Matrix4.transformDirection]( matrix ) instead.</div>
  132. <h3>[page:Matrix4.crossVector]</h3>
  133. <div>Matrix4.crossVector has been removed. Use vector.applyMatrix4( matrix ) instead.</div>
  134. <h3>[page:Matrix4.rotateX]</h3>
  135. <div>Matrix4.rotateX has been removed.</div>
  136. <h3>[page:Matrix4.rotateY]</h3>
  137. <div>Matrix4.rotateY has been removed.</div>
  138. <h3>[page:Matrix4.rotateZ]</h3>
  139. <div>Matrix4.rotateZ has been removed.</div>
  140. <h3>[page:Matrix4.rotateByAxis]</h3>
  141. <div>Matrix4.rotateByAxis has been removed.</div>
  142. <h3>[page:Quaternion.multiplyVector3]</h3>
  143. <div>Quaternion.multiplyVector3 has been removed. Use vector.applyQuaternion( quaternion ) instead.</div>
  144. <h3>[page:Ray.isIntersectionBox]</h3>
  145. <div>Ray.isIntersectionBox has been renamed to [page:Ray.intersectsBox].</div>
  146. <h3>[page:Ray.isIntersectionBox]</h3>
  147. <div>Ray.isIntersectionPlane has been renamed to [page:Ray.intersectsPlane].</div>
  148. <h3>[page:Ray.isIntersectionBox]</h3>
  149. <div>Ray.isIntersectionSphere has been renamed to [page:Ray.intersectsSphere].</div>
  150. <h3>[page:Vector3.setEulerFromRotationMatrix]</h3>
  151. <div>Vector3.setEulerFromRotationMatrix has been removed. Use [page:Euler.setFromRotationMatrix] instead.</div>
  152. <h3>[page:Vector3.setEulerFromQuaternion]</h3>
  153. <div>Vector3.setEulerFromQuaternion has been removed. Use [page:Euler.setFromQuaternion] instead.</div>
  154. <h3>[page:Vector3.getPositionFromMatrix]</h3>
  155. <div>Vector3.getPositionFromMatrix has been renamed to [page:Vector3.setFromMatrixPosition].</div>
  156. <h3>[page:Vector3.getScaleFromMatrix]</h3>
  157. <div>Vector3.getScaleFromMatrix has been renamed to [page:Vector3.setFromMatrixScale].</div>
  158. <h3>[page:Vector3.getColumnFromMatrix]</h3>
  159. <div>Vector3.getColumnFromMatrix has been renamed to [page:Vector3.setFromMatrixColumn].</div>
  160. <h3>[page:Vertex]</h3>
  161. <div>Vertex has been removed. Use [page:Vector3] instead.</div>
  162. <h2>Materials</h2>
  163. <h3>[page:Light.onlyShadow]</h3>
  164. <div>Light.onlyShadow has been removed.</div>
  165. <h3>[page:Light.shadowCameraLeft]</h3>
  166. <div>Light.shadowCameraLeft is now [page:Light.shadow.camera.left].</div>
  167. <h3>[page:Light.shadowCameraRight]</h3>
  168. <div>Light.shadowCameraRight is now [page:Light.shadow.camera.right].</div>
  169. <h3>[page:Light.shadowCameraTop]</h3>
  170. <div>Light.shadowCameraTop is now [page:Light.shadow.camera.top].</div>
  171. <h3>[page:Light.shadowCameraBottom]</h3>
  172. <div>Light.shadowCameraBottom is now [page:Light.shadow.camera.bottom].</div>
  173. <h3>[page:Light.shadowCameraNear]</h3>
  174. <div>Light.shadowCameraNear is now [page:Light.shadow.camera.near].</div>
  175. <h3>[page:Light.shadowCameraFar]</h3>
  176. <div>Light.shadowCameraFar is now [page:Light.shadow.camera.far].</div>
  177. <h3>[page:Light.shadowCameraVisible]</h3>
  178. <div>Light.shadowCameraVisible has been removed. Use [page:CameraHelper] ( light.shadow.camera ) instead.</div>
  179. <h3>[page:Light.shadowBias]</h3>
  180. <div>Light.shadowBias is now [page:Light.shadow.bias].</div>
  181. <h3>[page:Light.shadowDarkness]</h3>
  182. <div>Light.shadowDarkness has been removed.</div>
  183. <h3>[page:Light.shadowMapWidth]</h3>
  184. <div>Light.shadowMapWidth is now [page:Light.shadow.mapSize.width].</div>
  185. <h3>[page:Light.shadowMapHeight]</h3>
  186. <div>Light.shadowMapHeight is now [page:Light.shadow.mapSize.height].</div>
  187. <h2>Materials</h2>
  188. <h3>[page:Material.wrapAround]</h3>
  189. <div>Material.wrapAround has been removed.</div>
  190. <h3>[page:Material.wrapRGB]</h3>
  191. <div>Material.wrapRGB has been removed.</div>
  192. <h3>[page:MeshFaceMaterial]</h3>
  193. <div>MeshFaceMaterial has been removed. Use [page:MultiMaterial] instead.</div>
  194. <h3>[page:MeshPhongMaterial.metal]</h3>
  195. <div>MeshPhongMaterial.metal has been removed. Use [page:MeshStandardMaterial] instead.</div>
  196. <h3>[page:ParticleBasicMaterial]</h3>
  197. <div>ParticleBasicMaterial has been renamed to [page:PointsMaterial].</div>
  198. <h3>[page:ParticleSystemMaterial]</h3>
  199. <div>ParticleBasicMaterial has been renamed to [page:PointsMaterial].</div>
  200. <h3>[page:PointCloudMaterial]</h3>
  201. <div>PointCloudMaterial has been renamed to [page:PointsMaterial].</div>
  202. <h3>[page:ShaderMaterial.derivatives]</h3>
  203. <div>ShaderMaterial.derivatives has been moved to [page:ShaderMaterial.extensions.derivatives].</div>
  204. <h2>Objects</h2>
  205. <h3>[page:LOD.objects]</h3>
  206. <div>LOD.objects has been renamed to [page:LOD.levels].</div>
  207. <h3>[page:Object3D.eulerOrder]</h3>
  208. <div>Object3D.eulerOrder is now [page:Object3D.rotation.order].</div>
  209. <h3>[page:Object3D.getChildByName]</h3>
  210. <div>Object3D.getChildByName has been renamed to [page:Object3D.getObjectByName].</div>
  211. <h3>[page:Object3D.renderDepth]</h3>
  212. <div>Object3D.renderDepth has been removed. Use [page:Object3D.renderOrder] instead.</div>
  213. <h3>[page:Object3D.translate]</h3>
  214. <div>Object3D.translate has been removed. Use [page:Object3D.translateOnAxis]( axis, distance ) instead.</div>
  215. <h3>[page:Object3D.useQuaternion]</h3>
  216. <div>Object3D.useQuaternion has been removed. The library now uses quaternions by default.</div>
  217. <h3>[page:Particle]</h3>
  218. <div>ParticleSystem has been renamed to [page:Sprite].</div>
  219. <h3>[page:ParticleSystem]</h3>
  220. <div>ParticleSystem has been renamed to [page:Points].</div>
  221. <h3>[page:PointCloud]</h3>
  222. <div>PointCloud has been renamed to [page:Points].</div>
  223. <h3>[page:Shape.extrude]</h3>
  224. <div>Shape.extrude has been removed. Use [page:ExtrudeGeometry] instead.</div>
  225. <h3>[page:Shape.makeGeometry]</h3>
  226. <div>Shape.makeGeometry has been removed. Use [page:ShapeGeometry] instead.</div>
  227. <h2>Renderer</h2>
  228. <h3>[page:Projector]</h3>
  229. <div>
  230. Projector has been moved to
  231. [link:https://github.com/mrdoob/three.js/blob/master/examples/js/renderers/Projector.js /examples/js/renderers/Projector.js].<br /><br />
  232. Projector.projectVector() is now [page:Vector.project].<br /><br />
  233. Projector.unprojectVector() is now [page:Vector.unproject].<br /><br />
  234. Projector:.pickingRay() is now [page:Raycaster.setFromCamera].
  235. </div>
  236. <h2>Textures</h2>
  237. <h3>[page:ImageUtils]</h3>
  238. <div>
  239. ImageUtils.loadTexture has been deprecated. Use [page:TextureLoader] instead.<br /><br />
  240. ImageUtils.loadTextureCube has been deprecated. Use [page:CubeTextureLoader] instead.<br /><br />
  241. ImageUtils.loadCompressedTexture has been removed. Use [page:DDSLoader] instead.<br /><br />
  242. ImageUtils.loadCompressedTextureCube has been removed. Use [page:DDSLoader] instead.
  243. </div>
  244. </body>
  245. </html>