media @ VU
[] readme course preface I 1 2 II 3 4 III 5 6 7 IV 8 9 10 V 11 12 afterthoughts appendix references examples resources _

talk show tell print

web3d-x-nurb.vr

web3d-x-nurb.vr (wrl ) [ flux / bitmanagement / cortona / octaga ]

Web3D/VR

simple nurb

scene


  NavigationInfo {
          type ["EXAMINE","ANY"]
  
  }
  
  DEF Viewpoint1 Viewpoint {
  fieldOfView 0.844104
  orientation 0 0 1 0
  position 0 0 4.00859
  description "Viewpoint1"
  }
  
  

extern proto


  
  EXTERNPROTO NurbsSurface [
  field        SFInt32  uDimension 
  field        SFInt32  vDimension 
  field        MFFloat  uKnot  
  field        MFFloat  vKnot 
  field        SFInt32  uOrder 
  field        SFInt32  vOrder 
  exposedField MFVec3f  controlPoint
  exposedField MFFloat  weight
  exposedField SFInt32  uTessellation
  exposedField SFInt32  vTessellation
  exposedField SFNode   texCoord
  field        SFBool   ccw
  field        SFBool   solid
  ]
  [
          "urn:inet:blaxxun.com:node:NurbsSurface",
          "nurbs.wrl#NurbsSurface"  # for local testing
          "<a href=http://www.blaxxun.co>/vrml/protos/nurbs.wrl#NurbsSurface"
  ]
  
  

transform root


  
  Transform {
  translation -1.5 -1.5 0
  children [
  Shape { 
          geometry DEF nurb NurbsSurface {
                  uOrder 4 
                  vOrder 4 
                  uDimension 4 
                  vDimension 4 
                  uKnot [ 0, 0, 0, 0, 3, 3, 3, 3]
                  vKnot [ 0, 0, 0, 0, 3, 3, 3, 3]
  
  

nurb surface control points


                  controlPoint[
                          0 0 0, 1 0 0, 2 0 0, 3 0 0,
                          0 1 0, 1 1 0, 2 1 0, 3 1 0, 
                          0 2 0, 1 2 0, 2 2 0, 3 2 0, 
                          0 3 0, 1 3 0, 2 3 0, 3 3 0]
  
                  weight [
                          1.000000, 1.000000, 1.000000,
                          1.000000, 1.000000, 1.000000,
                          1.000000, 1.000000, 1.000000,
                          2.000000, 1.000000, 1.000000,
                          1.000000, 1.000000, 1.000000, 1.000000,]
                   }
  

appearance


  appearance Appearance {
     material Material { diffuseColor 0 0 1 emissiveColor 1 0 0}  # Blue 
     texture ImageTexture {url "alchemy.gif"}
          #                textureTransform TextureTransform {
          #                                center 0.6 0
          #                                translation .5 .5
          #                                scale 1 1
          #                        }
                               }
  }        
  ]
  }
  
  


(C) A. Eliëns 21/5/2007

You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.