Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Shadow Volumes

Author
Message
Erick G
Retired Moderator
20
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 1st Nov 2004 09:05 Edited at: 1st Nov 2004 09:08
EDIT* Apologies, this code is for db pro

Hi all

I thought I would post this code snippet up showing how to do shadow volumes, it is really simple at the end of the day, but cool none the less, I posted in the newcomers corner regarding this as I needed help on it. Nobody could help in the time-frame that I got it working myself.

So I decided to post it here for everyone to benefit from.

Arrow keys move the point light position, space bar rotates the cube.

There is a example page in the db pro help too, the only difference is I slaved to get this working without consulting it Anyway
You live you learn.

Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 1st Nov 2004 20:00
simple, but good

Do you need a complete FPS,3rdPS engine ?? Or a collision command libary?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
Juso
22
Years of Service
User Offline
Joined: 23rd Sep 2002
Location: Finland
Posted: 5th Nov 2004 02:12 Edited at: 5th Nov 2004 02:12
Nice, however DBPro doesnt always calculate shadows right as in this case:

Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 5th Nov 2004 02:21
the cube is a little bit off the big cube

Do you need a complete FPS,3rdPS engine ?? Or a collision command libary?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0

Login to post a reply

Server time is: 2025-05-09 17:03:31
Your offset time is: 2025-05-09 17:03:31