Sphere球体节点
来源:互联网 发布:淘宝地址库 编辑:程序博客网 时间:2024/04/28 15:07
Sphere球体节点域、域名和域值:
DEF为节点定义一个名字,给该节点定义了唯一的ID,在其他节点就可以引用这个节点;
USE用来引用DEF定义的节点ID,即引用DEF定义的节点名字,同时忽略其他的属性和子对象;
radius域:定义一个以原点为球心的三维体的半径;
solid域:定义一个布尔量,当该值为“true”时,表示只构建球体对象的表面,不构建背面,当该值为“false”时,表示球体对象的正面和背面均被构建,默认值是“true”;
containerField域:表示容器域是field域标签的前缀,表示了子节点与父节点的关系;
class域:是用空格分开的类的列表,保留给XML样式表使用,只有X3D场景用XML编码时才支持class属性。
源代码:
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE X3D PUBLIC "http://www.web3d.org/specifications/x3d-3.1.dtd"
- "file:///www.web3d.org/TaskGroups/x3d/translation/x3d-3.1.dtd">
- <!--Warning: transitional DOCTYPE in source .x3d file-->
- <X3D profile="Immersive" version="3.1"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.1.xsd">
- <head>
- <meta content="px3d5-2.x3d" name="filename"/>
- <meta content="zjz-zjr-zjd" name="author"/>
- <meta content="*enter name of original author here*" name="creator"/>
- <meta
- content="*enter copyright information here* Example: Copyright (c) Web3D Consortium Inc. 2006" name="rights"/>
- <meta
- content="*enter online Uniform Resource Identifier (URI) or Uniform Resource Locator (URL) address for this file here*" name="identifier"/>
- <meta
- content="X3D-Edit, http://www.web3d.org/x3d/content/README.X3D-Edit.html" name="generator"/>
- </head>
- <Scene>
- <Background skyColor="0.98 0.98 0.98"/>
- <Shape>
- <Appearance>
- <Material ambientIntensity="0.4" diffuseColor="0.3 0.2 0.0"
- shininess="0.2" specularColor="0.7 0.7 0.6" transparency="0"/>
- </Appearance>
- <Sphere radius="2"/>
- </Shape>
- </Scene>
- </X3D>
- Sphere球体节点
- Sphere
- 下面的两种方法都能够将Sphere变为Cube 父节点元素
- n-sphere
- Sphere SUBLEX
- 玻璃球体
- 绘制球体
- 球体问题
- 球体问题
- CSS 球体
- CSS3D--球体
- 画球体
- 发射球体和销毁球体
- 碰撞检测之Sphere-Sphere检测
- IBM web sphere
- Surface & Sphere - Microsoft
- cone sphere cube
- Sector/Sphere安装配置
- 关于 QuickTime MP4文件格式的流媒体播放
- Geometry几何节点
- 写学术论文的技巧
- Shape节点源程序实例
- 剖析Linux系统启动过程
- Sphere球体节点
- DDK + VC6 配置
- Extjs panel 示例
- Spket IDE介绍
- 多线程图片下载程序的修改心得.
- Constrained MLLR for Speaker Recognition
- 中国落后美国40年,但20年就可赶超
- 中国的iPhone girl---小错误出大名^_^WATER
- 替换开机画面