������������ ��� ����, ����� ���������� �������� ��������� ������������ ������� ����� � ����, ������� ��� ��������. ��������� ���� ���� � ����� MaterialBinding ( ������� ����������� ������ ), ����� ������� �������� ����� �������� ���.
- ������ :
- Material {
- ambientColor 0.2 0.2 0.2
- diffuseColor 0.7 0.7 0.7
- specularColor 0 0 0
- shininess 0.2
- emissiveColor 0 0 0
- transparency 0
- }
- diffuseColor 0.7 0.7 0.7
- ambientColor,diffuseColor,specularColor -
- ��������� ������� � ����������� � ������� RGB(�������, �������, �����)
- shininess � transparency -
- ���������� ������� ������������, � ����� ��������� �������� �� 0 (�� ����������) �� 1 (����������).��� ����, ����� ������ �������� ����� �����, ���������� ���� shininess ������ 1. ����� ������� ������ ����������, ���������� �������� ���� transparensy ������ 1.
���� Material ���������� ��, ��� �������� ��������. ���������� ��������, ��� ��������� ����� �������������� �������� ��-�������. ��� ����, ����� ������� ��������� � ��������, �������, �������� VRML ���������� ���� MaterialBinding.
MaterialBinding
��������� VRML ���������� ���� ���� ��� ����, ����� ����������, ����� ������� ������ ������� ������ ������� ������� ��������� � �������� ������ ����� �����.
- ������ :
- MaterailBinding {
- value DEFAULT # SFEnum
- }
- value DEFAULT # SFEnum
- value -
- ���������, ��� ���� MaterialBinding ��������� �������� � ��������, ��� �������, �������, ���������.
- �������� :
- DEFAULT - ������� ���������� ���������� �� ���������
- OVERALL - ������� ���������� �� ����� ���������� �� ����� �������
- PER_FACE - ������� ���������� ��������� �������� � ������ ����� �������
- PER_FACE_INDEXED - ������� ���������� ��������� �������� � ������ ����� �������, ����������� �� ��������� ������� ���������
- PER_PART - ������� ���������� ��������� �������� � ������ ����� �������
- PER_PART_INDEXED - ������� ���������� ��������� �������� � ������ ����� �������, ����������� �� ��������� ������� ���������
- PER_VERTEX - ������� ���������� ��������� �������� ��� ������ ������� �������
- PER_VERTEX_INDEXED - ������� ���������� ��������� �������� ��� ������ ������� �������, ����������� �� ������� ���������
- �������� :
��������, ��� ������� ����� ���������������� ���������� ��������� ��� ������� ����, ��� ������ �������, ����� ��������� �������. ������� �������� ������ ����� ������� ��������, ������� ���������� ������ ��������� ���� ����� ����������. ��������� ���� ���������� ����� ����� ��������� ��������, ���� MaterialBinding ����������, ����� �������� ������� ���������, �.�. ��������� ��������� � �������� �����. ����� ������� ������ ������� ����� ���������� � ��������, �� ���������� ������������� �������� ���������� �� ������ �� �����.
Texture2
������������ ��������� ������������.
- ��������� :
- Texture2 {
- filename "image.gif"
- image 0 0 0
- wrapS REPEAT
- wrapT REPEAT
- }
- image 0 0 0
- � �������� �������� ����� ����� ��������� ����������� ����. ����� ��� "�����������"
����������� �� ������ ���������� ������ ������� ���� � ����� � ��������� filename.
- wrapS,wrapT - ��������� ����������� �������� �� ������ �� �������������� ������������� � ������������ ����.
- ��������� �������� :
- wrapS,wrapT
- wrapS,wrapT - ��������� ����������� �������� �� ������ �� �������������� ������������� � ������������ ����.
- REPEAT
- CLAMP
Texture2Transform
������������ ��� ����, ����� ���������� ��������� ��������������, ������� ������� ��������� � ����������� ��������. ���� ������������ �� ������, ������� ������� ����������� �������� �� ����������� ����.
- ������ :
- Texture2Transform {
- center 0 0 # SFVec2f
- rotation 0 # SFFloat
- scaleFactor 1 1 # SFVec2f
- translation 0 0 # SFVec2f
- }
- center 0 0 # SFVec2f
- translation -
- ���������� ������������ ��������������� ������������ ������������ �����, ������ � �������� ������.
- rotation -
- ������ �������� ������ ��� �� ����� �����.
- ������ ��� ���� ���������� ��������� ��������������, ������� ������� ��������� � ���������.
TextureCoordinate2
������������ ��� ����, ����� ���������� ����� ��������� ���������, ������� ������� ���������� ��� ����, ����� ���������� �������� �� ������� �������� PointSet, IndexedLineSet, IndexedFaceSet. ��������� ��������������� ����, ��������� VRML �������� ������� ���������� ��������.
- ������ :
- TextureCoordinate2 {
- point 0 0 # MFVec2f
- }
- point 0 0 # MFVec2f
- point -
- ������ ����������� ��� ��������� ( ��������� �� ���� ����� � ��������� �� 0 �� 1 ), ������� ������������� ������������ ������������� ����� � �������� �� ��������������� ��������� ���������. �������� 0 ������ ������� ������� �� ���, � �������� 1 ���� �������� ��������� ����� �������� ����� ���. ������� ������ �������������� ����������, � ����� ������������.
Transform
������������ ��� ����, ����� ���������� �������������� ���������� ��������������, ��������� �� ������������� ��������������� ������������ ������������ �����, �������� ������������ ������������ ����� � ���, � ����� ��������.
- ������ :
- Transform {
- center 0 0 0 # SFVec3f
- rotation 0 0 1 0 # SFRotation
- scaleFactor 1 1 1 # SFVec3f
- scaleOrientation 0 0 1 0 # SFRotation
- translation 0 0 0 # SFVec3f
- }
- center 0 0 0 # SFVec3f
- center -
- ���������� ������ ������� ��� ���������� ��������������.
- rotation -
- ���������� ����, �� ������� ������� ������� ������ - �� �����, ������� � ����� Rotation.
- scaleFactor -
- ����������, ��� ������� �������� ������ ������� ������� ����, ��� ��� ����������� ����� Scale.
- scaleOrientation -
- ���������� ���������� ��� ���� scaleFactor, ��� ��������� �������� ��������� ������������ ���������������.
- translation -
- ����������, ��� ������� ������� ������.
- ��������������� ���� ����� ��������� ���� ��� ����� ��������� �����: Rotation, Scale, Translation.
DirectionalLight
������������ ��� ����, ����� ���������� ��������� ������������� �����, ������� �������� ������� ������, ������� ����������� ��������� ����������� ������� �� ����� ����� VRML.
- ������ :
- DirectionalLight {
- color 1 1 1 # SFColor
- direction 0 0 -1 # SFVec3f
- intensity 1 # SFFloat
- on TRUE # SFBool
- }
- color 1 1 1 # SFColor
- color -
- ���������� �������� ����������: �������, ������� � �����. �������� �������� ���� ���������� � �������� �� 0.0 �� 1.0. ��������, ���� ��������� ���� ������ �������� 1 0 0, �� ���� ����������� ����� �������. ����������, �������� ���� ������ 0 1 0, �������� �������� �����.
- direction -
- ��������� ���������� ������, ������� ������ ����������� �����. ����������� �������� ����� ����������� ������������ ����������� �������, ������������� ����� direction.
- intensity -
- (�������������) ���������� � �������� �� 0.0 �� 1.0, ������ �������� 1.0 ������������� ��������� �������������.
- on -
- �������� ������������ �������� �����, ����� ���� ��������� �������� TRUE � ��������� ���, ����� �������� - FALSE.
���� DirectionalLight ���������� �������� ���������, ������� ����� �������������� �� ��������������� ���� ������� ��������� ����� ����� � ������������ � ������� ������ ���������. ������� ��������� ������� �������������� � ��������� ������������� ���������. ��������� ���������, ����� ��������� �������� ���� �� �������, ������� ��������� ��� ����� ����������.
FontStyle
������������ ��� ����, ����� ���������� ������� ����� �������, ������� ����� ����������� ������ AsciiText. ������� � ���� ������� ���������� ������������ ������� (�������� ���� VRML �� ����� ��������� ������� ���������� ���������� �������).
- ������ :
- FontStyle {
- family SERIF # SFEnum
- size 10 # SFFloat
- style NONE # SFBitMask
- }
- family SERIF # SFEnum
- family -
- ��������� �� ��������� �������, ����� ��� SERIF, SANS ��� TYPEWRITER.
- size -
- ���������� ������ ������.
- style -
- ������ ��� ������� ������� ������ ��� �������. ��� ����� ��������� �������� �������������� NONE, BOLD, ITALIC.
MatrixTransform
������������ ��� ����, ����� ���������� ������� ���������� �������������� ��������������. ���������� �������������� ������� ������� �������� 4�4.
- ������ :
- MatrixTransform {
- matrix 1 0 0 0 # SFMatrix
- 0 1 0 0
- 0 0 1 0
- 0 0 0 1
- }
- matrix 1 0 0 0 # SFMatrix
OrthographicCamera
������������ ��� ����, ����� ���������� ������������ �������������� �� ����� ������. ��� ��, ��������, ������, ��������� ������, ��������� ����� ��������� ����� ��� ������������, � ������� ������������ ����� ����� VRML. ��������������� ������ �� ��������� �������� � ����������� �� ���������� , ��� ��� ������ ������������� ������. ��� ���������������� � ��������������� ������� �� ���� �������� ������������ �� ����� ������ ��������� �� ������ ����, �� �� ������������ � ����� ������������ ( vanishing point - ����� � ������ ����������� �������, ��� ������� �������� � �������� � ����������� ).
- ������ :
- OrthographicCamera {
- focalDistance 5 # SFFloat
- height 2 # SFFloat
- orientation 0 0 1 0 # SFRotation
- position 0 0 1 # SFVec3f
- }
- focalDistance 5 # SFFloat
- FocalDistance -
- ���������� ���������� �� ��������������� ������ �� ��������.
- height -
- ���������� ����� ������ ������������ ������ ( �������������, � ������ �������� ���������� ������� ).
- position -
- ���������� ���������� ��������������� ������ x, y, z.
- orientation -
- ������� ��������������� ������. �� ��������� ��������������� ������ ����������� � ����� ( 0,0,1 ) � ��� ������ ��������� ����� ��� Z � �������.
������� ��������� ������� �������������� � ��������������� ������. ������ ����� ���������������, ������� ���� Transform ����� ����� OrthographicCamera � ����� �����.
PerspectiveCamera
������������ ��� ����, ����� ���������� ������������ �������������� ������� �� ����� ����������. ��� ��, ��������, ������, ��������� ������, ��������� ����� �������������� ���� ��� �����������, ��� �������� ������������ ����� ����� VRML. ������������� ������ ��������� ������� ������� � ����������� ���������� �� ���� � ����������������� ��������������� ������. ��� �������������� � ������������� ������� �� ���� �������� ������������ �� ����� ������� ������������ � ����� ����������� ��� ����� ������������.
- ������ :
- PerspectiveCamera {
- focalDistance 5 # SFFloat
- heightAngle 0.785398 # SFFloat
- orientation 0 0 1 0 # SFRotation
- position 0 0 1 # SFVec3f
- }
- focalDistance 5 # SFFloat
- focalDistance -
- ���������� ���������� �� ������ �� �������.
- heightAngle -
- ���������� ����� ������������ ���� ������������� ������������. ��� ������������ ����������� ���������� ���������.
- position -
- ���������� ���������� ������ x,y,z.
- orientation -
- ������� ������. �� ��������� ������ ����������� � ����� � ������������ ( 0,0,1 ) � ��� ������ ��������� ����� ��� Z �� �������.
PointLight
������������ ��� ����, ����� ��������� �������� ����� � �������� ����� ����������� ������������. �������� �������� �������� ��������� �� ���� ������������. ���� ���������� �������� �����, ������� ����� �������������� �� ��������� �� ��� ����� � �������� ������� � ����� �����. ��������� ������� �� �������� ����� ���������, ������� �� �������.
- ������ :
- PointLight {
- color 1 1 1 # SFColor
- intensity 1 # SFFloat
- location 0 0 1 # SFVec3f
- on TRUE # SFBool
- }
- color 1 1 1 # SFColor
- color -
- ��������� ������, ������� ����� ��������, �������� � ��������. �������� ����� ���������� �� 0 �� 1 ��� ������� ����������.
- location -
- ���������� ��������� ��������� ����� � �������� �����.
- intensity -
- ��������� �������������� ��������� �����. ��� �������� ���������� �� 0 �� 1, ��� 1 �������� ��������� ��������������.
- on -
- �������� � ��������� ����, ��� �������� TRUE ������������� �����������, � FALSE - ������������ ���������. ������� ��������� ������� �������������� � ��������� �����.
���� PointLight, ������������� � ������ ���� Separator, �� ������ �� �����-���� ������� ��� ���� Separator.
ShapeHints
������������ ��� ����, ����� ���������� �������� �� �������� IndexedFaceSet ���������� ������� ��� �������� ������, �������� �� ��� ������������� �������. ��������� VRML ���������� ���� ����, ����� ��������� ��������� VRML-���������� ����� �������������� ������� ����������. � ����� ����������� ������ ���������� ��������� ������ � ���������� ������������� ���������, ������ �������� ����� �� �����. ��������, ���� ������ ����� �������� ������� � ����� ������������� �������, ��������� ���������� VRML ����� �������� ������� ���������� �������� ������ � ���������� ��������� ����� ������ �����.
- ������ :
- ShapeHints {
- creaseAngle 0.5 # SFFloat
- faceType CONVEX # SFEnum
- shapeType UNKNOWN_SHAPE_TYPE # SFEnum
- vertexOrdering UNKNOWN_ORDERING # SFEnum
- }
- creaseAngle 0.5 # SFFloat
- creaseAngle -
- ������������� ���� ����� ��������� �� ������� ������. ����� ��������� IndexedFaceSet ��� ������������ �������� �� ���������, ������������ ���� creaseAngle, ����� ����������, ����� ���� ������� ������ ������ ��������, � ����� ���� ������ ����� ���������� �������. ���� ������� ( crease angle ) ������������ ��� ���� ����� ����� ��������� � ����������� �� ������� ������. ��������, ���� �������� 0.5 ������ ( �������� �� ��������� ) ���������, ��� ������� ����� ����� �������� �������������� ������� ����� ��������� ������� � ������, ����� ������� � ���� ������ �������� ����, ������� ������ 0.5 ������ ( ����������� 30* ). � ��������� ������ ������� ����� ����� ����� ������� ����� ����� ������������.
- faceType -
- ���������, �������� �� ��� ����� ����� ��������� ( �������� CONVEX ), ��� �� ��� ��������� ���������� ������ � ������ ( �������� UNKNOWN_SHAPE_TYPE ).
- vertexOrdering -
- ��������� ��������� �� ��������������� ������ ��������.
- ��������� �������� :
- UNKNOWN_ORDERING - ��������������� ����������
- CLOCKWISE - ��������������� �� ������� �������
- COUNTERCLOCKWISE - ��������������� ������ ������� �������
- ��������� �������� :
- shapeType -
- ����������, ������������ �� ����� ����� ( �������� SOLID ), ��� �� ��� ������ ���������� ( �������� NKNOWN_SHAPE_TYPE ).
SpotLight
������������ ��� ������������ ��������� ��������. ���� ���������� ������������ �������� ���������, ������� ����� �������������� �� ����� � ����� ����� � ������������ � ������� ������ ���������.
- ������ :
- SpotLight {
- color 1 1 1 # SFVec3f
- cutOffAngle 0.785398 # SFFloat
- direction 0 0 -1 # SFVec3f
- dropOffRate 0 # SFFloat
- intensity 1 # SFFloat
- location 0 0 1 # SFVec3f
- on TRUE # SFBool
- }
- color 1 1 1 # SFVec3f
- color -
- ���������� ����� ������: ��������, �������� � ��������. ������� �������� ���� ���������� � ������ ������ ����������� ������ �����������, ��������� ����� direction. ������������� ����� ����������� ��������������� �� ���� �������� ����� �� ������ ������.
- cutOffAngle -
- ������������ ���� ������.
- location -
- ���������� ���������� ���������� � ������ ����� �����.
- dropOffRate -
- ������, ��� ������ ������� ������������ �� ���� ���������� ���������� ( ��������� �������� �� 0 �� 1, ��� 0 ������������� ����������� ���������� � ���������� ).
- on -
- �������� � ��������� ���������.
- intensity -
- ��������� �������������� ���������. ��� �������� ���������� �� 0 ( ������ ������������� ) �� 1 ( ������� ������������� ).
- ������� ��������� ������� �������������� � ����. ���� ���� ���������� ������ ���� Separator , �� �� ������ �� �������, ������������� ��� ���� Separator.