Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
c25489bd
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,发现更多精彩内容 >>
提交
c25489bd
编写于
5月 30, 2016
作者:
A
aardgoose
提交者:
Mr.doob
5月 29, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove redundant MorpAnimMesh docs and make two other doc entries alphabetical. (#9031)
上级
e289b412
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
3 addition
and
185 deletion
+3
-185
docs/api/objects/MorphAnimMesh.html
docs/api/objects/MorphAnimMesh.html
+0
-181
docs/list.js
docs/list.js
+3
-4
未找到文件。
docs/api/objects/MorphAnimMesh.html
已删除
100644 → 0
浏览文件 @
e289b412
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
<base
href=
"../../"
/>
<script
src=
"list.js"
></script>
<script
src=
"page.js"
></script>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"page.css"
/>
</head>
<body>
[page:Object3D]
→
<h1>
[name]
</h1>
<div
class=
"desc"
>
Play a sequence of morphs in a smooth animation sequence.
</div>
<h2>
Examples
</h2>
<div>
[example:webgl_lights_hemisphere lights / hemisphere ]
<br/>
[example:webgl_morphtargets_md2 morphtargets / md2 ]
<br/>
[example:webgl_loader_json_blender loader / json / blender ]
</div>
<code>
var meshAnim;
loader.load( "models/animated/flamingo.js", function( geometry ) {
meshAnim = new THREE.MorphAnimMesh( geometry, material );
meshAnim.duration = 1000;
scene.add( meshAnim );
}
function update() {
var delta = clock.getDelta();
meshAnim.updateAnimation( 1000 * delta );
}
</code>
<h2>
Constructor
</h2>
<h3>
[name]( [page:Geometry geometry], [page:Material material] )
</h3>
<div>
geometry — An instance of [page:Geometry].
<br
/>
material — An instance of [page:Material] (optional).
</div>
<h2>
Properties
</h2>
<h3>
[property:Boolean directionBackwards]
</h3>
<div>
Animation is playing backwards
</div>
<h3>
[property:Float direction]
</h3>
<div>
1 if playing forward, -1 if playing backwards
</div>
<h3>
[property:Integer startKeyframe]
</h3>
<div>
The first keyframe (morph) of the sequence
</div>
<h3>
[property:Integer endKeyframe]
</h3>
<div>
The last keyframe (morph) of the sequence
</div>
<h3>
[property:Boolean mirroredLoop]
</h3>
<div>
Loop animation back and forth
</div>
<h3>
[property:Integer lastKeyframe]
</h3>
<div>
The index of the last keyframe played.
</div>
<h3>
[property:Integer currentKeyframe]
</h3>
<div>
The index of the current frame being played.
</div>
<h3>
[property:Integer length]
</h3>
<div>
The number of frames (morphs)
</div>
<h3>
[property:Float time]
</h3>
<div>
The current playback position of the animation in milliseconds.
</div>
<h3>
[property:Float duration]
</h3>
<div>
The length of the animation in milliseconds.
</div>
<h2>
Methods
</h2>
<h3>
[method:null setDirectionForward]()
</h3>
<div>
Sets the animation to play forwards
</div>
<h3>
[method:null setDirectionBackward]()
</h3>
<div>
Set the animation to play backwards.
</div>
<h3>
[method:null playAnimation]( [page:String label], [page:Float fps] )
</h3>
<div>
label -- The label of the animation
<br
/>
fps -- The frames per second (in seconds)
</div>
<div>
Starts playing a labeled animation. Animations are defined by calling [page:MorphAnimMesh.parseAnimations parseAnimations].
</div>
<h3>
[method:null setFrameRange]( [page:Integer start], [page:Integer end] )
</h3>
<div>
start -- The starting frame (morph) index
<br
/>
end -- The ending frame (morph) index
</div>
<div>
Sets the range of morphs to be played
</div>
<h3>
[method:null parseAnimations]()
</h3>
<div>
Goes through the geometry's morphTargets and generates animations based on the morphTargets' names (morph.name). Names
are of the form "walk_01", "walk_02", "walk_03", etc or "run001", "run002", "run003". The animation label is then
the part before the underscore and number, so "walk" or "run" in the examples.
<br/><br/>
This function changes the underlying geometry object by adding the animations property to it. This property
is set to an object of key/pair values, with the key being the label and the value being an object with
a start and end property that represents the frame index.
</div>
<h3>
[method:null updateAnimation]( [page:Float delta] )
</h3>
<div>
delta -- The change in time in milliseconds
</div>
<div>
Update the morphTargetInfluences array on the MorphAnimMesh.
</div>
<h3>
[method:null setAnimationLabel]( [page:String label], [page:Integer start], [page:Integer end] )
</h3>
<div>
label -- The name of the animation
<br
/>
start -- The starting frame index
<br
/>
end -- The ending frame index
</div>
<div>
Defines an animation. Sets the geometry.animations[label] to be an object with the start and end properties.
</div>
<h3>
[method:Object3D clone]( [page:Object3D object] )
</h3>
<div>
object -- (optional) Object3D which needs to be cloned. If undefined, clone method will create a new cloned MorphAnimMesh Object.
</div>
<div>
Clone a MorphAnimMesh Object.
</div>
<h2>
Source
</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>
docs/list.js
浏览文件 @
c25489bd
...
...
@@ -114,10 +114,9 @@ var list = {
[
"
LineSegments
"
,
"
api/objects/LineSegments
"
],
[
"
LOD
"
,
"
api/objects/LOD
"
],
[
"
Mesh
"
,
"
api/objects/Mesh
"
],
[
"
MorphAnimMesh
"
,
"
api/objects/MorphAnimMesh
"
],
[
"
Points
"
,
"
api/objects/Points
"
],
[
"
SkinnedMesh
"
,
"
api/objects/SkinnedMesh
"
],
[
"
Skeleton
"
,
"
api/objects/Skeleton
"
],
[
"
SkinnedMesh
"
,
"
api/objects/SkinnedMesh
"
],
[
"
Sprite
"
,
"
api/objects/Sprite
"
]
],
...
...
@@ -196,10 +195,10 @@ var list = {
[
"
BoxGeometry
"
,
"
api/extras/geometries/BoxGeometry
"
],
[
"
CircleBufferGeometry
"
,
"
api/extras/geometries/CircleBufferGeometry
"
],
[
"
CircleGeometry
"
,
"
api/extras/geometries/CircleGeometry
"
],
[
"
CylinderBufferGeometry
"
,
"
api/extras/geometries/CylinderBufferGeometry
"
],
[
"
CylinderGeometry
"
,
"
api/extras/geometries/CylinderGeometry
"
],
[
"
ConeBufferGeometry
"
,
"
api/extras/geometries/ConeBufferGeometry
"
],
[
"
ConeGeometry
"
,
"
api/extras/geometries/ConeGeometry
"
],
[
"
CylinderBufferGeometry
"
,
"
api/extras/geometries/CylinderBufferGeometry
"
],
[
"
CylinderGeometry
"
,
"
api/extras/geometries/CylinderGeometry
"
],
[
"
DodecahedronGeometry
"
,
"
api/extras/geometries/DodecahedronGeometry
"
],
[
"
ExtrudeGeometry
"
,
"
api/extras/geometries/ExtrudeGeometry
"
],
[
"
IcosahedronGeometry
"
,
"
api/extras/geometries/IcosahedronGeometry
"
],
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录