Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
059d0d7d
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,发现更多精彩内容 >>
提交
059d0d7d
编写于
2月 25, 2011
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed Matrix4::setRotationFromEuler (using x,y,z order).
上级
aaa1b1cd
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
726 addition
and
807 deletion
+726
-807
build/Three.js
build/Three.js
+388
-388
build/custom/ThreeCanvas.js
build/custom/ThreeCanvas.js
+56
-55
build/custom/ThreeDOM.js
build/custom/ThreeDOM.js
+31
-30
build/custom/ThreeExtras.js
build/custom/ThreeExtras.js
+65
-65
build/custom/ThreeSVG.js
build/custom/ThreeSVG.js
+49
-48
build/custom/ThreeWebGL.js
build/custom/ThreeWebGL.js
+117
-116
examples/canvas_geometry_cube.html
examples/canvas_geometry_cube.html
+1
-79
examples/misc_uqbiquity_test.html
examples/misc_uqbiquity_test.html
+2
-0
src/core/Matrix4.js
src/core/Matrix4.js
+17
-26
未找到文件。
build/Three.js
浏览文件 @
059d0d7d
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
build/custom/ThreeCanvas.js
浏览文件 @
059d0d7d
此差异已折叠。
点击以展开。
build/custom/ThreeDOM.js
浏览文件 @
059d0d7d
此差异已折叠。
点击以展开。
build/custom/ThreeExtras.js
浏览文件 @
059d0d7d
此差异已折叠。
点击以展开。
build/custom/ThreeSVG.js
浏览文件 @
059d0d7d
此差异已折叠。
点击以展开。
build/custom/ThreeWebGL.js
浏览文件 @
059d0d7d
此差异已折叠。
点击以展开。
examples/canvas_geometry_cube.html
浏览文件 @
059d0d7d
...
...
@@ -15,85 +15,7 @@
</head>
<body>
<!-- <script type="text/javascript" src="../build/Three.js"></script> -->
<script
type=
"text/javascript"
src=
"../src/Three.js"
></script>
<script
type=
"text/javascript"
src=
"../src/core/Color.js"
></script>
<script
type=
"text/javascript"
src=
"../src/core/Vector2.js"
></script>
<script
type=
"text/javascript"
src=
"../src/core/Vector3.js"
></script>
<script
type=
"text/javascript"
src=
"../src/core/Vector4.js"
></script>
<script
type=
"text/javascript"
src=
"../src/core/Ray.js"
></script>
<script
type=
"text/javascript"
src=
"../src/core/Rectangle.js"
></script>
<script
type=
"text/javascript"
src=
"../src/core/Matrix3.js"
></script>
<script
type=
"text/javascript"
src=
"../src/core/Matrix4.js"
></script>
<script
type=
"text/javascript"
src=
"../src/core/Object3D.js"
></script>
<script
type=
"text/javascript"
src=
"../src/core/Quaternion.js"
></script>
<script
type=
"text/javascript"
src=
"../src/core/Vertex.js"
></script>
<script
type=
"text/javascript"
src=
"../src/core/Face3.js"
></script>
<script
type=
"text/javascript"
src=
"../src/core/Face4.js"
></script>
<script
type=
"text/javascript"
src=
"../src/core/UV.js"
></script>
<script
type=
"text/javascript"
src=
"../src/core/Geometry.js"
></script>
<script
type=
"text/javascript"
src=
"../src/animation/AnimationHandler.js"
></script>
<script
type=
"text/javascript"
src=
"../src/animation/Animation.js"
></script>
<script
type=
"text/javascript"
src=
"../src/cameras/Camera.js"
></script>
<script
type=
"text/javascript"
src=
"../src/lights/Light.js"
></script>
<script
type=
"text/javascript"
src=
"../src/lights/AmbientLight.js"
></script>
<script
type=
"text/javascript"
src=
"../src/lights/DirectionalLight.js"
></script>
<script
type=
"text/javascript"
src=
"../src/lights/PointLight.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/Material.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/LineBasicMaterial.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/MeshBasicMaterial.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/MeshLambertMaterial.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/MeshPhongMaterial.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/MeshDepthMaterial.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/MeshNormalMaterial.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/MeshFaceMaterial.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/MeshShaderMaterial.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/ParticleBasicMaterial.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/ParticleCircleMaterial.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/ParticleDOMMaterial.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/Texture.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/RenderTarget.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/Uniforms.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/mappings/CubeReflectionMapping.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/mappings/CubeRefractionMapping.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/mappings/LatitudeReflectionMapping.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/mappings/LatitudeRefractionMapping.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/mappings/SphericalReflectionMapping.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/mappings/SphericalRefractionMapping.js"
></script>
<script
type=
"text/javascript"
src=
"../src/materials/mappings/UVMapping.js"
></script>
<script
type=
"text/javascript"
src=
"../src/objects/Particle.js"
></script>
<script
type=
"text/javascript"
src=
"../src/objects/ParticleSystem.js"
></script>
<script
type=
"text/javascript"
src=
"../src/objects/Line.js"
></script>
<script
type=
"text/javascript"
src=
"../src/objects/Mesh.js"
></script>
<script
type=
"text/javascript"
src=
"../src/objects/Bone.js"
></script>
<script
type=
"text/javascript"
src=
"../src/objects/SkinnedMesh.js"
></script>
<script
type=
"text/javascript"
src=
"../src/objects/Ribbon.js"
></script>
<script
type=
"text/javascript"
src=
"../src/scenes/Scene.js"
></script>
<script
type=
"text/javascript"
src=
"../src/scenes/Fog.js"
></script>
<script
type=
"text/javascript"
src=
"../src/scenes/FogExp2.js"
></script>
<script
type=
"text/javascript"
src=
"../src/renderers/Projector.js"
></script>
<script
type=
"text/javascript"
src=
"../src/renderers/DOMRenderer.js"
></script>
<script
type=
"text/javascript"
src=
"../src/renderers/CanvasRenderer.js"
></script>
<script
type=
"text/javascript"
src=
"../src/renderers/SVGRenderer.js"
></script>
<script
type=
"text/javascript"
src=
"../src/renderers/WebGLRenderer.js"
></script>
<script
type=
"text/javascript"
src=
"../src/renderers/renderables/RenderableObject.js"
></script>
<script
type=
"text/javascript"
src=
"../src/renderers/renderables/RenderableFace3.js"
></script>
<script
type=
"text/javascript"
src=
"../src/renderers/renderables/RenderableParticle.js"
></script>
<script
type=
"text/javascript"
src=
"../src/renderers/renderables/RenderableLine.js"
></script>
<script
type=
"text/javascript"
src=
"../src/extras/GeometryUtils.js"
></script>
<script
type=
"text/javascript"
src=
"../src/extras/ImageUtils.js"
></script>
<script
type=
"text/javascript"
src=
"../src/extras/SceneUtils.js"
></script>
<script
type=
"text/javascript"
src=
"../src/extras/ShaderUtils.js"
></script>
<script
type=
"text/javascript"
src=
"../src/extras/primitives/Cube.js"
></script>
<script
type=
"text/javascript"
src=
"../src/extras/primitives/Cylinder.js"
></script>
<script
type=
"text/javascript"
src=
"../src/extras/primitives/Plane.js"
></script>
<script
type=
"text/javascript"
src=
"../src/extras/primitives/Sphere.js"
></script>
<script
type=
"text/javascript"
src=
"../src/extras/primitives/Torus.js"
></script>
<script
type=
"text/javascript"
src=
"../src/extras/primitives/Icosahedron.js"
></script>
<script
type=
"text/javascript"
src=
"../src/extras/primitives/LathedObject.js"
></script>
<script
type=
"text/javascript"
src=
"../src/extras/objects/MarchingCubes.js"
></script>
<script
type=
"text/javascript"
src=
"../src/extras/io/Loader.js"
></script>
<script
type=
"text/javascript"
src=
"../build/Three.js"
></script>
<script
type=
"text/javascript"
src=
"js/RequestAnimationFrame.js"
></script>
<script
type=
"text/javascript"
src=
"js/Stats.js"
></script>
...
...
examples/misc_uqbiquity_test.html
浏览文件 @
059d0d7d
...
...
@@ -69,6 +69,7 @@
<script
type=
"text/javascript"
src=
"../src/objects/Bone.js"
></script>
<script
type=
"text/javascript"
src=
"../src/objects/SkinnedMesh.js"
></script>
<script
type=
"text/javascript"
src=
"../src/objects/Ribbon.js"
></script>
<script
type=
"text/javascript"
src=
"../src/objects/Sound3D.js"
></script>
<script
type=
"text/javascript"
src=
"../src/scenes/Scene.js"
></script>
<script
type=
"text/javascript"
src=
"../src/scenes/Fog.js"
></script>
<script
type=
"text/javascript"
src=
"../src/scenes/FogExp2.js"
></script>
...
...
@@ -77,6 +78,7 @@
<script
type=
"text/javascript"
src=
"../src/renderers/CanvasRenderer.js"
></script>
<script
type=
"text/javascript"
src=
"../src/renderers/SVGRenderer.js"
></script>
<script
type=
"text/javascript"
src=
"../src/renderers/WebGLRenderer.js"
></script>
<script
type=
"text/javascript"
src=
"../src/renderers/SoundRenderer.js"
></script>
<script
type=
"text/javascript"
src=
"../src/renderers/renderables/RenderableObject.js"
></script>
<script
type=
"text/javascript"
src=
"../src/renderers/renderables/RenderableFace3.js"
></script>
<script
type=
"text/javascript"
src=
"../src/renderers/renderables/RenderableParticle.js"
></script>
...
...
src/core/Matrix4.js
浏览文件 @
059d0d7d
...
...
@@ -507,32 +507,23 @@ THREE.Matrix4.prototype = {
setRotationFromEuler
:
function
(
vec3
)
{
//var c = Math.PI / 180;
var
x
=
vec3
.
x
,
// * c;
y
=
vec3
.
y
,
// * c;
z
=
vec3
.
z
,
// * c;
var
x
=
vec3
.
x
,
y
=
vec3
.
y
,
z
=
vec3
.
z
,
a
=
Math
.
cos
(
x
),
b
=
Math
.
sin
(
x
),
c
=
Math
.
cos
(
y
),
d
=
Math
.
sin
(
y
),
e
=
Math
.
cos
(
z
),
f
=
Math
.
sin
(
z
),
ad
=
a
*
d
,
bd
=
b
*
d
;
ch
=
Math
.
cos
(
y
),
sh
=
Math
.
sin
(
y
),
ca
=
Math
.
cos
(
-
z
),
sa
=
Math
.
sin
(
-
z
),
cb
=
Math
.
cos
(
x
),
sb
=
Math
.
sin
(
x
),
this
.
n11
=
c
*
e
;
this
.
n12
=
-
c
*
f
;
this
.
n13
=
d
;
chsa
=
ch
*
sa
,
shsa
=
sh
*
sa
;
this
.
n21
=
bd
*
e
+
a
*
f
;
this
.
n22
=
-
bd
*
f
+
a
*
e
;
this
.
n23
=
-
b
*
c
;
this
.
n11
=
ch
*
ca
;
this
.
n12
=
sh
*
sb
-
chsa
*
cb
;
this
.
n13
=
chsa
*
sb
+
sh
*
cb
;
this
.
n21
=
sa
;
this
.
n22
=
ca
*
cb
;
this
.
n23
=
-
ca
*
sb
;
this
.
n31
=
-
sh
*
ca
;
this
.
n32
=
shsa
*
cb
+
ch
*
sb
;
this
.
n33
=
-
shsa
*
sb
+
ch
*
cb
;
this
.
n31
=
-
ad
*
e
+
b
*
f
;
this
.
n32
=
ad
*
f
+
b
*
e
;
this
.
n33
=
a
*
c
;
},
...
...
@@ -592,7 +583,7 @@ THREE.Matrix4.prototype = {
},
extractPositionVector
:
function
(
v
)
{
v
.
x
=
this
.
n14
;
v
.
y
=
this
.
n24
;
v
.
z
=
this
.
n34
;
...
...
@@ -761,9 +752,9 @@ THREE.Matrix4.makeInvert3x3 = function ( m1 ) {
a13
=
m1
.
n23
*
m1
.
n12
-
m1
.
n22
*
m1
.
n13
,
a23
=
-
m1
.
n23
*
m1
.
n11
+
m1
.
n21
*
m1
.
n13
,
a33
=
m1
.
n22
*
m1
.
n11
-
m1
.
n21
*
m1
.
n12
,
det
=
m1
.
n11
*
a11
+
m1
.
n21
*
a12
+
m1
.
n31
*
a13
,
idet
;
// no inverse
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录