Saturday, March 19, 2011

Shadows,Stencil and Blending in openGL

  • Shadows are recalculated each time the sun moves.

  • Stencil is the effect of the shadows not going further than the surface limits.

  • Blending is making those shadows transparent (the shadow color "blend" with those of the surface on which they're casted).

    [caption id="attachment_113" align="aligncenter" width="300" caption="proyectoGraficacion_v.0.1.7_1"][/caption]

    • The remaining problem is the flattening of the poker table so the shadow is perfectly mapped. Being curved its surface doesn't help. Also there's some nasty z-fighting issue I need to take care of later.

      [caption id="attachment_114" align="aligncenter" width="300" caption="proyectoGraficacion_v.0.1.7"][/caption]

No comments:

Post a Comment