Sorry people, but I need help with normal mapping again...
I was working on my code to get animated models to work with normalmaps.... and I finally got it working... then I lost the code... (yeah... I know it sounds like I'm lying... but oh well)
it was really simple, the whole thing was based around:
some normalmapping functions (dot3 lights)
fast realtime cubemap reflection code (from archives)
and a sphere.
Instead of applying the normal maps to the animated mesh, the sphere was normal mapped from the places where the lights were meant to come from... then the cubemaps were taken from inside the sphere (it was rendered with double sided polygons)... my computer isn't very fancy so I used low-res textures for my cubemap... then the cubemap was placed onto the animated 3d model...
it seemed to run pretty well on my not-so-great computer...
I had most of the code backed up... but I can't find the normalmapping code that I used....
can anyone help?
I need something that can have multiple lights (well... I'd like) and (here's the tricky part... I guess) uses each vertex (individually) on the sphere and creates the correct colors... for some wierd reason when I used alot of the differant verson of this code (done by differant people) if the light was in front, it worked perfectly... but if it was behind... it didn't work... and if I raised the light to high it screwed around with the lighting... and I know the models aren't normal mapped wrong... I'm using other peoples I found for testing =P
Can someone please help?
Thanx for reading
I was working on my code to get animated models to work with normalmaps.... and I finally got it working... then I lost the code... (yeah... I know it sounds like I'm lying... but oh well)
it was really simple, the whole thing was based around:
some normalmapping functions (dot3 lights)
fast realtime cubemap reflection code (from archives)
and a sphere.
Instead of applying the normal maps to the animated mesh, the sphere was normal mapped from the places where the lights were meant to come from... then the cubemaps were taken from inside the sphere (it was rendered with double sided polygons)... my computer isn't very fancy so I used low-res textures for my cubemap... then the cubemap was placed onto the animated 3d model...
it seemed to run pretty well on my not-so-great computer...
I had most of the code backed up... but I can't find the normalmapping code that I used....
can anyone help?
I need something that can have multiple lights (well... I'd like) and (here's the tricky part... I guess) uses each vertex (individually) on the sphere and creates the correct colors... for some wierd reason when I used alot of the differant verson of this code (done by differant people) if the light was in front, it worked perfectly... but if it was behind... it didn't work... and if I raised the light to high it screwed around with the lighting... and I know the models aren't normal mapped wrong... I'm using other peoples I found for testing =P
Can someone please help?
Thanx for reading