PDA

View Full Version : Shadow projection in openGL



meirs
September 25th, 2008, 07:32 AM
hi all,

I'm using openGL with VC++ 2008.I need to produce the sun shadow varying with time.i'm struggling to start..could anyone guide me...

Regards
meirs

skullmunky
September 26th, 2008, 04:17 AM
try nehe's tutorials or gamasutra. or get ogre and look at the lighting example.

meirs
September 26th, 2008, 06:45 AM
Thanks for ur reply.i've followed nehe's tutorial.and i want to produce the sun shadow which varies with time..how to implement it..

Zugzwang
September 26th, 2008, 09:26 AM
Thanks for ur reply.i've followed nehe's tutorial.and i want to produce the sun shadow which varies with time..how to implement it..

Have a look at the concepts in the tutorials and the capabilities of OpenGL. If there is no shadow casting in OpenGL, then try to come up with an idea how to model the shadow in OpenGL. Afterwards brush up your programming & general maths, logic & programming problem solving skills and then you'll have a concept and know how to implement it.

Sorry, if you don't even have a clue which road to take, then that project looks like as it's too hard for you. Also, it looks a little bit like homework of some sort.