5. Примеры скриптов на языке VRML |
27.08.2007 г. | |
5. Примеры скриптов на языке VRMLВ рамках данной работы я пришла к выводу, что для написания данной программы лучше подходит этапный подход. На первом этапе мы строим матрицу из 9 элементов. #VRML V2.0 utf8WorldInfo{ title "Example 1" info ["файл 1 WRL" ]}Transform{translation 1 1 0children[Shape{ appearance Appearance{ material Material{ diffuseColor 1 0.5 0 } } geometry Sphere{ }}]}Transform{translation 1 2 0children[Shape{ appearance Appearance{ material Material{ diffuseColor 0.5 0.5 0 } } geometry Sphere{ }}]}Transform{translation 1 3 0children[Shape{ appearance Appearance{ material Material{ diffuseColor 0.33333 0.5 0 } } geometry Sphere{ }}]}Transform{translation 2 1 0children[Shape{ appearance Appearance{ material Material{ diffuseColor 0.25 0.5 0 } } geometry Sphere{ }}]}Transform{translation 2 2 0children[Shape{ appearance Appearance{ material Material{ diffuseColor 0.2 0.5 0 } } geometry Sphere{ }}]}Transform{translation 2 3 0children[Shape{ appearance Appearance{ material Material{ diffuseColor 0.16667 0.5 0 } } geometry Sphere{ }}]}Transform{translation 3 1 0children[Shape{ appearance Appearance{ material Material{ diffuseColor 0.14286 0.5 0 } } & nbsp; geometry Sphere{ }}]}Transform{translation 3 2 0children[Shape{ appearance Appearance{ material Material{ diffuseColor 0.125 0.5 0 } } geometry Sphere{ }}]}Transform{translation 3 3 0children[Shape{ appearance Appearance{ material Material{ diffuseColor 0.11111 0.5 0 } } geometry Sphere{ }}]} |
|
Последнее обновление ( 28.08.2007 г. ) |