Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
c0d14df4
T
three.js
项目概览
车家大少爷
/
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,发现更多精彩内容 >>
提交
c0d14df4
编写于
10月 30, 2010
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
* Fixed examples that were still using scene.add()
上级
6f51ce7e
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
25 addition
and
25 deletion
+25
-25
examples/camera_free.html
examples/camera_free.html
+2
-2
examples/lights_test.html
examples/lights_test.html
+3
-3
examples/materials_test.html
examples/materials_test.html
+5
-5
examples/obj_convert_test.html
examples/obj_convert_test.html
+6
-6
examples/shader_test.html
examples/shader_test.html
+2
-2
examples/test.html
examples/test.html
+7
-7
未找到文件。
examples/camera_free.html
浏览文件 @
c0d14df4
...
...
@@ -123,7 +123,7 @@
plane
=
new
THREE
.
Mesh
(
new
Plane
(
1000
,
1000
,
10
,
10
),
new
THREE
.
MeshColorStrokeMaterial
(
0x000000
,
0.5
,
1
)
);
plane
.
rotation
.
x
=
-
90
*
(
Math
.
PI
/
180
);
plane
.
doubleSided
=
true
;
scene
.
add
(
plane
);
scene
.
add
Object
(
plane
);
// Spheres
...
...
@@ -144,7 +144,7 @@
cube
.
scale
.
x
=
cube
.
scale
.
y
=
cube
.
scale
.
z
=
Math
.
random
()
+
0.5
;
scene
.
add
(
cube
);
scene
.
add
Object
(
cube
);
}
...
...
examples/lights_test.html
浏览文件 @
c0d14df4
...
...
@@ -154,7 +154,7 @@
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
0.25
*
(
Math
.
random
()
+
0.5
);
mesh
.
overdraw
=
true
;
mesh
.
updateMatrix
();
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
}
...
...
@@ -182,7 +182,7 @@
lightMesh
.
position
=
pointLight
.
position
;
lightMesh
.
overdraw
=
true
;
lightMesh
.
updateMatrix
();
scene
.
add
(
lightMesh
);
scene
.
add
Object
(
lightMesh
);
if
(
render_canvas
)
{
...
...
@@ -223,7 +223,7 @@
zmesh
.
scale
.
x
=
zmesh
.
scale
.
y
=
zmesh
.
scale
.
z
=
100
;
zmesh
.
overdraw
=
true
;
zmesh
.
updateMatrix
();
scene
.
add
(
zmesh
);
scene
.
add
Object
(
zmesh
);
}
...
...
examples/materials_test.html
浏览文件 @
c0d14df4
...
...
@@ -160,7 +160,7 @@
//mesh.doubleSided = true;
mesh
.
overdraw
=
true
;
mesh
.
updateMatrix
();
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
}
...
...
@@ -186,7 +186,7 @@
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
0.1
;
mesh
.
position
=
pointLight
.
position
;
mesh
.
updateMatrix
();
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
if
(
render_canvas
)
{
...
...
@@ -276,7 +276,7 @@
zmesh
.
scale
.
x
=
zmesh
.
scale
.
y
=
zmesh
.
scale
.
z
=
3
;
zmesh
.
overdraw
=
true
;
zmesh
.
updateMatrix
();
scene
.
add
(
zmesh
);
scene
.
add
Object
(
zmesh
);
// PLANES with all materials from the model
...
...
@@ -309,7 +309,7 @@
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
1
;
mesh
.
doubleSided
=
true
;
mesh
.
updateMatrix
();
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
// number
var
x
=
document
.
createElement
(
"
canvas
"
);
...
...
@@ -331,7 +331,7 @@
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
1
;
mesh
.
doubleSided
=
true
;
mesh
.
updateMatrix
();
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
}
}
...
...
examples/obj_convert_test.html
浏览文件 @
c0d14df4
...
...
@@ -181,7 +181,7 @@
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
10
;
mesh
.
doubleSided
=
true
;
mesh
.
updateMatrix
();
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
// SPHERES
...
...
@@ -195,7 +195,7 @@
//mesh.doubleSided = true;
mesh
.
overdraw
=
true
;
mesh
.
updateMatrix
();
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
}
...
...
@@ -252,7 +252,7 @@
zmesh
.
scale
.
x
=
zmesh
.
scale
.
y
=
zmesh
.
scale
.
z
=
3
;
zmesh
.
overdraw
=
true
;
zmesh
.
updateMatrix
();
scene
.
add
(
zmesh
);
scene
.
add
Object
(
zmesh
);
// PLANES with all materials from the model
...
...
@@ -271,7 +271,7 @@
zmesh
.
scale
.
x
=
zmesh
.
scale
.
y
=
zmesh
.
scale
.
z
=
3
;
zmesh
.
overdraw
=
true
;
zmesh
.
updateMatrix
();
scene
.
add
(
zmesh
);
scene
.
add
Object
(
zmesh
);
// PLANES with all materials from the model
...
...
@@ -305,7 +305,7 @@
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
1
;
mesh
.
doubleSided
=
true
;
mesh
.
updateMatrix
();
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
// number
var
x
=
document
.
createElement
(
"
canvas
"
);
...
...
@@ -327,7 +327,7 @@
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
1
;
mesh
.
doubleSided
=
true
;
mesh
.
updateMatrix
();
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
}
}
...
...
examples/shader_test.html
浏览文件 @
c0d14df4
...
...
@@ -144,7 +144,7 @@
mesh
.
rotation
.
z
=
rz
;
mesh
.
overdraw
=
true
;
mesh
.
updateMatrix
();
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
}
...
...
@@ -185,7 +185,7 @@
lightMesh
.
position
=
pointLight
.
position
;
lightMesh
.
overdraw
=
true
;
lightMesh
.
updateMatrix
();
scene
.
add
(
lightMesh
);
scene
.
add
Object
(
lightMesh
);
// material samples
sphere
=
new
Sphere
(
100
,
32
,
32
,
1
);
...
...
examples/test.html
浏览文件 @
c0d14df4
...
...
@@ -108,7 +108,7 @@
qrcode
=
mesh
=
new
THREE
.
Mesh
(
new
Qrcode
(),
new
THREE
.
MeshFaceMaterial
()
);
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
2
;
mesh
.
updateMatrix
();
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
// CUBES
...
...
@@ -120,7 +120,7 @@
mesh
.
rotation
.
y
=
Math
.
random
();
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
2
;
mesh
.
updateMatrix
();
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
mesh
=
new
THREE
.
Mesh
(
cube
,
new
THREE
.
MeshColorFillMaterial
(
Math
.
random
()
*
0xffffff
)
);
mesh
.
position
.
x
=
500
;
...
...
@@ -129,7 +129,7 @@
mesh
.
rotation
.
y
=
Math
.
random
();
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
2
;
mesh
.
updateMatrix
();
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
// PLANE
...
...
@@ -138,7 +138,7 @@
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
2
;
mesh
.
doubleSided
=
true
;
mesh
.
updateMatrix
();
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
// CYLINDER
...
...
@@ -146,7 +146,7 @@
mesh
.
position
.
x
=
-
500
;
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
2
;
mesh
.
updateMatrix
();
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
// POLYFIELD
...
...
@@ -174,7 +174,7 @@
mesh
=
new
THREE
.
Mesh
(
geometry
,
[
new
THREE
.
MeshFaceMaterial
(),
new
THREE
.
MeshColorStrokeMaterial
(
0xff0000
,
0.5
,
10
)
]
);
mesh
.
doubleSided
=
true
;
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
2
;
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
// PARTICLES
...
...
@@ -185,7 +185,7 @@
particle
.
position
.
y
=
Math
.
random
()
*
1000
-
500
;
particle
.
position
.
z
=
Math
.
random
()
*
1000
-
500
;
particle
.
scale
.
x
=
particle
.
scale
.
y
=
10
;
scene
.
add
(
particle
);
scene
.
add
Object
(
particle
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录