Skip to main content
gamedev.net
🔒 Locked

Shadows

Started by nildo 9 replies 1.8k views
Original Post
nildo
nildo
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 =)
Raduprv
Raduprv
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
nildo
nildo
Hehe. I wish it was just
glEnable(GL_SHADOWS); and glDisable(GL_SHADOWS);

LOL

Can you write here examples ? Cause i am beginner on this subject. Thank you
Maximus
Maximus
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
Basiror
Basiror
hey before you waste your time on trying something complexe like shadows i d suggest you create your own camera and maybe map format so you have atleast something more complex to test your shadows with not just a cube and a plane rofl
http://www.8ung.at/basiror/theironcross.html
nildo
nildo
Oh thanx. I will do that.

Its cause i am trying to do the Snake game (witch has to eat the apples) but in first person.. Lol

Thank you ppl. Thank so mutch
Pike65
Pike65
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.
nildo
nildo
Do u have a code the source of this shadow maker ?
BGCJR
BGCJR
http://ice.prohosting.com/~bgcjr/Release.rar

a Demo of DPSM.
Game Core
Digitalfragment
Digitalfragment
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.