Matemática e Computação.com
 

Mensagens
Não te abandones em lugares onde a luz da tua harmonia não esteja presente.

 


Exemplo 130: Exemplo 01 de NavigationInfo

NavigationInfo {
     type [""] # Testar com FLY, WALK, EXAMINE, NONE
}
Shape {
     appearance Appearance {
          material Material {
               diffuseColor .8 .51 .196
               specularColor .925 .643 .298
               ambientIntensity .117
               shininess .4
               emissiveColor .22 .208 .22
          }
     }
     geometry Box {
     }
}

Exemplo 131: Exemplo 02 de NavigationInfo

NavigationInfo {
     type [""] # Testar com FLY, WALK, EXAMINE, NONE
     speed 20 # Testar 0.2, 2, 20, 100
}
Shape {
     appearance Appearance {
          material Material {
               diffuseColor .8 .51 .196
               specularColor .925 .643 .298
               ambientIntensity .117
               shininess .4
               emissiveColor .22 .208 .22
          }
     }
     geometry Box {
     }
}

Exemplo 132: Exemplo 03 de NavigationInfo

NavigationInfo {
     type [""] # Testar com FLY, WALK, EXAMINE, NONE
     speed 20 # Testar 0.2, 2, 20, 100
     visibilityLimit 20 # Testar 1, 10, 20, 50, 100
}
Shape {
     appearance Appearance {
          material Material {
               diffuseColor .8 .51 .196
               specularColor .925 .643 .298
               ambientIntensity .117
               shininess .4
               emissiveColor .22 .208 .22
          }
     }
     geometry Box {
     }
}

Exemplo 133: Exemplo 04 de NavigationInfo

NavigationInfo {
     type [""] # Testar com FLY, WALK, EXAMINE, NONE
     speed 20 # Testar 0.2, 2, 20, 100
     visibilityLimit 20 # Testar 1, 10, 20, 50, 100
     headlight TRUE # Testar FALSE
}
Shape {
     appearance Appearance {
          material Material {
               diffuseColor .8 .51 .196
               specularColor .925 .643 .298
               ambientIntensity .117
               shininess .4
               emissiveColor .22 .208 .22
          }
     }
     geometry Box {
     }
}

Exemplo 134: Exemplo 05 de NavigationInfo

NavigationInfo {
     type [""] # Testar com FLY, WALK, EXAMINE, NONE
     speed 20 # Testar 0.2, 2, 20, 100
     visibilityLimit 20 # Testar 1, 10, 20, 50, 100
     headlight TRUE
     avatarSize [ 10 4 1 ] # Testar outros valores
}
Shape {
     appearance Appearance {
          material Material {
               diffuseColor .8 .51 .196
               specularColor .925 .643 .298
               ambientIntensity .117
               shininess .4
               emissiveColor .22 .208 .22
          }
     }
     geometry Box {
     }
}

Exemplo 135: Exemplo 06 de NavigationInfo

NavigationInfo {
     type [""] # Testar com FLY, WALK, EXAMINE, NONE
     speed 20 # Testar 0.2, 2, 20, 100
     visibilityLimit 30 # Testar 1, 10, 20, 50, 100
     headlight TRUE
     avatarSize [ 1 2 1 ] # Testar outros valores
}
Viewpoint {
     position 0 5 10
}
DEF Gr Transform {
     children [
          Transform {
               translation 0 0 0
               children [
                    DEF Bloco Shape {
                         appearance Appearance {
                              material Material {
                                   diffuseColor .8 .51 .196
                                   specularColor .925 .643 .298
                                   ambientIntensity .117
                                   shininess .4
                                   emissiveColor .22 .208 .22
                              }
                         }
                         geometry Box {
                              size 2 2 4
                         }
                    }
               ]
          }
          Transform {
               translation 2 0 -4
               children USE Bloco
          }
          Transform {
               translation 4 0 -8
               children USE Bloco
          }
          Transform {
               translation 6 0 -12
               children USE Bloco
          }
          Transform {
               translation 8 0 -16
               children USE Bloco
          }
     ]
}
DEF Tempo TimeSensor {
     cycleInterval 8
     loop TRUE
}
DEF IP PositionInterpolator {
     key [ 0 0.5 1 ]
     keyValue [ 0 0 0, 0 0 -25, 0 0 0 ]
}
ROUTE Tempo.fraction_changed TO IP.set_fraction
ROUTE IP.value_changed TO Gr.translation