Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
5c2e6ee5
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,发现更多精彩内容 >>
提交
5c2e6ee5
编写于
6月 05, 2011
作者:
Z
zz85
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
saving before merge
上级
f319a721
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
9 deletion
+17
-9
examples/webgl_geometry_text.html
examples/webgl_geometry_text.html
+14
-8
src/extras/geometries/Text.js
src/extras/geometries/Text.js
+3
-1
未找到文件。
examples/webgl_geometry_text.html
浏览文件 @
5c2e6ee5
...
...
@@ -50,10 +50,13 @@
optimer-normal-normal.js
gentilis-normal-normal
http://canvas-text.googlecode.com/svn-history/r41/trunk/faces/helvetiker-normal-normal.js
<script type="text/javascript" src="http://canvas-text.googlecode.com/svn-history/r41/trunk/faces/optimer-normal-normal.js"></script>
http://canvas-text.googlecode.com/svn-history/r41/trunk/faces/dejavu_sans-normal-normal.js
http://canvas-text.googlecode.com/svn-history/r41/trunk/faces/optimer-normal-normal.js
http://canvas-text.googlecode.com/svn-history/r41/trunk/faces/gentilis-normal-normal.js
-->
<script
type=
"text/javascript"
src=
"http://canvas-text.googlecode.com/svn-history/r41/trunk/faces/optimer-normal-normal.js"
></script>
<script
type=
"text/javascript"
src=
"js/helvetiker-normal-normal.js"
></script>
<script
type=
"text/javascript"
>
...
...
@@ -169,8 +172,8 @@
size
:
80
,
height
:
40
,
curveSegments
:
2
,
font
:
"
helvetik
er
"
});
font
:
"
optim
er
"
});
//dejavu sans
//MEsh Normal MeshBasic
//MeshPhongMaterial MeshLambertMaterial MeshPhongMaterial
...
...
@@ -189,7 +192,7 @@
* opacity: <float>,
*/
var
textMaterial
=
new
THREE
.
MeshPhongMaterial
(
{
color
:
0xa0a0a0
,
wireframe
:
false
,
opacity
:
1
,
shininess
:
100
,
ambient
:
0xff0000
,
specular
:
0x00ff00
,
reflectivity
:
100
});
textMaterial
=
materials
[
9
];
textMaterial
=
materials
[
2
];
text
=
new
THREE
.
Mesh
(
text3d
,
textMaterial
);
...
...
@@ -285,7 +288,7 @@
pointLightZ
:
1
,
pointLightDistance
:
0
,
pointLightIntensity
:
-
1
,
text
:
"
Hello World!
"
,
text
:
theText
,
wireframe
:
false
};
...
...
@@ -306,6 +309,9 @@
text3d.__dirtyUvs = true;
text3d.__dirtyVertices = true;
renderer.clear();
text.matrixAutoUpdate = true;
text.updateMatrix();
*/
scene
.
removeChild
(
text
);
...
...
@@ -313,7 +319,7 @@
size
:
80
,
height
:
40
,
curveSegments
:
2
,
font
:
"
helvetiker
"
font
:
"
helvetiker
"
//"helvetiker"
});
text
=
new
THREE
.
Mesh
(
text3d
,
textMaterial
)
scene
.
addChild
(
text
);
...
...
@@ -351,7 +357,7 @@
gui
.
add
(
effectController
,
"
pointLightX
"
,
-
1
,
1.0
,
0.025
).
onChange
(
matChanger
);
gui
.
add
(
effectController
,
"
pointLightY
"
,
-
1
,
1.0
,
0.025
).
onChange
(
matChanger
);
gui
.
add
(
effectController
,
"
pointLightZ
"
,
-
1
,
1.0
,
0.025
).
onChange
(
matChanger
);
gui
.
add
(
effectController
,
"
pointLightDistance
"
,
-
1
,
1
,
0.01
).
onChange
(
matChanger
);
gui
.
add
(
effectController
,
"
pointLightDistance
"
,
-
1
,
1
000
,
0.5
).
onChange
(
matChanger
);
gui
.
add
(
effectController
,
"
pointLightIntensity
"
,
-
1
,
1.0
,
0.025
).
onChange
(
matChanger
);
gui
.
show
();
matChanger
();
...
...
src/extras/geometries/Text.js
浏览文件 @
5c2e6ee5
...
...
@@ -344,8 +344,10 @@ THREE.FontUtils = {
}
}
// you would not wish to reach this point of code, because thing else is then wrong.
if
(
!
found
)
{
// you would not wish to reach this point of code, because thing else is then wrong.
console
.
log
(
"
warning...
"
);
points
.
push
(
verts
[
l
]);
face
.
push
(
points
.
length
-
1
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录