附錄AVRML參考節(jié)點_第1頁
附錄AVRML參考節(jié)點_第2頁
附錄AVRML參考節(jié)點_第3頁
附錄AVRML參考節(jié)點_第4頁
附錄AVRML參考節(jié)點_第5頁
已閱讀5頁,還剩9頁未讀 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、附錄A VRML參考節(jié)點VRML節(jié)點集包括基本幾何節(jié)點、復(fù)雜群節(jié)點、VRML場景效果節(jié)點、動畫節(jié)點及動態(tài)感知節(jié)點等。排序后的VRML節(jié)點集如下。1Anchor錨節(jié)點,是超級鏈接群節(jié)點,具有超級鏈接網(wǎng)絡(luò)文件和站點功能。Anchor錨節(jié)點的語法定義:節(jié)點名 域名和域值 域值類型 Anchor ur1 “” #exposeField MFString children #esposeFieldMFNode description “”#exposeFieldSFString parameter #exposeFiledMFString bboxCenter 0 0 0 #filedSFVec3fbb

2、oxSize -1 -1 1#filed SFVec3faddChildren #eventInMFNoderemoveChildren #eventInMFNode2Appearance外觀屬性節(jié)點,作為Shape節(jié)點指定材質(zhì)和紋理,這一節(jié)點是通過對它的域的控制來實現(xiàn)的。Appearance節(jié)點的語法定義:Appearancematerial NULL #exposedField SFNode外觀的材料節(jié)點texture NULL #exposedField SFNode紋理映像textureTransform NULL #exposedField SFNode紋理坐標變換 3AudioCl

3、ip音響剪輯節(jié)點,不能單獨使用,要和Sound聲音節(jié)點一起使用。AudioClip音響剪輯節(jié)點的語法定義:AudioClip url#exposedField MFString description “” #exposedField SFString loop FALSE #exposedField SFBool pitch 1.0 #exposedField SFFloat startTime 0.0 #exposedField SFTime stopTime 0.0 #exposedField SFTime duration_changed #eventOut SFTime isActi

4、ve #eventOut SFBool4Background背景節(jié)點,是天空、大地及室內(nèi)立體空間背景節(jié)點。Background背景節(jié)點的語法定義:Background skyColor 0.0 0.0 0.0 #exposedField MFColorskyAngle #exposedField MFFloat groundColor 0.0 0.0 0.0 #exposedField MFColor groundAngle #exposedField MFFloat frontUrl #exposedField MFString backUrl #exposedField MFStringl

5、eftUrl #exposedField MFString rightUrl #exposedField MFStringtopUrl #exposedField MFString bottomUrl #exposedField MFString set_bind #eventIn SFBool isBound #eventOut SFBool5Billboard廣告牌節(jié)點,是廣告牌群節(jié)點。Billboard廣告牌節(jié)點的語法定義:Billboard axisOfRotation 0 1 0 # exposedField SFVec3fchildren # exposedField MFNode

6、bboxCenter 0 0 0 #field SFVec3fbboxSize -1 1 -1 #field SFVec3faddChildren #eventIn MFNoderemoveChildren # eventIn MFNode6Box 盒子節(jié)點,是基本幾何模型節(jié)點。Box盒子節(jié)點的語法定義: Box size 2.0 2.0 2.0 #field SFVec3f#定義了一個立方體的寬、高、深 7Collision碰撞節(jié)點,是碰撞傳感器節(jié)點。Collision碰撞傳感器節(jié)點的語法定義:Collision children #exposedField MFNode collide T

7、RUE #exposedField SFBoolproxy NULL#field SFNode bboxCenter 0.0 0.0 0.0#field SFVec3f bboxSize -1.0 1.0 1.0#field SFVec3f collideTime #eventOut SFTime addChildren#eventIn MFNode removeChildren#eventIn MFNode8Color顏色節(jié)點。Color顏色節(jié)點的語法定義:Color color #exposedFieldMFColor9ColorInterpolator顏色插補器節(jié)點,是控制顏色變換的動態(tài)

8、節(jié)點。ColorInterpolator顏色插補器節(jié)點的語法定義: ColorInterpolator key #exposedField MFFloat keyValue #exposedField MFColor set_fraction #eventIn SFFloat value_changed #eventOut SFColor 10Cone圓錐體節(jié)點,是基本幾何模型節(jié)點。Cone圓錐體節(jié)點的語法定義:Cone bottomRadius 1.0#field SFFloat height 2.0#field SFFloatside TRUE #field SFBool bottom T

9、RUE #field SFBool 11CoordinateInterpolator坐標插補器節(jié)點,是控制坐標變換的動態(tài)節(jié)點。CoordinateInterpolator坐標插補器節(jié)點的語法定義:CoordinateInterpolator key #exposedField MFFloat keyValue #exposedField MFVec3f set-fraction #eventIn SFFloat value-changed #eventOut MFVec3f12CylinderSensor圓柱檢測器節(jié)點,是單軸旋轉(zhuǎn)型傳感器節(jié)點。CylinderSensor圓柱檢測器節(jié)點的語法定

10、義:CylinderSensor enabled TRUE#exposedField SFBool autoOffset TRUE#exposedField SFBooloffset 0#exposedField SFFloat maxAngle -1#exposedField SFFloat minAngle 0#exposedField SFFloat diskAngle 0.262#exposedField SFFloat isActive#eventOut SFBool trackPoint_changed#eventOut SFVec3f rotation_changed#event

11、Out SFRotation 13Cylinder圓柱體節(jié)點,是基本幾何模型節(jié)點。Cylinder圓柱體節(jié)點的語法定義:Cylinder radius 1.0 #field SFFloat圓柱體的半徑 height 2.0 #field SFFloat圓柱體的高top TRUE #field SFBool圓柱體的頂部 bottom TRUE #field SFBool圓柱體的底部 side TRUE #field SFBool圓柱體的曲面14DirectionalLight定向光源節(jié)點,是VRML場景效果節(jié)點。DirectionalLight定向光源節(jié)點的語法定義: DirectionalLi

12、ght ambientIntensity 0.0#exposedField SFFloatdirection 0 0 -1#exposedField SFVec3fcolor 1.0 1.0 1.0#exposedField SFColorintensity 1.0#exposedField SFFloat on TRUE#exposedField SFBool 15ElvationGrid海拔柵格節(jié)點,是創(chuàng)建復(fù)雜立體空間造型節(jié)點。ElevationGrid海拔柵格節(jié)點的語法定義:ElevationGrid xDimension 0#field SFInt32 xSpacing 0.0#fie

13、ld SFFlost zDimension 0#field SFInt32 zSpacing 0.0#field SFFloat height#field MFFloat color NULL#exposedField SFNode ColorPerVertex TRUE#field SFBool normal NULL#exposedField SFNode normalPerVertex TRUE #field SFBool texCoord NULL#exposedField SFNode ccw TRUE #field SFBool solid TRUE#field SFBool cr

14、easeAngle 0.0#field SFFloat set_height #eventIn MFFloat16EXTERNPROTO創(chuàng)建用戶外部定義的新節(jié)點。EXTERNPROTO創(chuàng)建用戶外部定義的新節(jié)點的語法定義:關(guān)鍵字 外部新節(jié)點名 EXTERNPROTO nodename#And any number of: 以下域或事件由用戶定義任意多個域或事件 域值類型 域或事件名 field fieldTypeName fieldName exposedField fieldTypeName fieldName eventIn eventInTypeName eventInName event

15、Out eventOutTypeName eventOutName“VRML外部文件名 #某新節(jié)點名”或url or urlList17Extrusion擠出造型節(jié)點,是VRML中最重要、最有用的節(jié)點。Extrusion擠出造型節(jié)點的語法定義: Extrusion crossSection #field MFVec2f1.0 1.0, 1.0 -1.0 -1.0 -1.0,-1.0 1.01.0 1.0 spine #field MFVec3f 0.0 0.0 0.0, 0.0 1.0 .0.0 scale 1.0 1.0 #field MFVec2f orientation 0.0 0.0

16、1.0 0.0 #field MFRotation beginCap TRUE #field SFBool endCap TRUE #field SFBool ccw TRUE #field SFBool solid TRUE #field SFBool convex TRUE #field SFBool creaseAngle 0.0 #field SFFloat set_spine #eventIn MFVec3f set_crossSection #eventIn MFVec2f set_scale #eventIn MFVec2f set_orientation #eventIn MF

17、Rotation 18Fog霧節(jié)點,用于空間大氣場景的一種自然現(xiàn)象的描繪。Fog霧化節(jié)點的語法定義:Fog color 1.0 1.0 1.0 #exposedFiled SFColor fogType “LINEAR” #exposedFiled SFFloat visibilityRange 0.0 #exposedFiled SFString set_bind # eventIn SFBool isBound # eventOut SFBool 19Group編組節(jié)點,是基本型群節(jié)點,可以組合基本幾何造型和復(fù)雜造型。Group編組節(jié)點的語法定義:Groupchildren #expose

18、dField MFNodebboxCenter 0.0.0.0.0.0#field SFVec3f bboxSize -1.0-1.0-1.0 #field SFVec3f addChildren #eventIn MFNode removeChildren #eventOut MFNode 20ImageTexture圖像紋理節(jié)點,是VRML立體空間造型外觀效果節(jié)點。ImageTexture圖像紋理節(jié)點的語法定義:節(jié)點名 域名和域值 域值類型 ImageTexture url #exposeField MFString repeatS TRUE#field SFBool repeaT TRU

19、E #field SFBool21IndexedLineSet“線”節(jié)點,是VRML復(fù)雜造型節(jié)點。IndexedLineSet線節(jié)點的語法定義:IndexedLineSet coord NULL#exposedField SFNode coordIndex #field MFInt32 color NULL#exposedField SFNode colorIndex #field MFInt32 colorPerVertex TURE #field SFBool set_coordIndex #eventIn MFInt32 set_colorIndex#eventIn MFInt32 22

20、IndexFaceSet“面”節(jié)點,屬于復(fù)雜造型節(jié)點范疇。IndexedFaceSet面節(jié)點的語法定義:IndexedFaceSet coord NULL #exposedField SFNodecoordIndex #fieldMFInt32texCoord NULL #exposedField SFNode texCoordIndex #fieldMFInt32color NULL#exposedField SFNodecolorIndex #field MFInt32colorPerVertex TRUE#fieldSFBoolnormal NULL #exposedField SFNo

21、denormalIndex #field MFInt32normalPerVertex TRUE #field SFBoolccw TRUE#field SFBoolconvex TRUE #field SFBoolsolid TRUE#fieldSFBoolcreaseAngle 0.0 #field SFFloatset_coordIndex#eventIn MFInt32set_texCoordIndex #eventIn MFInt32set_colorIndex#eventIn MFInt32set_normalIndex#eventIn MFInt3223Inline內(nèi)聯(lián)節(jié)點,是引

22、入型群節(jié)點。Inline內(nèi)聯(lián)節(jié)點的語法定義:Inline url “” #exposedField MFStringbboxCenter 0 0 0 #field SFVec3fbboxSize -1 1 1 # field SFVec3f 24LOD細節(jié)層次節(jié)點,是分級型群節(jié)點。LOD細節(jié)層次節(jié)點的語法定義:LOD level #exposedField MFNodecenter 0 0 0 #field SFVec3frange #field MFFloat25Material材料節(jié)點,作為Shape模型節(jié)點的子節(jié)點。Material材料節(jié)點的語法定義:MaterialdiffuseCol

23、or 0.8 0.8 0.8#exposedField SFColor材料的漫反射顏色ambientIntensify 0.2 #exposedField SFColor有多少環(huán)境光被該表面反射specularColor 0 0 0 #exposedField SFColor物體鏡面反射光線的顏色emissiveColor 0 0 0 #exposedField SFColor發(fā)光物體產(chǎn)生的光的顏色shininess 0.2#exposedField SFFloat造型外觀材料的亮度transparency 0#exposedField SFFloat物體的透明度 26MovieTexture

24、影像文件節(jié)點,是VRML的場景效果節(jié)點。MovieTexture影像文件節(jié)點的語法定義:MovieTexture url #exposedField MFString loop FALSE#exposedField SFBool speed 1.0#exposedField SFFloat startTime 0#exposedField SFTime stopTime 0#exposedField SFTime repeatS TURE#field SFBool repeatT TURE#field SFBool duration_changed #eventOut SFTime isAct

25、ive#eventOut SFBool 27NavigationInfor導(dǎo)航信息節(jié)點,是控制瀏覽者功能的節(jié)點。NavigationInfo導(dǎo)航信息節(jié)點的語法定義: 節(jié)點名 域和域值 域值類型 NavigationInfo avatarSize 0.25,1.6,0.75 #exposedField MFFLoat headlight TRUE#exposedField SFBlooltype “WALK”,“ANY” #exposedField MFStringspeed 1.0 #exposedField SFFloat visibilityLimit 0.0#exposedField S

26、FFloatset_bind#eventIn SFBool isBound #eventOut SFBool 28Normal法向量節(jié)點。Normal法向量節(jié)點的語法定義:Normal vector #exposedField MFFloat 29NormalInterpolator法線插補器節(jié)點,是控制向量變換的動態(tài)節(jié)點。NormalInterpolator法線插補器節(jié)點的語法定義:NormalInterpolator key #exposedField MFFloat keyValue #exposedField MFVec3f set-fraction#eventIn SFFloat v

27、alue-changed#eventOut MFVec3f30OrientationInterpolator朝向插補器節(jié)點,是控制方位變換的動態(tài)節(jié)點。OrientationInterpolator朝向插補器節(jié)點的語法定義:OrientationInterpolator key #exposedField MFFloat keyValue #exposedField MFVec3f set-fraction#eventIn SFFloat value-changed#eventOut MFVec3f31PlaneSensor平面檢測器節(jié)點,是平面移動型傳感器節(jié)點。PlaneSensor平面檢測器

28、節(jié)點的語法定義:PlaneSensor enabled TRUE #exposedField SFBoolautoOffset TRUE #exposedField SFBooloffset 0 0 0#exposedField SFVec3fmaxPosition -1 1 #exposedField SFVec2fminPosition 0 0 #exposedField SFVec2f isActive #eventOut SFBool trackPoint_changed #eventOut SFVec3f translation_changed#eventOut SFVec3f 32

29、PointLight點光源節(jié)點,是VRML場景效果節(jié)點。PointLight 點光源節(jié)點的語法定義:PointLight location 0.0.0.0.0.0#exposedField SFVec3f radius 100.0#exposedField SFFloat intensity 1.0#exposedField SFFloat ambientIntensity 0.0 #exposedField SFFloat color 1.0 1.0 1.0#exposedField SFColorattenuation 1.0 0.0 0.0 #exposedField SFVec3fon

30、 TRUE#exposedField SFBool33PointSet“點”節(jié)點,是復(fù)雜造型節(jié)點。PointSet“點”節(jié)點的語法定義: “點”節(jié)點名 域名 域值 域值類型 PointSet color NULL #exposedField SFNode coord NULL #exposedField SFNode34PositionInterpolator位置插補器節(jié)點,是控制位置變換的動態(tài)節(jié)點。PositionInterpolator位置插補器節(jié)點的語法定義:PositionInterpolator key #exposedField MFFloat keyValue #exposedF

31、ield MFVec3f set-fraction #eventIn SFFloat value-changed #eventOut SFVec3f 35PROTO創(chuàng)建用戶新節(jié)點,用戶根據(jù)軟件開發(fā)的需要設(shè)計自己的新節(jié)點。PROTO創(chuàng)建用戶新節(jié)點的語法定義:關(guān)鍵字 新節(jié)點名 PROTO nodename#And any number of: 以下域或事件由用戶定義任意多個域或事件 域值類型 域或事件名 域的初值 field fieldTypeName fieldName initialValue exposedField fieldTypeName fieldName initialValue

32、eventIn eventInTypeName eventInName eventOut eventOutTypeName eventOutName #新節(jié)點體 nodeBody #單個節(jié)點或組節(jié)點 36ProximtitySensor節(jié)點,是親近度傳感器節(jié)點。ProximitySensor節(jié)點的語法定義:ProximitySensor center 0 0 0#exposedField SFVec3f size 0 0 0#exposedField SFVec3f enabled TRUE#exposedField SFBool isActive#eventOut SFBool positi

33、on_changed#eventOut SFVec3f orientation_changed#eventOut SFRotation enterTime#eventOut SFTime exitTime#eventOut SFTime 37ScalarInterpolator標量插補器節(jié)點,是控制變換強度的動態(tài)節(jié)點。ScalarInterpolator標量插補器節(jié)點的語法定義:ScalarInterpolatorkey #exposedField MFFloatkeyValue#exposedField MFFloat set-fraction #eventIn SFFloat value-

34、changed #eventOut SFFloat38Script腳本節(jié)點,是程序化的節(jié)點,是VRML接口程序。Script腳本節(jié)點的語法定義:節(jié)點名 域名 域值 域值類型 Script url #exposedField MFString directOutput FALSE#fieldSFBool mustEvaluate FALSE#fieldSFBool#And any number of: 以下域或事件由用戶定義任意多個域或事件 域或事件的類型名 域或事件的名 域的初值 field fieldTypeName fieldName initialValueeventIn eventTy

35、peName eventName eventOut eventTypeName eventName 39Shape模型節(jié)點,用于創(chuàng)建基本幾何模型和復(fù)雜模型。Shape模型節(jié)點的語法定義:Shape appearance NULL#exposedField SFNode 外觀節(jié)點 geometry NULL#exposedField SFNode 幾何節(jié)點 40Sound聲音節(jié)點,是聲音發(fā)射器節(jié)點。Sound聲音節(jié)點的語法定義:Sound direction 0.0 0.0 1.0#exposedField SFVec3f intensity 1.0#exposedField SFFloat l

36、ocation 0.0 0.0 0.0#exposedField SFVec3f maxBack 10.0#exposedField SFFloat maxFront 10.0#exposedField SFFloat minBack 1.0 #exposedField SFFloat minFront 1.0#exposedField SFFloat priority 0.0#exposedField SFFloat source NULL #exposedField SFNode spatialize TRUE #exposedField SFBool41SphereSensor球面檢測器

37、節(jié)點,是任意軸旋轉(zhuǎn)型傳感器節(jié)點。SphereSensor球面檢測器節(jié)點的語法定義:SphereSensor enabled TRUE#exposedField SFBool autoOffset TRUE#exposedField SFBooloffset 0 1 0 0#exposedField SFRotationisActive #eventOut SFBooltrackPoint_changed#eventOut SFVec3f rotation_changed#eventOutSFRotation 42sphere球面體節(jié)點,是幾何模型節(jié)點。Sphere球面體節(jié)點的語法定義: Sph

38、ereradius 1.0 #field SFFloat三維球體的半徑,默認值為1.043SpotLight聚光燈節(jié)點,是聚光性光源節(jié)點。SpotLight 聚光燈節(jié)點的語法定義:SpotLight location 0.0 0.0 0.0#expodField SFVec3f radius 100#expodField SFFloat intensity 1.0#expodField SFFloat ambientIntensity 0.0#expodField SFFloatbeamWidth 1.570796 #expodField SFFloatcutOffAngle 0.785398

39、#expodField SFFloatattenuation 1.0 0.0 0.0 #expodField SFVec3f color 1.0 1.0 1.0#expodField SFColor direction 0 0-1#expodField SFVec3f on TRUE #expodField SFBool 44Switch開關(guān)節(jié)點,是選擇型群節(jié)點。Switch開關(guān)節(jié)點的語法定義:Switch choice #exposedField MFNodewhichChoice -1 # exposedField SFInt3245TextureTransform紋理變換節(jié)點,是VRML紋理效果節(jié)點。TextureTransform紋理變換節(jié)點的語法定義: TextureTransform translation 0.0 0.0 #exposedField SFVec2f center 0.0 0.0#exposedField SFVec2f rotation 0.0#exposedField

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論