Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
f778f6f4
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,发现更多精彩内容 >>
提交
f778f6f4
编写于
12月 07, 2016
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Removed NinjaLo_bin.
上级
c2be5f5a
变更
10
展开全部
隐藏空白更改
内联
并排
Showing
10 changed file
with
18345 addition
and
83 deletion
+18345
-83
examples/models/obj/ninja/ao.jpg
examples/models/obj/ninja/ao.jpg
+0
-0
examples/models/obj/ninja/displacement.jpg
examples/models/obj/ninja/displacement.jpg
+0
-0
examples/models/obj/ninja/displacement.txt
examples/models/obj/ninja/displacement.txt
+0
-0
examples/models/obj/ninja/ninjaHead_Low.obj
examples/models/obj/ninja/ninjaHead_Low.obj
+18325
-0
examples/models/obj/ninja/normal.jpg
examples/models/obj/ninja/normal.jpg
+0
-0
examples/obj/ninja/NinjaLo_bin.bin
examples/obj/ninja/NinjaLo_bin.bin
+0
-0
examples/obj/ninja/NinjaLo_bin.js
examples/obj/ninja/NinjaLo_bin.js
+0
-23
examples/scenes/test_scene.js
examples/scenes/test_scene.js
+0
-34
examples/webgl_materials_channels.html
examples/webgl_materials_channels.html
+10
-13
examples/webgl_materials_displacementmap.html
examples/webgl_materials_displacementmap.html
+10
-13
未找到文件。
examples/
textures/normal
/ninja/ao.jpg
→
examples/
models/obj
/ninja/ao.jpg
浏览文件 @
f778f6f4
文件已移动
examples/
textures/normal
/ninja/displacement.jpg
→
examples/
models/obj
/ninja/displacement.jpg
浏览文件 @
f778f6f4
文件已移动
examples/
textures/normal
/ninja/displacement.txt
→
examples/
models/obj
/ninja/displacement.txt
浏览文件 @
f778f6f4
文件已移动
examples/models/obj/ninja/ninjaHead_Low.obj
0 → 100644
浏览文件 @
f778f6f4
此差异已折叠。
点击以展开。
examples/
textures/normal
/ninja/normal.jpg
→
examples/
models/obj
/ninja/normal.jpg
浏览文件 @
f778f6f4
文件已移动
examples/obj/ninja/NinjaLo_bin.bin
已删除
100644 → 0
浏览文件 @
c2be5f5a
文件已删除
examples/obj/ninja/NinjaLo_bin.js
已删除
100644 → 0
浏览文件 @
c2be5f5a
{
"
metadata
"
:
{
"
formatVersion
"
:
3.1
,
"
sourceFile
"
:
"
ninjaHead_Low.obj
"
,
"
generatedBy
"
:
"
OBJConverter
"
,
"
vertices
"
:
4485
,
"
faces
"
:
4810
,
"
normals
"
:
4485
,
"
uvs
"
:
4543
,
"
materials
"
:
0
},
"
materials
"
:
[
{
"
DbgColor
"
:
15658734
,
"
DbgIndex
"
:
0
,
"
DbgName
"
:
"
default
"
}],
"
buffers
"
:
"
NinjaLo_bin.bin
"
}
examples/scenes/test_scene.js
浏览文件 @
f778f6f4
...
...
@@ -168,15 +168,6 @@
"
visible
"
:
true
},
"
ninja
"
:
{
"
geometry
"
:
"
NinjaLo
"
,
"
material
"
:
"
phong_normal
"
,
"
position
"
:
[
75
,
10
,
-
30
],
"
rotation
"
:
[
0
,
-
0.5
,
0
],
"
scale
"
:
[
1.25
,
1.25
,
1.25
],
"
visible
"
:
true
},
"
sittingBox
"
:
{
"
geometry
"
:
"
sittingBox
"
,
"
material
"
:
"
phong_morph
"
,
...
...
@@ -443,11 +434,6 @@
"
url
"
:
"
obj/walt/WaltHead_bin.js
"
},
"
NinjaLo
"
:
{
"
type
"
:
"
binary
"
,
"
url
"
:
"
obj/ninja/NinjaLo_bin.js
"
},
"
veyron
"
:
{
"
type
"
:
"
binary
"
,
"
url
"
:
"
obj/veyron/VeyronNoUv_bin.js
"
...
...
@@ -580,11 +566,6 @@
"
parameters
"
:
{
"
color
"
:
16733491
,
"
specular
"
:
1118481
,
"
shininess
"
:
30
,
"
wireframe
"
:
false
}
},
"
phong_normal
"
:
{
"
type
"
:
"
MeshPhongMaterial
"
,
"
parameters
"
:
{
"
color
"
:
0
,
"
specular
"
:
16777215
,
"
shininess
"
:
25
,
"
envMap
"
:
"
cube_reflection
"
,
"
reflectivity
"
:
0.1
,
"
lightMap
"
:
"
texture_ao
"
,
"
normalMap
"
:
"
texture_normal
"
,
"
normalScale
"
:
[
1
,
-
1
]
}
},
"
phong_morph
"
:
{
"
type
"
:
"
MeshPhongMaterial
"
,
"
parameters
"
:
{
"
color
"
:
0
,
"
specular
"
:
16777215
,
"
shininess
"
:
50
,
"
envMap
"
:
"
cube_reflection
"
,
"
reflectivity
"
:
0.125
,
"
combine
"
:
"
MixOperation
"
,
"
shading
"
:
"
flat
"
,
"
side
"
:
"
double
"
,
"
morphTargets
"
:
true
}
...
...
@@ -749,21 +730,6 @@
"
anisotropy
"
:
4
},
"
texture_normal
"
:
{
"
url
"
:
"
textures/normal/ninja/normal.jpg
"
,
"
anisotropy
"
:
4
},
"
texture_ao
"
:
{
"
url
"
:
"
textures/normal/ninja/ao.jpg
"
,
"
anisotropy
"
:
4
},
"
texture_displacement
"
:
{
"
url
"
:
"
textures/normal/ninja/displacement.jpg
"
,
"
anisotropy
"
:
4
},
"
texture_minecraft
"
:
{
"
url
"
:
"
textures/minecraft/grass.png
"
,
"
magFilter
"
:
"
NearestFilter
"
,
...
...
examples/webgl_materials_channels.html
浏览文件 @
f778f6f4
...
...
@@ -43,8 +43,7 @@
<script
src=
"../build/three.js"
></script>
<script
src=
"js/controls/OrbitControls.js"
></script>
<script
src=
"js/loaders/BinaryLoader.js"
></script>
<script
src=
"js/loaders/OBJLoader.js"
></script>
<script
src=
"js/Detector.js"
></script>
<script
src=
"js/libs/stats.min.js"
></script>
...
...
@@ -54,7 +53,7 @@
if
(
!
Detector
.
webgl
)
Detector
.
addGetWebGLMessage
();
var
stats
,
loader
;
var
stats
;
var
camera
,
scene
,
renderer
,
controls
;
...
...
@@ -145,12 +144,9 @@
// textures
var
textureLoader
=
new
THREE
.
TextureLoader
();
var
normalMap
=
textureLoader
.
load
(
"
textures/normal/ninja/normal.jpg
"
);
var
aoMap
=
textureLoader
.
load
(
"
textures/normal/ninja/ao.jpg
"
);
var
displacementMap
=
textureLoader
.
load
(
"
textures/normal/ninja/displacement.jpg
"
);
var
normalMap
=
textureLoader
.
load
(
"
models/obj/ninja/normal.jpg
"
);
var
aoMap
=
textureLoader
.
load
(
"
models/obj/ninja/ao.jpg
"
);
var
displacementMap
=
textureLoader
.
load
(
"
models/obj/ninja/displacement.jpg
"
);
// material
...
...
@@ -196,11 +192,12 @@
//
loader
=
new
THREE
.
BinaryLoader
();
loader
.
load
(
"
obj/ninja/NinjaLo_bin.js
"
,
function
(
geometry
)
{
var
loader
=
new
THREE
.
OBJLoader
();
loader
.
load
(
"
models/obj/ninja/ninjaHead_Low.obj
"
,
function
(
group
)
{
geometry
.
faceVertexUvs
[
1
]
=
geometry
.
faceVertexUvs
[
0
];
// 2nd set of UVs required for aoMap
geometry
=
group
.
children
[
0
].
geometry
;
geometry
.
attributes
.
uv2
=
geometry
.
attributes
.
uv
;
geometry
.
center
();
mesh
=
new
THREE
.
Mesh
(
geometry
,
materialNormal
);
mesh
.
scale
.
multiplyScalar
(
25
);
...
...
examples/webgl_materials_displacementmap.html
浏览文件 @
f778f6f4
...
...
@@ -43,8 +43,7 @@
<script
src=
"../build/three.js"
></script>
<script
src=
"js/controls/OrbitControls.js"
></script>
<script
src=
"js/loaders/BinaryLoader.js"
></script>
<script
src=
"js/loaders/OBJLoader.js"
></script>
<script
src=
"js/Detector.js"
></script>
<script
src=
"js/libs/stats.min.js"
></script>
...
...
@@ -54,7 +53,7 @@
if
(
!
Detector
.
webgl
)
Detector
.
addGetWebGLMessage
();
var
stats
,
loader
;
var
stats
;
var
camera
,
scene
,
renderer
,
controls
;
var
settings
=
{
...
...
@@ -192,12 +191,9 @@
// textures
var
textureLoader
=
new
THREE
.
TextureLoader
();
var
normalMap
=
textureLoader
.
load
(
"
textures/normal/ninja/normal.jpg
"
);
var
aoMap
=
textureLoader
.
load
(
"
textures/normal/ninja/ao.jpg
"
);
var
displacementMap
=
textureLoader
.
load
(
"
textures/normal/ninja/displacement.jpg
"
);
var
normalMap
=
textureLoader
.
load
(
"
models/obj/ninja/normal.jpg
"
);
var
aoMap
=
textureLoader
.
load
(
"
models/obj/ninja/ao.jpg
"
);
var
displacementMap
=
textureLoader
.
load
(
"
models/obj/ninja/displacement.jpg
"
);
// material
...
...
@@ -226,11 +222,12 @@
//
loader
=
new
THREE
.
BinaryLoader
();
loader
.
load
(
"
obj/ninja/NinjaLo_bin.js
"
,
function
(
geometry
)
{
var
loader
=
new
THREE
.
OBJLoader
();
loader
.
load
(
"
models/obj/ninja/ninjaHead_Low.obj
"
,
function
(
group
)
{
geometry
.
faceVertexUvs
[
1
]
=
geometry
.
faceVertexUvs
[
0
];
// 2nd set of UVs required for aoMap
geometry
=
group
.
children
[
0
].
geometry
;
geometry
.
attributes
.
uv2
=
geometry
.
attributes
.
uv
;
geometry
.
center
();
mesh
=
new
THREE
.
Mesh
(
geometry
,
material
);
mesh
.
scale
.
multiplyScalar
(
25
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录