您的位置:首页 > 其它

Shape节点源程序实例

2008-08-29 18:39 176 查看
<?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-1.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"/>

<Transform scale="1 2 1" translation="0 2.5 0">

<Shape>

<Appearance>

<Material diffuseColor="0 0 0"/>

</Appearance>

<Sphere radius="0.25"/>

</Shape>

</Transform>

<Transform translation="0 0 0">

<Shape>

<Appearance>

<Material ambientIntensity="0.4" diffuseColor="0.5 0.5 0.7"

shininess="0.2" specularColor="0.8 0.8 0.9"/>

</Appearance>

<Cylinder bottom="true" height="5" radius="0.25" side="true" top="true"/>

</Shape>

</Transform>

<Transform rotation="0 0 1 3.141" translation="0 -3 0">

<Shape>

<Appearance>

<Material diffuseColor="0 0 1"/>

</Appearance>

<Cone bottom="true" bottomRadius="0.25" height="1" side="true"/>

</Shape>

</Transform>

<Transform translation="0 -3.35 0">

<Shape>

<Appearance>

<Material ambientIntensity="0.4" diffuseColor="0.5 0.5 0.7"

shininess="0.2" specularColor="0.8 0.8 0.9"/>

</Appearance>

<Cylinder height="0.5" radius="0.02"/>

</Shape>

</Transform>

</Scene>

</X3D>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: