02
Apr
08

Normal/Bump Mapping

Oddly, it turns out that my very simple method for bump-mapping shouldn’t have worked at all, as the normals stored in the normal-map are in a completely different coordinate-space (tangent space) to the rest of the scene. This explains why the bump map isn’t very convincing.

I may be wrong on this (as I frequently am), but it looks as if it may not be possible to do bump-mapping ‘the proper way’ in QC, as all the methods I’ve seen seem to require values to be calculated outside the shader, then passed in per-vertex. This isn’t something you can do in QC, unfortunately.

On a more positive note, it may be possible to use my very simple (and wrong) approach to approximate lighting on vertex-displaced meshes. I’ll have to do some more research on this one.

Advertisements

0 Responses to “Normal/Bump Mapping”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Twitter

April 2008
M T W T F S S
« Mar   May »
 123456
78910111213
14151617181920
21222324252627
282930  

Links

Blog Stats

  • 470,209 hits

%d bloggers like this: