home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Windows 95.com 1996 September
/
WIN95_09962.iso
/
vrml
/
glview.zip
/
imageTest.wrl
< prev
next >
Wrap
Text File
|
1996-06-28
|
2KB
|
71 lines
#VRML V1.0 ascii
# image put into background (could be done also with Layer)
DEF BackgroundImage Info { string "sun256.bmp" }
DEF Title Info { string "GLView test for images and Layer with transparent images"}
DEF Viewer Info { string "examine" }
ShapeHints { vertexOrdering COUNTERCLOCKWISE shapeType SOLID }
Separator {
# image inserted into world
Separator {
Translation { translation 3 2 0 }
# alphas bad for these test images !
DEF mandrill Image { filename "mandrill.bmp" alphaColor 1 0 0 alpha 0.0 }
}
Separator {
Translation { translation -6 2 0 }
USE mandrill
}
WWWInline {
bboxCenter 0.001015 0.389670 -2.308155
bboxSize 8.334290 11.237420 11.451929
name "ronny.3dv" }
}
# overlayed images with transparency (if alphaColor is good)
Layer {
depthWrite FALSE
depthFunc ALWAYS
lighted FALSE
##blend TRUE
alphaFunc GREATER
alphaRef 0.0 # alpha comparaison value
Material {
ambientColor 0.00714286 0.00169011 0
diffuseColor 0.514286 0.4743647 0.2
specularColor 0.760204 0.582954 0.2
emissiveColor 0 0 0
shininess 0.0408163
transparency 0.8 # if used with geometry and blend, make geometry transparent
}
Translation { translation -1 -1 0 }
ScaledImage {
scale TO_WINDOW scaleFactor 0.25 0.25
## scale BY_FACTOR scaleFactor 0.7 0.5
srcImage DEF i Image {
filename "ronny.bmp" alphaColor 0 0 0 alpha 0.0
}
}
Translation { translation 1.5 0 0 }
ScaledImage {
scale TO_WINDOW scaleFactor -0.25 0.25
srcImage USE i
}
}