![Page 1: Tópicos Aparência Importando Arquivos Inserção de Textos Interagindo com o AV](https://reader036.vdocuments.site/reader036/viewer/2022062623/552fc10d497959413d8c4a23/html5/thumbnails/1.jpg)
Tópicos
• Aparência
• Importando Arquivos
• Inserção de Textos
• Interagindo com o AV
![Page 2: Tópicos Aparência Importando Arquivos Inserção de Textos Interagindo com o AV](https://reader036.vdocuments.site/reader036/viewer/2022062623/552fc10d497959413d8c4a23/html5/thumbnails/2.jpg)
Importando Arquivos
Nó Inline
Transform{
# transformações com o arquivo.wrl
children [
Inline {
url “arquivo.wrl"
}
]
}
![Page 3: Tópicos Aparência Importando Arquivos Inserção de Textos Interagindo com o AV](https://reader036.vdocuments.site/reader036/viewer/2022062623/552fc10d497959413d8c4a23/html5/thumbnails/3.jpg)
Aparência do AV
Nó Background: define o fundo do AV
Background {
frontUrl "imagem.jpg"
backUrl "imagem.jpg"
bottomUrl "imagem.jpg"
topUrl "imagem.jpg"
leftUrl "imagem.jpg"
rightUrl "imagem.jpg"
}
![Page 4: Tópicos Aparência Importando Arquivos Inserção de Textos Interagindo com o AV](https://reader036.vdocuments.site/reader036/viewer/2022062623/552fc10d497959413d8c4a23/html5/thumbnails/4.jpg)
Nó Billboard: a figura 2D é automaticamente rotacionada para ficar de frente para a câmera Billboard
{
children
Shape {
appearance Appearance {
texture ImageTexture { url "texturas\arvore.gif" }
}
geometry Box {
size 2 4 0
}
}
}
Aparência do AV
![Page 5: Tópicos Aparência Importando Arquivos Inserção de Textos Interagindo com o AV](https://reader036.vdocuments.site/reader036/viewer/2022062623/552fc10d497959413d8c4a23/html5/thumbnails/5.jpg)
Tarefa #4
• Definir chão para o AV (box 40x40)
• Definir céu para o AV
•Definir algumas arvores do tipo billboard (DEF/USE)
![Page 6: Tópicos Aparência Importando Arquivos Inserção de Textos Interagindo com o AV](https://reader036.vdocuments.site/reader036/viewer/2022062623/552fc10d497959413d8c4a23/html5/thumbnails/6.jpg)
Inserindo Texto
Nó text: adição de texto no AV
Shape{
appearance Appearance {
material Material { }
}
geometry Text {
string [ ]
fontStyle NULL
}
}
![Page 7: Tópicos Aparência Importando Arquivos Inserção de Textos Interagindo com o AV](https://reader036.vdocuments.site/reader036/viewer/2022062623/552fc10d497959413d8c4a23/html5/thumbnails/7.jpg)
Inserindo Texto
![Page 8: Tópicos Aparência Importando Arquivos Inserção de Textos Interagindo com o AV](https://reader036.vdocuments.site/reader036/viewer/2022062623/552fc10d497959413d8c4a23/html5/thumbnails/8.jpg)
Inserindo Texto
Nó fontStyle: adição de texto no AV
geometry Text {
string “Programando em VRML”
fontStyle FontStyle
{
family “SERIF”
style “PLAIN”
size 1.0
justify “BEGIN”
horizontal TRUE
}
}
![Page 9: Tópicos Aparência Importando Arquivos Inserção de Textos Interagindo com o AV](https://reader036.vdocuments.site/reader036/viewer/2022062623/552fc10d497959413d8c4a23/html5/thumbnails/9.jpg)
Inserindo Texto
![Page 10: Tópicos Aparência Importando Arquivos Inserção de Textos Interagindo com o AV](https://reader036.vdocuments.site/reader036/viewer/2022062623/552fc10d497959413d8c4a23/html5/thumbnails/10.jpg)
Tarefa #5
Inserir no AV um outdoor com texto
texto
box
![Page 11: Tópicos Aparência Importando Arquivos Inserção de Textos Interagindo com o AV](https://reader036.vdocuments.site/reader036/viewer/2022062623/552fc10d497959413d8c4a23/html5/thumbnails/11.jpg)
Interagindo com o AV
Group{
children[
DEF OBJETO Transform{
children[
Shape {...}
]
},
DEF INTERAÇÂO tipo_da_Interação{}
]
}
ROUTE associação da INTERAÇÂO para o OBJETO
![Page 12: Tópicos Aparência Importando Arquivos Inserção de Textos Interagindo com o AV](https://reader036.vdocuments.site/reader036/viewer/2022062623/552fc10d497959413d8c4a23/html5/thumbnails/12.jpg)
Interagindo com o AV
Nó CylinderSensor: rotação do objeto em torno do eixo Y
![Page 13: Tópicos Aparência Importando Arquivos Inserção de Textos Interagindo com o AV](https://reader036.vdocuments.site/reader036/viewer/2022062623/552fc10d497959413d8c4a23/html5/thumbnails/13.jpg)
Interagindo com o AV
Nó SphereSensor: rotação do objeto em torno dos 3 eixos
![Page 14: Tópicos Aparência Importando Arquivos Inserção de Textos Interagindo com o AV](https://reader036.vdocuments.site/reader036/viewer/2022062623/552fc10d497959413d8c4a23/html5/thumbnails/14.jpg)
Tarefa #6
Modelar uma luminária da seguinte maneira:
sphereSensor