miércoles, 18 de abril de 2012

Ejemplos de agrupacionde nodos.

#VRML V2.0 utf8
Transform {
translation 1 0 0
rotation 1 0 2 1
children [
Shape{
                appearance Appearance{
                material Material{
                diffuseColor 0 0 0.5
                emissiveColor 0 0.5 0.5
                specularColor 0.75 0.75 0.75
                ambientIntensity .8
                transparency .5
                shininess .3
}
}
geometry Box {size 4 3 5}
}
]
}
Transform {
translation 9 8 7
rotation 1 0 2 1
children [
Shape{
                appearance Appearance{
                material Material{
                diffuseColor 0 0 0.5
                emissiveColor 0 0.5 0.5
                specularColor 0.75 0.75 0.75
                ambientIntensity .8
                transparency .5
                shininess .3
}
}
geometry Cylinder{
                height 8.0
                radius 5.0
}
}
]
}


        
#VRML V2.0 utf8
DEF ball Shape{
                appearance Appearance{
                material Material { }
                                                               }
                               geometry Sphere {
                               radius  0.5  #radius in units                                                           
                                               }
                             }
    Transform {
      translation 2 0 0
      children   [ USE ball ]
    }
    Transform {
      translation -2 0 0
      children    [ USE ball ]
    }
      














No hay comentarios:

Publicar un comentario