Исследовательская работа на тему: Создание 3D изображений в среде програмирования VRML V2.0.
Вложение | Размер |
---|---|
Текст программы | 36.5 КБ |
#VRML V2.0 utf8
# .
Transform {
children [
Shape {
appearance Appearance {
material Material {}
#texture ImageTexture {url "klava.jpg"}
}
geometry IndexedFaceSet {
coord Coordinate {
point [
0 0.7 0, 0 -7.7 0, 1.2 -8.3 0, 3.5 -8.3 0, 4.7 -7.7 0, 4.7 0.7 0, #
0 0.7 -0.7, 0 -7.7 -0.7, 1.2 -8.3 -0.7, 3.5 -8.3 -0.7, 4.7 -7.7 -0.7, 4.7 0.7 -0.7, # ()
0.3 0.6 -1, 0.3 -7.5 -1, 1.2 -8.1 -1, 3.5 -8.1 -1, 4.5 -7.5 -1, 4.5 0.6 -1, #
]
}
coordIndex [
0, 1, 2, 3, 4, 5, -1, #
17, 16, 15, 14, 13, 12, -1, #
0, 6, 7, 1, -1, 1, 7, 8, 2, -1, 2, 8, 9, 3, -1, 3, 9, 10, 4, -1, 4, 10, 11, 5, -1, #
12, 13, 7, 6, -1, 13, 14, 8, 7, -1, 14, 15, 9, 8, -1, 15, 16, 10, 9, -1, 16, 17, 11, 10, -1,
0, 5, 11, 6, -1, 6, 11, 17, 12, -1,
]
}
}
]
}
#.
Transform {
translation 0 1.2 0.6
rotation 1 0 0 0.3
children [
Shape {
appearance Appearance {
material Material {}
}
geometry IndexedFaceSet {
coord Coordinate {
point [
0 -0.5 0, 0 7.7 0, 0.6 8 0, 1.2 8.3 0, 3.5 8.3 0, 4.1 8 0, 4.7 7.7 0, 4.7 -0.5 0, # ( 0 7 )
0.3 0.8 0, 4.5 0.8 0, 4.5 6 0, 0.3 6 0, #. ( 8 11 )
0.3 0.8 -0.1, 4.5 0.8 -0.1, 4.5 6 -0.1, 0.3 6 -0.1, #. ( 12 15 )
0 -0.5 -0.7, 0 7.7 -0.7, 0.6 8 -0.7, 1.2 8.3 -0.7, 3.5 8.3 -0.7, 4.1 8 -0.7, 4.7 7.7 -0.7, 4.7 -0.5 -0.7, # (16-23)
0.3 -0.4 -1, 0.3 7.5 -1, 0.6 7.8 -1, 1.2 8.1 -1, 3.5 8.1 -1, 4.1 7.8 -1, 4.5 7.5 -1, 4.5 -0.4 -1, # (24-31)
]
}
coordIndex [
0, 7, 6, 5, 4, 3, 2, 1, 11, 10, 9, 8, 11, 1, -1, #
# 12, 13, 14, 15, -1, #
8, 12, 15, 11, -1, 11, 15, 14, 10, -1, 10, 14, 13, 9, -1, 9, 13, 12, 8, -1 #
0, 1, 17, 16, -1, 1, 2, 18, 17, -1, 2, 3, 19, 18, -1, 3, 4, 20, 19, -1, #
4, 5, 21, 20, -1, 5, 6, 22, 21, -1, 6, 7, 23, 22, -1,
16, 17, 25, 24, -1, 17, 18, 26, 25, -1, 18, 19, 27, 26, -1, 19, 20, 28, 27, -1,
20, 21, 29, 28, -1, 21, 22, 30, 29, -1, 22, 23, 31, 30, -1,
24, 25, 26, 27, 28, 29, 30, 31, -1, #
24, 31, 23, 16, -1, 16, 23, 7, 0, -1,
]
}
}
#
Transform {
translation 1 6.3 0.002
children [
Shape {appearance Appearance {material Material {diffuseColor 0 0 0}}
geometry Text {
string "Sony Ericsson"
fontStyle FontStyle {size 0.5}
}
}
]
}
#
Shape {
appearance Appearance {
material Material {}
texture MovieTexture {
url "video.mpg"
loop TRUE
}
}
geometry IndexedFaceSet {
coord Coordinate {
point [
0.3 0.8 0, 4.5 0.8 0, 4.5 6 0, 0.3 6 0, #. ( 12 15 )
]
}
coordIndex [
1, 2, 3, 0, -1,
]
}
}
]
}
#
Transform {
rotation 0 0 1 1.57
translation 2.35 0.7 0.2
children [
Shape {
appearance Appearance {
material Material {}
}
geometry Cylinder {
radius 0.7
height 4.8
}
}
]
}
Transform {
rotation 0 0 1 1.57
translation 1 0.7 0.2
children [
Shape {
appearance Appearance {
material Material {diffuseColor 0.1 0.1 0.1}
}
geometry Cylinder {
radius 0.71
height 0.8
}
}
]
}
Transform {
rotation 0 0 1 1.57
translation 3.8 0.7 0.2
children [
Shape {
appearance Appearance {
material Material {diffuseColor 0.1 0.1 0.1}
}
geometry Cylinder {
radius 0.71
height 0.8
}
}
]
}
# . ()
DEF Button_c Transform {
translation 2.35 -3 0
children [
Shape {
appearance Appearance {
material Material {diffuseColor 0.1 0.1 0.1}
}
geometry Box {
size 1.4 0.5 0.1
}
}
]
}
Transform {
translation -1.45 0.1 0
children [
USE Button_c
]
}
Transform {
translation 1.45 0.1 0
children [
USE Button_c
]
}
# (2)
Transform {
translation 0 -0.8 0
children [
USE Button_c
]
}
# (1)
Transform {
translation -1.45 -0.8 0
children [
USE Button_c
]
}
# (3)
Transform {
translation 1.45 -0.8 0
children [
USE Button_c
]
}
# (5)
Transform {
translation 0 -1.6 0
children [
USE Button_c
]
}
# (4)
Transform {
translation -1.45 -1.6 0
children [
USE Button_c
]
}
# (6)
Transform {
translation 1.45 -1.6 0
children [
USE Button_c
]
}
# (8)
Transform {
translation 0 -2.4 0
children [
USE Button_c
]
}
# (7)
Transform {
translation -1.45 -2.4 0
children [
USE Button_c
]
}
# (9)
Transform {
translation 1.45 -2.4 0
children [
USE Button_c
]
}
# (0)
Transform {
translation 0 -3.2 0
children [
USE Button_c
]
}
# (*)
Transform {
translation -1.45 -3.2 0
children [
USE Button_c
]
}
# (#)
Transform {
translation 1.45 -3.2 0
children [
USE Button_c
]
}
# .
DEF Button_f Transform {
translation 0.7 -1 0
children [
Shape {
appearance Appearance {
material Material {diffuseColor 0.5 0.5 0.5}
}
geometry Box {
size 0.6 0.6 0.1
}
}
]
}
# (.)
Transform {
translation 3.3 0 0
children [
USE Button_f
]
}
# ()
Transform {
translation 0 -1 0
children [
USE Button_f
]
}
# (c)
Transform {
translation 3.3 -1 0
children [
USE Button_f
]
}
# (-)
Transform {
translation 1.65 -0.5 0
children [
USE Button_f
]
}
#
Transform {
rotation 1 0 0 1.57
translation 2.35 -1.5 0
children [
Shape {
appearance Appearance {
material Material {diffuseColor 0.59 0.59 0.59}
}
geometry Cylinder {
radius 0.9
height 0.08
}
}
]
}
# ()
Transform {
translation 0.4 -6.1 0
children [
USE Button_f
]
}
Снеговик
Сказка об одной Тайне
Карты планет и спутников Солнечной системы
Гном Гномыч и Изюмка. Агнеш Балинт
У меня в портфеле