Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
8ea9f2d1
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,发现更多精彩内容 >>
提交
8ea9f2d1
编写于
10月 31, 2010
作者:
A
alteredq
浏览文件
操作
浏览文件
下载
差异文件
Merge remote branch 'remotes/upstream/master'
上级
b22bd9da
cf58088c
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
16 addition
and
16 deletion
+16
-16
examples/geometry_vr.html
examples/geometry_vr.html
+6
-6
examples/lines_sphere.html
examples/lines_sphere.html
+2
-2
examples/lines_test.html
examples/lines_test.html
+2
-2
examples/materials_video.html
examples/materials_video.html
+3
-3
examples/particles_floor.html
examples/particles_floor.html
+1
-1
examples/particles_random.html
examples/particles_random.html
+1
-1
examples/particles_waves.html
examples/particles_waves.html
+1
-1
未找到文件。
examples/geometry_vr.html
浏览文件 @
8ea9f2d1
...
@@ -71,37 +71,37 @@
...
@@ -71,37 +71,37 @@
mesh
=
new
THREE
.
Mesh
(
new
Plane
(
1000
,
1000
,
5
,
5
),
loadTexture
(
'
textures/skymap_front1024.jpg
'
)
);
mesh
=
new
THREE
.
Mesh
(
new
Plane
(
1000
,
1000
,
5
,
5
),
loadTexture
(
'
textures/skymap_front1024.jpg
'
)
);
mesh
.
position
.
z
=
-
500
;
mesh
.
position
.
z
=
-
500
;
mesh
.
overdraw
=
true
;
mesh
.
overdraw
=
true
;
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
mesh
=
new
THREE
.
Mesh
(
new
Plane
(
1000
,
1000
,
5
,
5
),
loadTexture
(
'
textures/skymap_back1024.jpg
'
)
);
mesh
=
new
THREE
.
Mesh
(
new
Plane
(
1000
,
1000
,
5
,
5
),
loadTexture
(
'
textures/skymap_back1024.jpg
'
)
);
mesh
.
position
.
z
=
500
;
mesh
.
position
.
z
=
500
;
mesh
.
rotation
.
y
=
180
*
Math
.
PI
/
180
;
mesh
.
rotation
.
y
=
180
*
Math
.
PI
/
180
;
mesh
.
overdraw
=
true
;
mesh
.
overdraw
=
true
;
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
mesh
=
new
THREE
.
Mesh
(
new
Plane
(
1000
,
1000
,
5
,
5
),
loadTexture
(
'
textures/skymap_left1024.jpg
'
)
);
mesh
=
new
THREE
.
Mesh
(
new
Plane
(
1000
,
1000
,
5
,
5
),
loadTexture
(
'
textures/skymap_left1024.jpg
'
)
);
mesh
.
position
.
x
=
-
500
;
mesh
.
position
.
x
=
-
500
;
mesh
.
rotation
.
y
=
90
*
Math
.
PI
/
180
;
mesh
.
rotation
.
y
=
90
*
Math
.
PI
/
180
;
mesh
.
overdraw
=
true
;
mesh
.
overdraw
=
true
;
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
mesh
=
new
THREE
.
Mesh
(
new
Plane
(
1000
,
1000
,
5
,
5
),
loadTexture
(
'
textures/skymap_right1024.jpg
'
)
);
mesh
=
new
THREE
.
Mesh
(
new
Plane
(
1000
,
1000
,
5
,
5
),
loadTexture
(
'
textures/skymap_right1024.jpg
'
)
);
mesh
.
position
.
x
=
500
;
mesh
.
position
.
x
=
500
;
mesh
.
rotation
.
y
=
-
90
*
Math
.
PI
/
180
;
mesh
.
rotation
.
y
=
-
90
*
Math
.
PI
/
180
;
mesh
.
overdraw
=
true
;
mesh
.
overdraw
=
true
;
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
mesh
=
new
THREE
.
Mesh
(
new
Plane
(
1000
,
1000
,
5
,
5
),
loadTexture
(
'
textures/skymap_top1024.jpg
'
)
);
mesh
=
new
THREE
.
Mesh
(
new
Plane
(
1000
,
1000
,
5
,
5
),
loadTexture
(
'
textures/skymap_top1024.jpg
'
)
);
mesh
.
position
.
y
=
500
;
mesh
.
position
.
y
=
500
;
mesh
.
rotation
.
x
=
90
*
Math
.
PI
/
180
;
mesh
.
rotation
.
x
=
90
*
Math
.
PI
/
180
;
mesh
.
overdraw
=
true
;
mesh
.
overdraw
=
true
;
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
mesh
=
new
THREE
.
Mesh
(
new
Plane
(
1000
,
1000
,
5
,
5
),
loadTexture
(
'
textures/skymap_bottom1024.jpg
'
)
);
mesh
=
new
THREE
.
Mesh
(
new
Plane
(
1000
,
1000
,
5
,
5
),
loadTexture
(
'
textures/skymap_bottom1024.jpg
'
)
);
mesh
.
position
.
y
=
-
500
;
mesh
.
position
.
y
=
-
500
;
mesh
.
rotation
.
x
=
-
90
*
Math
.
PI
/
180
;
mesh
.
rotation
.
x
=
-
90
*
Math
.
PI
/
180
;
mesh
.
overdraw
=
true
;
mesh
.
overdraw
=
true
;
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
renderer
=
new
THREE
.
CanvasRenderer
();
renderer
=
new
THREE
.
CanvasRenderer
();
...
...
examples/lines_sphere.html
浏览文件 @
8ea9f2d1
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
particle
.
position
.
z
=
Math
.
random
()
*
2
-
1
;
particle
.
position
.
z
=
Math
.
random
()
*
2
-
1
;
particle
.
position
.
normalize
();
particle
.
position
.
normalize
();
particle
.
position
.
multiplyScalar
(
Math
.
random
()
*
10
+
450
);
particle
.
position
.
multiplyScalar
(
Math
.
random
()
*
10
+
450
);
scene
.
add
(
particle
);
scene
.
add
Object
(
particle
);
}
}
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
geometry
.
vertices
.
push
(
new
THREE
.
Vertex
(
vector2
));
geometry
.
vertices
.
push
(
new
THREE
.
Vertex
(
vector2
));
var
line
=
new
THREE
.
Line
(
geometry
,
new
THREE
.
LineColorMaterial
(
0xffffff
,
Math
.
random
()
)
);
var
line
=
new
THREE
.
Line
(
geometry
,
new
THREE
.
LineColorMaterial
(
0xffffff
,
Math
.
random
()
)
);
scene
.
add
(
line
);
scene
.
add
Object
(
line
);
}
}
/*
/*
...
...
examples/lines_test.html
浏览文件 @
8ea9f2d1
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
particle
.
position
.
normalize
();
particle
.
position
.
normalize
();
particle
.
position
.
multiplyScalar
(
Math
.
random
()
*
10
+
450
);
particle
.
position
.
multiplyScalar
(
Math
.
random
()
*
10
+
450
);
particle
.
scale
.
x
=
particle
.
scale
.
y
=
5
;
particle
.
scale
.
x
=
particle
.
scale
.
y
=
5
;
scene
.
add
(
particle
);
scene
.
add
Object
(
particle
);
geometry
.
vertices
.
push
(
new
THREE
.
Vertex
(
particle
.
position
)
);
geometry
.
vertices
.
push
(
new
THREE
.
Vertex
(
particle
.
position
)
);
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
// lines
// lines
var
line
=
new
THREE
.
Line
(
geometry
,
new
THREE
.
LineColorMaterial
(
0xffffff
,
Math
.
random
(),
1
)
);
var
line
=
new
THREE
.
Line
(
geometry
,
new
THREE
.
LineColorMaterial
(
0xffffff
,
Math
.
random
(),
1
)
);
scene
.
add
(
line
);
scene
.
add
Object
(
line
);
/*
/*
stats = new Stats();
stats = new Stats();
...
...
examples/materials_video.html
浏览文件 @
8ea9f2d1
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
mesh
=
new
THREE
.
Mesh
(
plane
,
material
);
mesh
=
new
THREE
.
Mesh
(
plane
,
material
);
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
1.5
;
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
1.5
;
mesh
.
overdraw
=
true
;
mesh
.
overdraw
=
true
;
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
mesh
=
new
THREE
.
Mesh
(
plane
,
materialReflection
);
mesh
=
new
THREE
.
Mesh
(
plane
,
materialReflection
);
mesh
.
position
.
y
=
-
306
;
mesh
.
position
.
y
=
-
306
;
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
mesh
.
rotation
.
x
=
180
*
Math
.
PI
/
180
;
mesh
.
rotation
.
x
=
180
*
Math
.
PI
/
180
;
mesh
.
doubleSided
=
true
;
mesh
.
doubleSided
=
true
;
mesh
.
overdraw
=
true
;
mesh
.
overdraw
=
true
;
scene
.
add
(
mesh
);
scene
.
add
Object
(
mesh
);
//
//
...
@@ -132,7 +132,7 @@
...
@@ -132,7 +132,7 @@
particle
.
position
.
x
=
ix
*
separation
-
((
amountx
*
separation
)
/
2
);
particle
.
position
.
x
=
ix
*
separation
-
((
amountx
*
separation
)
/
2
);
particle
.
position
.
y
=
-
153
particle
.
position
.
y
=
-
153
particle
.
position
.
z
=
iy
*
separation
-
((
amounty
*
separation
)
/
2
);
particle
.
position
.
z
=
iy
*
separation
-
((
amounty
*
separation
)
/
2
);
scene
.
add
(
particle
);
scene
.
add
Object
(
particle
);
}
}
}
}
...
...
examples/particles_floor.html
浏览文件 @
8ea9f2d1
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
particle
=
new
THREE
.
Particle
(
material
);
particle
=
new
THREE
.
Particle
(
material
);
particle
.
position
.
x
=
ix
*
SEPARATION
-
((
AMOUNTX
*
SEPARATION
)
/
2
);
particle
.
position
.
x
=
ix
*
SEPARATION
-
((
AMOUNTX
*
SEPARATION
)
/
2
);
particle
.
position
.
z
=
iy
*
SEPARATION
-
((
AMOUNTY
*
SEPARATION
)
/
2
);
particle
.
position
.
z
=
iy
*
SEPARATION
-
((
AMOUNTY
*
SEPARATION
)
/
2
);
scene
.
add
(
particle
);
scene
.
add
Object
(
particle
);
}
}
}
}
...
...
examples/particles_random.html
浏览文件 @
8ea9f2d1
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
particle
.
position
.
y
=
Math
.
random
()
*
2000
-
1000
;
particle
.
position
.
y
=
Math
.
random
()
*
2000
-
1000
;
particle
.
position
.
z
=
Math
.
random
()
*
2000
-
1000
;
particle
.
position
.
z
=
Math
.
random
()
*
2000
-
1000
;
particle
.
scale
.
x
=
particle
.
scale
.
y
=
Math
.
random
()
*
10
+
5
;
particle
.
scale
.
x
=
particle
.
scale
.
y
=
Math
.
random
()
*
10
+
5
;
scene
.
add
(
particle
);
scene
.
add
Object
(
particle
);
}
}
container
.
appendChild
(
renderer
.
domElement
);
container
.
appendChild
(
renderer
.
domElement
);
...
...
examples/particles_waves.html
浏览文件 @
8ea9f2d1
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
particle
=
particles
[
i
++
]
=
new
THREE
.
Particle
(
material
);
particle
=
particles
[
i
++
]
=
new
THREE
.
Particle
(
material
);
particle
.
position
.
x
=
ix
*
SEPARATION
-
(
(
AMOUNTX
*
SEPARATION
)
/
2
);
particle
.
position
.
x
=
ix
*
SEPARATION
-
(
(
AMOUNTX
*
SEPARATION
)
/
2
);
particle
.
position
.
z
=
iy
*
SEPARATION
-
(
(
AMOUNTY
*
SEPARATION
)
/
2
);
particle
.
position
.
z
=
iy
*
SEPARATION
-
(
(
AMOUNTY
*
SEPARATION
)
/
2
);
scene
.
add
(
particle
);
scene
.
add
Object
(
particle
);
}
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录