Positions a VRML cube in the world.
Center
Rotation
Transform
Widths
AmbientColor
DiffuseColor
EmissiveColor
Shininess
SpecularColor
Texture_Image
There are four options:
(2, w, h)
(3, w, h)
(4, w, h)
'wavelogo.dat'
file used in this example is found in the following directory:
wavedir
/demo/web/vrml
wavedir
:[DEMO.WEB.VRML]
wavedir
\demo\web\vrml
wavedir
is the main PV-WAVE directory.
RESTORE, 'wavelogo.dat'; Restore variables for
img
, r, g, b.
sz = SIZE(img) col = TRANSPOSE([[r], [g], [b]]) img24 = REFORM(col(*, img), 3, sz(1), sz(2)) VRML_CUBE, Center = [-5, -3, 5], $ Width = 3, Texture = img24; A cube with the wave logo on it.
VRML_CUBE, Center = [4, -2, -2], $ Rotation = [0, 0, 0], $ DiffuseColor = [127, 255, 191], $ AmbientColor = [55, 70, 60], $ SpecularColor = [0, 100, 0] VRML_CUBE, Center = [4, -2, -2], $ Rotation = [45, 0, 0], $ DiffuseColor = [127, 255, 191], $ AmbientColor = [55, 70, 60],$ SpecularColor = [0, 100, 0] VRML_CUBE,Center = [4, -2, -2], $ Rotation = [0, 45, 0], $ DiffuseColor = [127, 255, 191], $ AmbientColor = [55, 70, 60],$ SpecularColor = [0, 100, 0] VRML_CUBE,Center = [4, -2, -2], $ Rotation = [0, 0, 45], $ DiffuseColor = [127, 255, 191], $ AmbientColor = [55, 70, 60], $ SpecularColor = [0, 100, 0]; An Escher-like cube.