Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
2037af0e
T
three.js
项目概览
Ablesons
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2037af0e
编写于
6月 10, 2015
作者:
R
Ricardo Cabello
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #6673 from sukhwant/cameraDoc
Camera Documentation
上级
7b0286b8
2d61fc95
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
83 addition
and
6 deletion
+83
-6
docs/api/cameras/Camera.html
docs/api/cameras/Camera.html
+15
-0
docs/api/cameras/CubeCamera.html
docs/api/cameras/CubeCamera.html
+1
-1
docs/api/cameras/OrthographicCamera.html
docs/api/cameras/OrthographicCamera.html
+30
-1
docs/api/cameras/PerspectiveCamera.html
docs/api/cameras/PerspectiveCamera.html
+23
-2
docs/api/examples/cameras/CombinedCamera.html
docs/api/examples/cameras/CombinedCamera.html
+14
-2
未找到文件。
docs/api/cameras/Camera.html
浏览文件 @
2037af0e
...
...
@@ -34,6 +34,14 @@
<h2>
Methods
</h2>
<h3>
[method:Vector3 getWorldDirection]([page:Vector3 vector])
</h3>
<div>
vector — (optional)
<br
/>
<br
/>
It returns a vector representing the direction in which the camera is looking, in world space.
</div>
<h3>
[method:null lookAt]( [page:Vector3 vector] )
</h3>
<div>
...
...
@@ -41,6 +49,13 @@
<br
/>
This makes the camera look at the vector position in the global space as long as the parent of this camera is the scene or at position (0,0,0).
</div>
<h3>
[method:Camera clone]( [page:Camera camera] )
</h3>
<div>
camera — camera to clone
<br
/>
<br
/>
It returns a clone of camera.
</div>
<h2>
Source
</h2>
...
...
docs/api/cameras/CubeCamera.html
浏览文件 @
2037af0e
...
...
@@ -17,7 +17,7 @@
<div>
[example:webgl_materials_cubemap_dynamic materials / cubemap / dynamic ]
</div>
<div>
[example:webgl_materials_cubemap_dynamic2 materials / cubemap / dynamic2 ]
</div>
<div>
[example:webgl_
materials_cubemap_dynamic2
shading / physical ]
</div>
<div>
[example:webgl_
shading_physical
shading / physical ]
</div>
<code>
//Create cube camera
var cubeCamera = new THREE.CubeCamera( 1, 100000, 128 );
...
...
docs/api/cameras/OrthographicCamera.html
浏览文件 @
2037af0e
...
...
@@ -15,7 +15,21 @@
<h2>
Example
</h2>
<div>
[example:canvas_camera_orthographic camera / orthographic ]
</div>
<div>
[example:canvas_camera_orthographic2 camera / orthographic2 ]
</div>
<div>
[example:webgl_camera camera ]
</div>
<div>
[example:webgl_interactive_cubes_ortho interactive / cubes / ortho ]
</div>
<div>
[example:webgl_materials_cubemap_dynamic materials / cubemap / dynamic ]
</div>
<div>
[example:webgl_materials_normaldisplacementmap materials / normaldisplacementmap ]
</div>
<div>
[example:webgl_postprocessing_advanced postprocessing / advanced ]
</div>
<div>
[example:webgl_postprocessing_dof2 postprocessing / dof2 ]
</div>
<div>
[example:webgl_postprocessing_godrays postprocessing / godrays ]
</div>
<div>
[example:webgl_rtt rtt ]
</div>
<div>
[example:webgl_shaders_tonemapping shaders / tonemapping ]
</div>
<div>
[example:webgl_shadowmap shadowmap ]
</div>
<div>
[example:webgl_terrain_dynamic terrain / dynamic ]
</div>
<code>
var camera = new THREE.OrthographicCamera( width / - 2, width / 2, height / 2, height / - 2, 1, 1000 );
scene.add( camera );
</code>
...
...
@@ -36,6 +50,9 @@ scene.add( camera );</code>
<h2>
Properties
</h2>
<h3>
[property:number zoom]
</h3>
<div>
Gets or sets the zoom factor of the camera.
</div>
<h3>
[property:Float left]
</h3>
<div>
Camera frustum left plane.
</div>
...
...
@@ -61,6 +78,18 @@ scene.add( camera );</code>
<div>
Updates the camera projection matrix. Must be called after change of parameters.
</div>
<h3>
[method:OrthographicCamera clone]()
</h3>
<div>
<br
/>
It returns a clone of OrthographicCamera.
</div>
<h3>
[method:JSON toJSON]()
</h3>
<div>
Return camera data in JSON format.
</div>
<h2>
Source
</h2>
...
...
docs/api/cameras/PerspectiveCamera.html
浏览文件 @
2037af0e
...
...
@@ -15,7 +15,15 @@
<h2>
Example
</h2>
<div>
[example:canvas_effects_stereo effects / stereo ]
</div>
<div>
[example:canvas_geometry_birds geometry / birds ]
</div>
<div>
[example:canvas_geometry_cube geometry / cube ]
</div>
<div>
[example:webgl_animation_skinning_blending animation / skinning / blending ]
</div>
<div>
[example:webgl_animation_skinning_morph animation / skinning / blending ]
</div>
<div>
[example:webgl_interactive_cubes interactive / cubes ]
</div>
<div>
[example:webgl_loader_collada_skinning loader / collada / skinning ]
</div>
<code>
var camera = new THREE.PerspectiveCamera( 45, width / height, 1, 1000 );
scene.add( camera );
</code>
...
...
@@ -33,6 +41,9 @@ scene.add( camera );</code>
<h2>
Properties
</h2>
<h3>
[property:number zoom]
</h3>
<div>
Gets or sets the zoom factor of the camera.
</div>
<h3>
[property:Float fov]
</h3>
<div>
Camera frustum vertical field of view, from bottom to top of view, in degrees.
</div>
...
...
@@ -110,7 +121,17 @@ camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 1, w, h );
<div>
Updates the camera projection matrix. Must be called after change of parameters.
</div>
<h3>
[method:PerspectiveCamera clone]()
</h3>
<div>
<br
/>
It returns a clone of PerspectiveCamera.
</div>
<h3>
[method:JSON toJSON]()
</h3>
<div>
Return camera data in JSON format.
</div>
<h2>
Source
</h2>
...
...
docs/api/examples/cameras/CombinedCamera.html
浏览文件 @
2037af0e
...
...
@@ -16,7 +16,14 @@
Use this only if you do not wish to manage
both an Orthographic and Perspective Camera
</div>
<h2>
Examples
</h2>
<div>
[example:canvas_camera_orthographic2 camera / orthographic2 ]
</div>
<code>
//Create combined camera
camera = new THREE.CombinedCamera( window.innerWidth / 2, window.innerHeight / 2, 70, 1, 1000, - 500, 1000 );
</code>
<h2>
Constructor
</h2>
...
...
@@ -79,6 +86,11 @@
Gets camera frustum far plane.
</div>
<h3>
[property:Matrix4 projectionMatrix]
</h3>
<div>
This is the matrix which contains the projection.
</div>
<h3>
[property:OrthographicCamera cameraO]
</h3>
<div>
Gets or sets the internal OrthographicCamera used as camera.
...
...
@@ -182,6 +194,6 @@
<h2>
Source
</h2>
[link:https://github.com/mrdoob/three.js/blob/master/
src/[path].js src/[path]
.js]
[link:https://github.com/mrdoob/three.js/blob/master/
examples/js/cameras/CombinedCamera.js examples/cameras/CombinedCamera
.js]
</body>
</html>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录