[x3d-public] COBWEB IMPLEMENTS DYNAMIC SHADOWS
Holger Seelig
holger.seelig at yahoo.de
Fri Sep 16 11:10:01 PDT 2016
*** COBWEB IMPLEMENTS DYNAMIC SHADOWS ***
With its new and up to date version 1.28, Cobweb implements dynamic
shadows now.
THIS IS AN EXPERIMENTAL FEATURE!
For a live demonstration have a look at:
http://titania.create3000.de/cobweb/dynamic-shadows/
Cobweb adds four important fields to every light node.
X3DLightNode : X3DChildNode {
...
SFColor [in,out] shadowColor 0 0 0 [0,1]
SFFloat [in,out] shadowIntensity 0 [0,1]
SFFloat [in,out] shadowDiffusion 0 [0,inf)
SFInt32 [] shadowMapSize 1024 (-inf,inf)
}
All light sources contain an shadowIntensity, a shadowColor, a
shadowDiffusion, and a shadowMapSize field. The shadowIntensity field
specifies the darkness of the shadow. Shadow intensity may range from
0.0 (no shadow) to 1.0 (full intensity). The shadowColor field
specifies the spectral colour properties of the shadow as an RGB value.
The shadowDiffusion field specifies an blur over the shadow. Shadow
diffusion may range from 0.0 length units (no blur) to infinity. For
every light there must be rendered an image of the shadow, the shadow
map. The shadowMapSize field specifies the size of this image in pixels.
For a live demonstration have a look at:
http://titania.create3000.de/cobweb/dynamic-shadows/
Best regards,
Holger
*** COBWEB IMPLEMENTS DYNAMIC SHADOWS ***
--
Holger Seelig
Mediengestalter Digital – Digital Media Designer
Scheffelstraße 31a
04277 Leipzig
Germany
Cellular: +49 1577 147 26 11
E-Mail: holger.seelig at create3000.de
Web: http://titania.create3000.de
Future to the fantasy ★ ★
More information about the x3d-public
mailing list