Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
f7263aa3
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,发现更多精彩内容 >>
提交
f7263aa3
编写于
8月 15, 2017
作者:
D
Don McCurdy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[glTF] Move/rename all the glTF2 things.
上级
97bb4625
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
14 addition
and
14 deletion
+14
-14
docs/examples/loaders/GLTFLoader.html
docs/examples/loaders/GLTFLoader.html
+4
-4
docs/list.js
docs/list.js
+1
-1
docs/manual/introduction/Animation-system.html
docs/manual/introduction/Animation-system.html
+1
-1
editor/index.html
editor/index.html
+1
-1
editor/js/Loader.js
editor/js/Loader.js
+1
-1
examples/files.js
examples/files.js
+2
-2
examples/js/exporters/GLTFExporter.js
examples/js/exporters/GLTFExporter.js
+1
-1
examples/js/loaders/GLTFLoader.js
examples/js/loaders/GLTFLoader.js
+0
-0
examples/webgl_exporter_gltf.html
examples/webgl_exporter_gltf.html
+1
-1
examples/webgl_loader_gltf2.html
examples/webgl_loader_gltf2.html
+2
-2
未找到文件。
docs/examples/loaders/GLTF
2
Loader.html
→
docs/examples/loaders/GLTFLoader.html
浏览文件 @
f7263aa3
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<h2>
Extensions
</h2>
<h2>
Extensions
</h2>
<div>
<div>
GLTF
2
Loader supports the following glTF extensions:
GLTFLoader supports the following glTF extensions:
</div>
</div>
<ul>
<ul>
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<code>
<code>
// Instantiate a loader
// Instantiate a loader
var loader = new THREE.GLTF
2
Loader();
var loader = new THREE.GLTFLoader();
// Load a glTF resource
// Load a glTF resource
loader.load( 'models/gltf/duck/duck.gltf', function ( gltf ) {
loader.load( 'models/gltf/duck/duck.gltf', function ( gltf ) {
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
} );
} );
</code>
</code>
[example:webgl_loader_gltf
2
]
[example:webgl_loader_gltf]
<h2>
Constructor
</h2>
<h2>
Constructor
</h2>
...
@@ -115,6 +115,6 @@
...
@@ -115,6 +115,6 @@
<h2>
Source
</h2>
<h2>
Source
</h2>
[link:https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/GLTF
2Loader.js examples/js/loaders/GLTF2
Loader.js]
[link:https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/GLTF
Loader.js examples/js/loaders/GLTF
Loader.js]
</body>
</body>
</html>
</html>
docs/list.js
浏览文件 @
f7263aa3
...
@@ -341,7 +341,7 @@ var list = {
...
@@ -341,7 +341,7 @@ var list = {
"
Loaders
"
:
{
"
Loaders
"
:
{
"
BabylonLoader
"
:
"
examples/loaders/BabylonLoader
"
,
"
BabylonLoader
"
:
"
examples/loaders/BabylonLoader
"
,
"
ColladaLoader
"
:
"
examples/loaders/ColladaLoader
"
,
"
ColladaLoader
"
:
"
examples/loaders/ColladaLoader
"
,
"
GLTF
2Loader
"
:
"
examples/loaders/GLTF2
Loader
"
,
"
GLTF
Loader
"
:
"
examples/loaders/GLTF
Loader
"
,
"
MTLLoader
"
:
"
examples/loaders/MTLLoader
"
,
"
MTLLoader
"
:
"
examples/loaders/MTLLoader
"
,
"
OBJLoader
"
:
"
examples/loaders/OBJLoader
"
,
"
OBJLoader
"
:
"
examples/loaders/OBJLoader
"
,
"
OBJLoader2
"
:
"
examples/loaders/OBJLoader2
"
,
"
OBJLoader2
"
:
"
examples/loaders/OBJLoader2
"
,
...
...
docs/manual/introduction/Animation-system.html
浏览文件 @
f7263aa3
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
<li>
[page:ObjectLoader THREE.ObjectLoader]
</li>
<li>
[page:ObjectLoader THREE.ObjectLoader]
</li>
<li>
THREE.BVHLoader
</li>
<li>
THREE.BVHLoader
</li>
<li>
THREE.FBXLoader
</li>
<li>
THREE.FBXLoader
</li>
<li>
[page:GLTF
2Loader THREE.GLTF2
Loader]
</li>
<li>
[page:GLTF
Loader THREE.GLTF
Loader]
</li>
<li>
THREE.MMDLoader
</li>
<li>
THREE.MMDLoader
</li>
<li>
THREE.SEA3DLoader
</li>
<li>
THREE.SEA3DLoader
</li>
</ul>
</ul>
...
...
editor/index.html
浏览文件 @
f7263aa3
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<script
src=
"../examples/js/loaders/BabylonLoader.js"
></script>
<script
src=
"../examples/js/loaders/BabylonLoader.js"
></script>
<script
src=
"../examples/js/loaders/ColladaLoader2.js"
></script>
<script
src=
"../examples/js/loaders/ColladaLoader2.js"
></script>
<script
src=
"../examples/js/loaders/FBXLoader.js"
></script>
<script
src=
"../examples/js/loaders/FBXLoader.js"
></script>
<script
src=
"../examples/js/loaders/GLTF
2
Loader.js"
></script>
<script
src=
"../examples/js/loaders/GLTFLoader.js"
></script>
<script
src=
"../examples/js/loaders/KMZLoader.js"
></script>
<script
src=
"../examples/js/loaders/KMZLoader.js"
></script>
<script
src=
"../examples/js/loaders/MD2Loader.js"
></script>
<script
src=
"../examples/js/loaders/MD2Loader.js"
></script>
<script
src=
"../examples/js/loaders/OBJLoader.js"
></script>
<script
src=
"../examples/js/loaders/OBJLoader.js"
></script>
...
...
editor/js/Loader.js
浏览文件 @
f7263aa3
...
@@ -176,7 +176,7 @@ var Loader = function ( editor ) {
...
@@ -176,7 +176,7 @@ var Loader = function ( editor ) {
var
contents
=
event
.
target
.
result
;
var
contents
=
event
.
target
.
result
;
var
loader
=
new
THREE
.
GLTF
2
Loader
();
var
loader
=
new
THREE
.
GLTFLoader
();
loader
.
parse
(
contents
,
''
,
function
(
result
)
{
loader
.
parse
(
contents
,
''
,
function
(
result
)
{
result
.
scene
.
name
=
filename
;
result
.
scene
.
name
=
filename
;
...
...
examples/files.js
浏览文件 @
f7263aa3
...
@@ -18,7 +18,7 @@ var files = {
...
@@ -18,7 +18,7 @@ var files = {
"
webgl_effects_parallaxbarrier
"
,
"
webgl_effects_parallaxbarrier
"
,
"
webgl_effects_peppersghost
"
,
"
webgl_effects_peppersghost
"
,
"
webgl_effects_stereo
"
,
"
webgl_effects_stereo
"
,
"
webgl_exporter_gltf
2
"
,
"
webgl_exporter_gltf
"
,
"
webgl_exporter_obj
"
,
"
webgl_exporter_obj
"
,
"
webgl_geometries
"
,
"
webgl_geometries
"
,
"
webgl_geometries2
"
,
"
webgl_geometries2
"
,
...
@@ -92,7 +92,7 @@ var files = {
...
@@ -92,7 +92,7 @@ var files = {
"
webgl_loader_ctm_materials
"
,
"
webgl_loader_ctm_materials
"
,
"
webgl_loader_draco
"
,
"
webgl_loader_draco
"
,
"
webgl_loader_fbx
"
,
"
webgl_loader_fbx
"
,
"
webgl_loader_gltf
2
"
,
"
webgl_loader_gltf
"
,
"
webgl_loader_imagebitmap
"
,
"
webgl_loader_imagebitmap
"
,
"
webgl_loader_json_blender
"
,
"
webgl_loader_json_blender
"
,
"
webgl_loader_json_claraio
"
,
"
webgl_loader_json_claraio
"
,
...
...
examples/js/exporters/GLTFExporter.js
浏览文件 @
f7263aa3
...
@@ -233,7 +233,7 @@ THREE.GLTFExporter.prototype = {
...
@@ -233,7 +233,7 @@ THREE.GLTFExporter.prototype = {
}
else
{
}
else
{
throw
new
Error
(
'
THREE.GLTF
2
Exporter: Unsupported bufferAttribute component type.
'
);
throw
new
Error
(
'
THREE.GLTFExporter: Unsupported bufferAttribute component type.
'
);
}
}
...
...
examples/js/loaders/GLTF
2
Loader.js
→
examples/js/loaders/GLTFLoader.js
浏览文件 @
f7263aa3
文件已移动
examples/webgl_exporter_gltf
2
.html
→
examples/webgl_exporter_gltf.html
浏览文件 @
f7263aa3
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
</head>
</head>
<body>
<body>
<div
id=
"info"
>
<div
id=
"info"
>
GLTF
2
Exporter
<br/>
GLTF Exporter
<br/>
<button
id=
"export_scene"
>
Export Scene1
</button>
<button
id=
"export_scene"
>
Export Scene1
</button>
<button
id=
"export_scenes"
>
Export Scene1 and Scene 2
</button>
<button
id=
"export_scenes"
>
Export Scene1 and Scene 2
</button>
<button
id=
"export_object"
>
Export Sphere
</button>
<button
id=
"export_object"
>
Export Sphere
</button>
...
...
examples/webgl_loader_gltf2.html
浏览文件 @
f7263aa3
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
</div>
</div>
<script
src=
"../build/three.js"
></script>
<script
src=
"../build/three.js"
></script>
<script
src=
"js/controls/OrbitControls.js"
></script>
<script
src=
"js/controls/OrbitControls.js"
></script>
<script
src=
"js/loaders/GLTF
2
Loader.js"
></script>
<script
src=
"js/loaders/GLTFLoader.js"
></script>
<script>
<script>
var
orbitControls
=
null
;
var
orbitControls
=
null
;
...
@@ -202,7 +202,7 @@
...
@@ -202,7 +202,7 @@
scene
.
add
(
ground
);
scene
.
add
(
ground
);
}
}
loader
=
new
THREE
.
GLTF
2
Loader
();
loader
=
new
THREE
.
GLTFLoader
();
for
(
var
i
=
0
;
i
<
extensionSelect
.
children
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
extensionSelect
.
children
.
length
;
i
++
)
{
var
child
=
extensionSelect
.
children
[
i
];
var
child
=
extensionSelect
.
children
[
i
];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录