Three.js中文文檔
今天閒着沒事,準備翻譯一下three.js官方文檔的英文目錄。
threejs英文文檔地址
動畫對象Animation
編輯、解析播放幀動畫。
- 動作AnimationAction
- 剪輯AnimationClip
- 混合器AnimationMixer
- 動畫對象組AnimationObjectGroup
- 動畫工具AnimationUtils
- 關鍵幀KeyframeTrack
- 屬性綁定PropertyBinding
- 屬性混合器PropertyMixer
動畫幀數據 Animation / Tracks
以下API是關鍵幀對象KeyframeTrack的擴展,KeyframeTrack是它們的基類
- 布爾類型關鍵幀BooleanKeyframeTrack
- 顏色類型關鍵幀ColorKeyframeTrack
- 數字類型關鍵幀NumberKeyframeTrack
- 四元數類型關鍵幀QuaternionKeyframeTrack
- 字符串類型關鍵幀StringKeyframeTrack
- 向量類型關鍵幀VectorKeyframeTrack
音頻對象Audio
- 音頻Audio
- 音頻分析器AudioAnalyser
- 音頻上下文AudioContext
- 音頻虛擬監聽者AudioListener
- 位置類型音頻PositionalAudi
相機對象Cameras
各種相機對象API,Camera是其他對象的基類,相機對象包含投影矩陣、視圖矩陣等信息
- 數組相機ArrayCamera
- 相機對象Camera
- 立方體相機CubeCamera
- 正投影相機OrthographicCamera
- 透視投影相機PerspectiveCamera
- 立體相機StereoCamerao
常量Constants
一些對象API屬性的屬性值
- 動畫Animation
- 核心Core
- 自定義混合方程CustomBlendingEquation
- 繪製模式DrawModes
- 材質Materials
- 渲染器Renderer
- 紋理Textures
核心Core
threejs的核心模塊API
- 緩衝屬性BufferAttribute
- 緩衝類型幾何體BufferGeometry
- 時鐘Clock
- 直接幾何體DirectGeometry
- 事件調度EventDispatcher
- 三角形Face3
- 幾何體Geometry
- 實例化緩衝屬性InstancedBufferAttribute
-實例化緩衝幾何體 InstancedBufferGeometry - 實例化交錯緩衝對象InstancedInterleavedBuffer
- 實例化緩衝對象InterleavedBuffer
- 實例化緩衝屬性InterleavedBufferAttribute
- 圖層Layers
- 對象Object3D
- 射線Raycaster :碰撞檢測
- 統一Uniform:向頂點、片元着色器傳遞數據
擴展/核心Extras / Core
- 曲線Curve
- 曲線路徑CurvePath
- 字體Font
- 插值Interpolations
- 路徑Path
- 形狀Shape
- 形狀路徑ShapePath
擴展/對象Extras / Objects
- 立即渲染對象ImmediateRenderObject
幾何體Geometries
常見幾何體的API,基類是核心模塊Core中的Geometry或BufferGeometry。
含有Buffer字符串的API是緩衝類型結合體,它們的基類是BufferGeometry,不含有buffer的幾何體API基類是Geometry。
- 緩衝類立方體BoxBufferGeometry
- 立方體BoxGeometry
- CircleBufferGeometry
- 圓形平面幾何體CircleGeometry
- ConeBufferGeometry
- 錐幾何體ConeGeometry
- CylinderBufferGeometry
- 圓柱體CylinderGeometry
- DodecahedronBufferGeometry
- 正十二面體DodecahedronGeometry
- 邊幾何體EdgesGeometry
- ExtrudeBufferGeometry
- 拉伸掃描幾何體ExtrudeGeometry
- IcosahedronBufferGeometry
- 正二十面體IcosahedronGeometry
- LatheBufferGeometry
- 旋轉造型LatheGeometry
- OctahedronBufferGeometry
- 正八面體OctahedronGeometry
- ParametricBufferGeometry
- 參數幾何體ParametricGeometry
- PlaneBufferGeometry
- 矩形平面幾何體PlaneGeometry
- PolyhedronBufferGeometry
- 多面體PolyhedronGeometry
- RingBufferGeometry
- 平面圓環RingGeometry
- ShapeBufferGeometry
- 平面輪廓ShapeGeometry
- SphereBufferGeometry
- 球體SphereGeometry
- TetrahedronBufferGeometry
- 正四面體TetrahedronGeometry
- TextBufferGeometry
- 文本集合體TextGeometry
- TorusBufferGeometry
- 圓環TorusGeometry
- TorusKnotBufferGeometry
- 環面紐結TorusKnotGeometry
- TubeBufferGeometry
- 管道成型TubeGeometry
- 線框圖WireframeGeometry
輔助模型對象Helpers
使用線框模型可視化表示一些信息。
- 箭頭ArrowHelper
- 三維座標系AxesHelper
- 平面盒子BoxHelper
- 立體盒子Box3Helper
-相機對象 CameraHelper - 方向光DirectionalLightHelper
- 面法向量FaceNormalsHelper
- 網格GridHelper
- 極座標網格PolarGridHelper
- 平面PlaneHelper
- 點光源PointLightHelper
- 矩形區域光源RectAreaLightHelper
- 骨骼系統SkeletonHelper
- 聚光源SpotLightHelper
- 頂點法向量VertexNormalsHelper
光源對象Lights
threejs渲染器渲染的時候會計算光源與物體表面的效果,光源對象Light是其他光源對象的基類。
- 環境光AmbientLight
- 方向光DirectionalLight
- 半球光HemisphereLight
- 光源對象基類Light
- 點光源PointLight
- 區域光源RectAreaLight
- 聚光源SpotLight
光源/陰影Lights / Shadows
LightShadow是DirectionalLightShadow和SpotLightShadow的基類
- 方向光陰影DirectionalLightShadow
- 光源陰影 LightShadow
- 聚光源陰影SpotLightShadow
加載器Loaders
- 動畫加載器AnimationLoader
- 音頻加載器AudioLoader
- 緩衝類型幾何體加載器BufferGeometryLoader
- 緩存Cache
- 壓縮紋理加載器CompressedTextureLoader
- 立方體紋理加載器CubeTextureLoader
- 數據文理加載器DataTextureLoader
- 文件加載器FileLoader
- 字體加載器FontLoader
- 位圖加載器ImageBitmapLoader
- 圖形加載器ImageLoader
- JSON文件加載器JSONLoader
- 加載器Loader
- 加載器工具LoaderUtils
- 材質加載器MaterialLoader
- 對象加載器ObjectLoader
- 紋理加載器TextureLoader
加載器/管理器 Loaders / Managers
可以獲得加載進度,判斷加載完成、加載錯誤。
- 默認加載管理器DefaultLoadingManager
- 加載管理器LoadingManager
材質 Materials
下面API是材質對象,Material是其他材質對象的基類。
每種材質對應一類模型,材質有點材質、線材質、網格材質、精靈材質,分對應點模型、線模型、網格模型、精靈模型。
- 基礎線材質LineBasicMaterial
- 基礎虛線材質LineDashedMaterial
- 材質對象Material
- 網格基礎材質MeshBasicMaterial
- 網格深度材質MeshDepthMaterial
- 蘭伯特網格材質MeshLambertMaterial
- 法線網格材質MeshNormalMaterial
- 高光網格材質MeshPhongMaterial
- 物理網格材質MeshPhysicalMaterial
- 網格標準材質MeshStandardMaterial
- 網格卡通材質MeshToonMaterial
- 點材質PointsMaterial
- 原始着色器材質RawShaderMaterial
- 着色器材質ShaderMaterial
- 陰影材質ShadowMaterial
- 精靈材質SpriteMaterial
數學模塊Math
數學模塊的API用於3D應用中的數學計算。
- 矩形區域Box2
- 長方體盒子Box3
- 顏色對象Color
- 圓柱Cylindrical
- 歐拉Euler
- 截錐體Frustum
- 插值Interpolant
- 線Line3
- 數學Math
- 3x3矩陣Matrix3
- 4x4矩陣Matrix4
- 平面Plane
- 四元數Quaternion
- 射線Ray
- 球Sphere
- 球形Spherical
- 三角形Triangle
- 二維向量Vector2
- 三維向量Vector3
- 四維向量Vector4
數學/插值Math / Interpolants
- 立方插值CubicInterpolant
- 離散插值DiscreteInterpolant
- 線性插值LinearInterpolant
- 四元數線性插值QuaternionLinearInterpolant
對象Objects
- 骨頭Bone
- 組Group
- 線模型Line
- Loop類型線模型LineLoop
- Segments類型線模型LineSegments
- 細節層次模型LOD
- 網格模型Mesh
- 點模型Points
- 骨骼系統Skeleton
- 骨骼網格模型SkinnedMesh
- 精靈模型Sprite
渲染器Renderers
相機和場景作爲渲染器的參數渲染出效果。
- WebGL渲染器WebGLRenderer
- WebGl渲染目標WebGLRenderTarget
- WebGL立方體渲染目標WebGLRenderTargetCube
渲染器/着色器Renderers / Shaders
- 着色器塊ShaderChunk
- 着色器庫ShaderLib
- 統一庫UniformsLib
- 統一工具UniformsUtils
場景Scenes
場景包含模型對象和光源對象。
- 霧Fog
- 指數霧FogExp2
- 場景Scene
紋理Textures
紋理對象Texture是其他紋理對象的基類。
- canvas紋理CanvasTexture
- 壓縮紋理CompressedTexture
- 立方體紋理CubeTexture
- 數據紋理DataTexture
- 深度紋理DepthTexture
- 紋理Texture
- 視頻紋理VideoTexture