TextureCoordinate纹理坐标节点

 TextureCoordinate纹理坐标节点域、域名和域值:

DEF为节点定义一个名字,给该节点定义了唯一的ID,在其他节点就可以引用这个节点; 

USE用来引用DEF定义的节点ID,即引用DEF定义的节点名字,同时忽略其他的属性和子对象;

point域:指定了纹理图像在纹理坐标中的位置;

containerField域:表示容器域是field域标签的前缀,表示了子节点与父节点的关系;

class域:是用空格分开的类的列表,保留给XML样式表使用,只有X3D场景用XML编码时才支持class属性。

 

源代码:

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE X3D PUBLIC "http://www.web3d.org/specifications/x3d-3.1.dtd"
  3.                      "file:///www.web3d.org/TaskGroups/x3d/translation/x3d-3.1.dtd">
  4. <!--Warning:  transitional DOCTYPE in source .x3d file-->
  5. <X3D profile="Immersive" version="3.1"
  6.   xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.1.xsd">
  7.   <head>
  8.     <meta content="px3d8-4.x3d" name="filename"/>
  9.     <meta content="zjz-zjr-zjd" name="author"/>
  10.     <meta content="*enter name of original author here*" name="creator"/>
  11.     <meta
  12.       content="*enter copyright information here* Example:  Copyright (c) Web3D Consortium Inc. 2006" name="rights"/>
  13.     <meta
  14.       content="*enter online Uniform Resource Identifier (URI) or Uniform Resource Locator (URL) address for this file here*" name="identifier"/>
  15.     <meta
  16.       content="X3D-Edit, http://www.web3d.org/x3d/content/README.X3D-Edit.html" name="generator"/>
  17.   </head>
  18.   <Scene>
  19.     <Background skyColor="0.98 0.98 0.98"/>
  20.     <Transform rotation="1 0 0 6.284">
  21.       <Shape>
  22.         <Appearance>
  23.           <ImageTexture url="0059.jpg"/>
  24.         </Appearance>
  25.         <IndexedFaceSet coordIndex="0,1,2,3" solid="false">
  26.           <Coordinate point="3.0 3.0 0.0,3.0 -3.0 0.0, -3.0 -3.0 0.0,-3.0 3.0 0.0,"/>
  27.           <TextureCoordinate point="1.0 1.0,1.0 -1.0, -1.0 -1.0,-1.0 1.0,"/>
  28.         </IndexedFaceSet>
  29.       </Shape>
  30.     </Transform>
  31.   </Scene>
  32. </X3D>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值