Castle Game Engine
← Users Developers →
 
Intro
 
News
 
view3dscene
 
The Castle
 
All Programs
 
Forum
 
Donate
 
Engine
 
VRML/X3D
 
Blender
 
Volumetric fog
Scene for the volumetric fog, here visible with fog turned off
Volumetric fog, with normal lighting turned off
Textured spot light with shadow
Flowers bending under the wind, transformed on GPU in object space
Toon and Fresnel effects combined
3D and 2D smooth noise on GPU, wrapped in ShaderTexture

Compositing Shaders

Contents:

1. Intro

You can create pieces of shading language code that will be seamlessly integrated with our engine internal shaders. This allows you to create a myriad of effects using the OpenGL Shading Language (GLSL). Contrary to the traditional approach (using ComposedShader node, see shader component support), our system allows you to define effects easily, without the need to replicate existing functionality (like lighting and texturing operations), and your effects automatically cooperate with each other and with standard rendering features.

2. Examples

The examples are available inside our VRML/X3D demo models. Download them, and look inside the subdirectory compositing_shaders there. Also the water subdirectory contains water implementation using our effects.

You can open the example models with any of our engine tools, like view3dscene.

3. Documentation

  1. "Compositing Shaders in X3D" documentation, HTML version. This is my Ph.D. thesis, enjoy :)
  2. "Compositing Shaders in X3D" documentation, PDF version. Exactly the same content as above HTML version, just in PDF — probably much better for printing.
  3. Slides from my presentation (on TPCG11) about the compositing shaders.
  4. Slides in Polish from my presentation (on seminar on ii.uni.wroc.pl). These slides have roughly the same content as above TPCG11 slides, but in Polish.
  5. My paper about this idea was also accepted to the Theory and Practice of Computer Graphics 2011 conference. I don't have permission to redistribute it here publicly, but basically it's a shortcut of my Ph.D. thesis. Anyway, you can buy it from EG digital library (along with other papers from TPCG11 proceedings).
  6. Of course, you can also get the sources of above documents:
    • My Ph.D. thesis sources (in DocBook) can be downloaded from SVN URL:
      http://svn.code.sf.net/p/castle-engine/code/trunk/papers/compositing_shaders_doc/
    • Slides and conference paper (in TeX) are alongside, on SVN URL:
      http://svn.code.sf.net/p/castle-engine/code/trunk/papers/compositing_shaders/

Finally, if you're interested in more information, send me a mail. And be sure to investigate the examples mentioned above!