Submitted by , posted on 08 November 2003



Image Description, by


Screenshots from demo "Shaderey" - a winner of ATi/Beyond3D DX9 shader competition.

The demo displays outdoors scene in a non-photorealistic rendering (NPR) style, plays camera animation, allows manual camera control and has a fast-forward benchmarking mode. Requires DX9 class hardware to run (afterall, it's a DX9 shader competition).

Some tech details:
  • Image space: edge detection from normal/depth differences (similar ATi's at SigGraph2002), plus sort of "hatching" in dark areas.
  • Color quantization and distortion for "painterly" look. This is done on downsampled image: convert into HSV colorspace, do some funky operations on it and convert back into RGB. All in single pass with Pixel Shader 2.0.
  • Atmospheric light scattering (Hoffman et al. at SigGraph2003).
  • Projected shadows on terrain.
  • Planar reflections w/ EMBM for lakes.
  • Brute-force terrain rendering. I planned to do simple GeoMipMapping at first, but the demo isn't vertex limited even in brute force case
  • Can use Multiple Render Targets to render color and normals/depth in single pass.
  • Demo can be downloaded from: http://www.gim.ktu.lt/nesnausk/nearaz/projShaderey.html

    Full source code is included (C++, for MSVC6 with DX9 SDK and Boost 1.30.0).

    Aras Pranckevicius aka NeARAZ
    http://www.gim.ktu.lt/nesnausk/nearaz/



    [prev]
    Image of the Day Gallery
    www.flipcode.com

    [next]


     


    Copyright 1999-2008 (C) FLIPCODE.COM and/or the original content author(s). All rights reserved.
    Please read our Terms, Conditions, and Privacy information.