Not logged in, Join Here! or Log In Below:  
News Articles Search    

Submitted by MiNg, posted on January 02, 2003

Image Description, by MiNg

After one and a half month of work, here are the screenshots of my latest work - A 3d engine with per-pixel lighting + real time shadows.

These screenshots are rendered under a ATI Radeon 9000 and P4 1.6GHz system.

My demo uses the DirectX8.1 API and I perform per-pixel lighting using pixel shader 1.4. and the shadows are using shadow volume technique (Z-fail).

Here are the steps of how I render the scene:

1. clear color and depth buffer
2. draw the scene with ambient color

3. for each light
   3.1 clear stencil buffer
   3.2 for each object in the scene
      3.2.1 update the shadow volume of the object.
      3.2.2 draw the shadow volume to the stencil buffer (check for z-fail)
   3.3 draw the attenuation + diffuse + spectular color of the light

That means for a scene that has n lights, it will be rendered in n+1 passes.

Also, I would like to give a big thanks to those people who had answered my questions that I posted on flipcode's Message Center.

Finally, please feel free to contact me. I can be reached at .


Image of the Day Gallery


Archive Notice: This content is archived, and commenting is no longer active. It is here for reference purposes. This content was added on an older version of flipcode, before the site closed in 2005.
Hosting by Solid Eight Studios, maker of PhotoTangler Collage Maker.