12 第1页 | 共2 页下一页
返回列表 发新帖
查看: 4563|回复: 15
打印 上一主题 下一主题

[3D影视] 《掌握x3d》系列教程第二节

[复制链接]

1096

主题

1

听众

1万

积分

资深设计师

Rank: 7Rank: 7Rank: 7

纳金币
17782
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

跳转到指定楼层
楼主
发表于 2011-12-26 15:19:05 |只看该作者 |倒序浏览
掌握X3D   第二节

主要内容:外观

材质 Material

Appearance 外观节点
Material 材质节点
•diffuseColor 决定色彩
<Shape>
<Appearance>
<Material diffuseColor="1 1 0" />      
</Appearance>
<Box />
</Shape>
色彩的值为RGB值,可用photoshop查色并计算。
shininess 光亮程度
transparency 透明度
<Material diffuseColor="1 1 0" transparency="0.9"/>
ambientIntensity 环境色彩强度
emissiveColor 色彩的放射程度
specularColor 色彩的反射形式
<Material diffuseColor="1 1 0" emissiveColor="0 0 1" specularColor="1 0 0"/>

例子—广告

<X3D>
<Scene>
<Transform translation ="0 1.5 0">
<Shape>
<Appearance>
<Material diffuseColor="0.3 0.7 0.2" />      
</Appearance>
<Box size="0.3 1 2"/>
</Shape>
</Transform>
<Transform translation ="0 0 0">
<Shape>
<Appearance>
<Material diffuseColor="1 1 0" />      
</Appearance>
<Cylinder height="3.0" radius="0.2" />
</Shape>
</Transform>
</Scene>
</X3D>
贴图ImageTexture

url 贴图位置
<Shape>
<Appearance>
<ImageTexture url="1.jpg"/>
</Appearance>
<Box/>
</Shape>
几个面不同?

<Transform translation="0 0 1"><Shape>
<Appearance><Material diffuseColor="1 0 0"/><ImageTexture url="Top.jpg"/> </Appearance>
<Box size="2 2 0.005 " />
</Shape></Transform>
<Transform translation="0 0 -1"><Shape>
<Appearance><Material diffuseColor="1 0 0"/><ImageTexture url="Top.jpg"/> </Appearance>
<Box size="2 2 0.005 " />
</Shape></Transform>
<Transform translation="0 1 0"><Shape>
<Appearance><Material diffuseColor="1 0 0"/><ImageTexture url="Mid.jpg"/> </Appearance>
<Box size="2 0.005 2 " />
</Shape></Transform>
<Transform translation="0 -1 0"><Shape>
<Appearance><Material diffuseColor="1 0 0"/><ImageTexture url="Mid.jpg"/> </Appearance>
<Box size="2 0.005 2 " />
</Shape></Transform>
<Transform translation="1 0 0"><Shape>
<Appearance><Material diffuseColor="1 0 0"/><ImageTexture url="Side.jpg"/> </Appearance>
<Box size="0.005 2 2 " />
</Shape></Transform>
<Transform translation="-1 0 0"><Shape>
<Appearance><Material diffuseColor="1 0 0"/><ImageTexture url="Side.jpg"/> </Appearance>
<Box size="0.005 2 2 " />
</Shape></Transform>
圆柱体贴图

<Shape>
<Appearance>
<Material/>
<ImageTexture url="2.png"/>
</Appearance>
<Cylinder bottom="false" height="3.2" side="false"/>
</Shape>
<Shape>
<Appearance>
<Material/>
<ImageTexture url="3.png"/>
</Appearance>
<Cylinder height="3.2" side="false" top="false"/>
</Shape>
<Shape>
<Appearance>
<Material/>
<ImageTexture url="1.jpg"/>
</Appearance>
<Cylinder bottom="false" height="3.2" top="false"/>
</Shape>
球体

包起来
<Shape>
<Appearance>
<ImageTexture url="2.jpg" />
</Appearance>
<Sphere />
</Shape>
视频纹理

MovieTexture
loop 是否循环播放
url 视频地址
<Shape>
<Appearance>
<MovieTexture loop= " true "   url= " 1.mpg " />
</Appearance>
<Box />
</Shape>
例子:电视

前端
<Transform translation ="0 0 0">
<Shape>
<Appearance>
<Material diffuseColor="0.9 0.9 0.9" />      
</Appearance>
<Box size="4 4 1"/>
</Shape>
</Transform>
后端
<Transform translation ="0 0 -1">
<Shape>
<Appearance>
<Material diffuseColor="0.9 0.9 0.9" />      
</Appearance>
<Box size="3 3 1"/>
</Shape>
</Transform>
天线
<Transform translation ="-1.4 2.6 0">
<Shape>
<Appearance>
<Material diffuseColor="1 1 0" />      
</Appearance>
<Cylinder height="1.2" radius="0.1" />
</Shape>
</Transform>
屏幕
<Transform translation ="0 0 0.5">
<Shape>
<Appearance>
<MovieTexture loop="true" url="Temp/sp.avi"/>
</Appearance>
<Box size="3.6 3.6 0.12"/>
</Shape>
</Transform>
纹理变换TextureTransform

rotation 旋转
scale 缩放
translation 位置
<Shape>
<Appearance>
<ImageTexture    url= " 1.jpg " />
<TextureTransform translation= " 0.5 0 " />
</Appearance>
<Box />
</Shape>
<TextureTransform rotation= " 45 " />
<TextureTransform scale="2 3" />
分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

168

主题

1

听众

3637

积分

中级设计师

Rank: 5Rank: 5

纳金币
3637
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

沙发
发表于 2011-12-27 13:37:17 |只看该作者
四哥路过,其他闪道!
回复

使用道具 举报

0

主题

1

听众

1106

积分

助理设计师

Rank: 4

纳金币
1106
精华
0
板凳
发表于 2011-12-27 13:37:33 |只看该作者
回复

使用道具 举报

0

主题

1

听众

1106

积分

助理设计师

Rank: 4

纳金币
1106
精华
0
地板
发表于 2011-12-27 13:37:45 |只看该作者
回复

使用道具 举报

0

主题

1

听众

1122

积分

助理设计师

Rank: 4

纳金币
1122
精华
0
5#
发表于 2011-12-27 13:38:07 |只看该作者
回复

使用道具 举报

12

主题

1

听众

1311

积分

助理设计师

Rank: 4

纳金币
1311
精华
0
6#
发表于 2011-12-27 13:49:15 |只看该作者
晕死
回复

使用道具 举报

tc    

5089

主题

1

听众

33万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

7#
发表于 2012-2-1 23:30:35 |只看该作者
很经典,很实用,学习了!
回复

使用道具 举报

tc    

5089

主题

1

听众

33万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

8#
发表于 2012-3-16 23:31:30 |只看该作者
不错哦,顶一下......
回复

使用道具 举报

5969

主题

1

听众

39万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

9#
发表于 2012-4-22 23:21:32 |只看该作者
我是老实人,我来也!
回复

使用道具 举报

462

主题

1

听众

31万

积分

首席设计师

Rank: 8Rank: 8

纳金币
2
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

10#
发表于 2012-5-23 23:21:36 |只看该作者
很经典,很实用,学习了!
回复

使用道具 举报

12 第1页 | 共2 页下一页
返回列表 发新帖
您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2025-2-7 15:06 , Processed in 0.078460 second(s), 28 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部