🔒 Locked
Shadows
Advertisement
Original Post
Can someone copy here a Shadow routine, that makes all the objects shadows that has in my 3d surface, by a Light point ?
For example: I pass as parameter the Light position and this function makes all the shadows for me. But anything that dont use Arb_multitexture_Something_like_that because my computer does not suport this function.
Thank you all and c ya =)
What you are asking is not easy at all.
The simplest way to make shadows is the stencil projective shadows. They are fast, easy to understand, but have the dissadvantage that you can only project them on a flat ground.
I wrote an article on my site, check it here.
BTW, ignore the multiple source shadows part in the article, most of the times it gives crappy shadows.
Height Map Editor | Eternal Lands | Fast User Directory
The simplest way to make shadows is the stencil projective shadows. They are fast, easy to understand, but have the dissadvantage that you can only project them on a flat ground.
I wrote an article on my site, check it here.
BTW, ignore the multiple source shadows part in the article, most of the times it gives crappy shadows.
Height Map Editor | Eternal Lands | Fast User Directory
Shadows arent a beginners subject really. Doing them properly will be almost impossible to do for a beginner. Its not just something you can write code for that will plug into any code situation. You have to write the code for them that will work into your engine.
-----------------------
"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
I know it''s quick and dirty (just the way it should be ; ), but if you just want something simple to anchor your apples to the ground then just render a black circle below them.
I was forced at flunk-point to make a pacman clone for one of my uni modules, and all of my food bits looked really strange until I put drop shadows under them. If you have a kinda cartoony look to begin with it''s all you need.
I was forced at flunk-point to make a pacman clone for one of my uni modules, and all of my food bits looked really strange until I put drop shadows under them. If you have a kinda cartoony look to begin with it''s all you need.
there is a tutorial on that at http://nehe.gamedev.net - its basic once you go over it a few times.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement