fhrt_shadow.c File Reference

Manages the creation of occlusion-data. More...

#include <SDL/SDL_thread.h>
#include "rendermodes.h"
#include "macros_isoval.h"

Defines

#define HULL_ADVANCE_SHADOW

Functions

void smooth_shadow (void)
 Smooth the Volumedataset.
int shadow_calc_thread (void *a)
 Calculate occlusions for shadows.
void precalculate_shadows (void)
 Controls the shadow-calculation thread.
void set_occlusion (uint16_t occ)
 Resets the initial occlusion-data to a specific value.


Detailed Description

Manages the creation of occlusion-data.


Function Documentation

void set_occlusion uint16_t  occ  ) 
 

Resets the initial occlusion-data to a specific value.

Parameters:
occ The value to clear the "shadow-buffer" to.

int shadow_calc_thread void *  a  ) 
 

Calculate occlusions for shadows.

The calculated data is stored so that it can be used during rendering without having to calculate additional visibilities to the lightsource

Parameters:
a Unused...but that's the way, SDL expects a thread to be.

void smooth_shadow void   ) 
 

Smooth the Volumedataset.

Blurs the 3D-data with a "3D-style" average-filter as is commonly used in digital-2D-image-processing


Generated on Wed Dec 13 08:40:13 2006 for PHDVR - Direct Volume Renderer by  doxygen 1.4.6