Where can I find a good shadow tutorial?
I have looked for a good dynamic shadow tutorial
for many weeks now, but I have not found one.
I want my character to cast shadows on the floor and
on the walls in my project.
Does anybody know of good a shadow tutorial that is
fairly easy to implement?
cheers
opengl_coder
I am using this algorithm (with some modifications), and it works great.
However, it has a small bug. Replace:
with
Height Map Editor | Eternal lands
However, it has a small bug. Replace:
dot = fPlane[0] * fLightPos[0] + fPlane[1] * fLightPos[1] + fPlane[1] * fLightPos[2] + fPlane[3] * fLightPos[3];
with
dot = fPlane[0] * fLightPos[0] + fPlane[1] * fLightPos[1] + fPlane[2] * fLightPos[2] + fPlane[3] * fLightPos[3];
Height Map Editor | Eternal lands
Thanks for the reply.
Do you use this shadow algorithm on your walls too?
If so, how should I set this up?
And in what order should I draw my objects?
Do you use this shadow algorithm on your walls too?
If so, how should I set this up?
And in what order should I draw my objects?
Look out for 'shadow volumes'. A good starting point is
www.gamasutra.com/features/19991115/bestimt_freitag_03.htm
If you want to see some shadow-algorithms in action, download my application which deals with shadows here:
www.gerogerber.de/3dshadows
Hope this will point you in the right direction,
Gero
[edited by - gerogerber on December 26, 2002 6:39:37 AM]
[edited by - gerogerber on December 26, 2002 6:41:52 AM]
www.gamasutra.com/features/19991115/bestimt_freitag_03.htm
If you want to see some shadow-algorithms in action, download my application which deals with shadows here:
www.gerogerber.de/3dshadows
Hope this will point you in the right direction,
Gero
[edited by - gerogerber on December 26, 2002 6:39:37 AM]
[edited by - gerogerber on December 26, 2002 6:41:52 AM]
The NVIDIA Developers site has lots of papers and documents on shadows of all kinds. You might want to do a bit of searching there.
--Buzzy
--Buzzy
Id hardly call the one on nehe.gamedev.net good.
-----------------------
"When I have a problem on an Nvidia, I assume that it is my fault. With anyone else''s drivers, I assume it is their fault" - John Carmack
-----------------------
"When I have a problem on an Nvidia, I assume that it is my fault. With anyone else''s drivers, I assume it is their fault" - John Carmack
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement