Sponsored By

Feature: 'Book Excerpt: Advanced Game Development with Programmable Graphics Hardware'

One of today's main Gamasutra feature is an extract, by Alan Watt and Fabio Policarpo, from the book Advanced Game Development with Programmable Graphics Hardware, partic...

Simon Carless, Blogger

October 3, 2005

1 Min Read
Game Developer logo in a gray background | Game Developer

One of today's main Gamasutra feature is an extract, by Alan Watt and Fabio Policarpo, from the book Advanced Game Development with Programmable Graphics Hardware, particularly focusing on a section dealing with 'Shadow Techniques for Relief Texture Mapped Objects'. As Watt and Policarpo explain in this extract: "Integrating shadows to the relief map objects is an important feature in fully integrating the effect into a game scenario. The corrected depth option, which ensures that the depth values stored in Z-buffer include the displaced depth from the relief map, makes it possible to implement correct shadow effects for such objects. We consider the use of stencil shadows and shadow maps in this context. We can implement three types of shadows: shadows from relief object to the world, from the world to relief object and from relief object to itself (self-shadows). Let us first consider what can be achieved using stencil volume shadows. When generating the shadow volumes, we can only use the polygons from the original mesh to generate the volume. This means that the shadows from relief objects to the world will not show the displaced geometry of the relief texture, but will reflect the shape of the original triangle mesh without the displaced pixels. However, as we have the corrected depth stored in Z-buffer when rendering the lighting pass we can have shadows volumes from the world projected onto the relief objects correctly, and they will follow the displaced geometry properly. Self-shadows (relief object to itself) are not possible with stencil shadows." You can now read the full Gamasutra feature on the subject (no registration required, please feel free to link to the article from external websites).

Read more about:

2005

About the Author

Simon Carless

Blogger

Simon Carless is the founder of the GameDiscoverCo agency and creator of the popular GameDiscoverCo game discoverability newsletter. He consults with a number of PC/console publishers and developers, and was previously most known for his role helping to shape the Independent Games Festival and Game Developers Conference for many years.

He is also an investor and advisor to UK indie game publisher No More Robots (Descenders, Hypnospace Outlaw), a previous publisher and editor-in-chief at both Gamasutra and Game Developer magazine, and sits on the board of the Video Game History Foundation.

Daily news, dev blogs, and stories from Game Developer straight to your inbox

You May Also Like