| genre | VolRendExtensions |
| status | stable |
| author | Florian Link |
| package | MeVisLab/Standard |
| dll | SoGVR |
| definition | soGVR.def |
The SoGVRLitSphereShading module implement lit sphere shading, as described in Style Transfer Functions for Illustrative Volume Rendering by Stefan Bruckner. Instead of using a traditional Blinn-Phong lighting model, this model projects the gradient to a 2D sphere in view space. This allows to model complex lighting situations or styled rendering by loading different 2D lit sphere images. In combination with tagged volume rendering, a stack of 2D lit spheres can be connected and each tag can use a differnt lit sphere.
Just add this module a SoGVRVolumeRenderer scene and enable the illumination of the renderer. The lit sphere shading then replaces the traditional lighting. The contour mode only works when used together with SoGVRRayCastSettings, since it detects changes in the gradient along the ray.
For more details, read the paper Style Transfer Functions for Illustrative Volume Rendering by Stefan Bruckner or have a look at the example network.
The example network renders a lit sphere using OpenInventor and the OffscreenRenderer:
This image is then used for lit sphere shading:
For a nice collection of lit sphere images which can be used, see Ashraf Aiad lit sphere collection:
http://www.pixelcg.com/blog/?p=165
or use google image search with search term lit sphere.
To be placed in front of a SoGVRVolumeRenderer.
| Contour Thickness: Float |
| Enable Contours: Bool |
| Enable Enhancement: Bool |
| Enable Lit Sphere Alpha: Bool |
| Enabled: Bool |
| Per Tag Lit Sphere: String |
| Use For First Hit: Bool |
List of per-tag index into stack of 2D lit spheres, only used when per tag shading is enabled and the input lit sphere image is a 3D image.
Enable contour rendering (see paper for details)
Defines the thickness of the contours, if enabled
Enables gradient based enhancement (see paper)
Enables using the alpha value of the lit sphere.
If enabled, the lit sphere shading affects the SoGVRFirstHitRayCastSettings lighting instead of the normal lighting.