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.

Newcomers DBPro Corner / How to make Shadows

Author
Message
Vickie
18
Years of Service
User Offline
Joined: 23rd Oct 2006
Location:
Posted: 10th Oct 2008 17:32
Does anyone have a good idea how to make shadows work? Would you mind walking me through the process?

Has this Newcomers forum always been here?

Always~
Vickie

pcRaider
17
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 11th Oct 2008 13:21
Do you make a shadow?
There are some methods.
Stencil shadow, black light, polygon, Shader ...
-
Most are found by a search.
It is up to you which method you choose.
-
I attach a simple method.

Attachments

Login to view attachments
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 11th Oct 2008 19:07 Edited at: 11th Oct 2008 19:14
SET SHADOW SHADING ON and SET SHADOW LIGHT can help with shadow shading:



Here's a thread about it: One of Many Shadow Shading Threads
There are other ways, but I like this one (just don't make your objects too big or the shadows will get all flashy from far away).

Abraxis
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location:
Posted: 13th Oct 2008 18:52
some of these graphic cards do not support a shadow effects. Check your graphic cards for support

If you do something 10,000 times. Your bound to get it right once.
Vickie
18
Years of Service
User Offline
Joined: 23rd Oct 2006
Location:
Posted: 14th Oct 2008 08:12
Thanks for the code Sixty Squares! That worked like a charm, I
like the way it makes shadows, very nice~

Always~
Vickie

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 14th Oct 2008 23:44 Edited at: 14th Oct 2008 23:45
Quite welcome . There are more shadow commands like SET GLOBAL SHADOW COLOR that I didn't use in the code I posted. They can be found in that thread I linked to (among other places).

EDIT: Just on a side note, I saw your normal mapping demos (very nice by the way ) and I found that on normal mapped objects the shadows have to be applied after the objects have been textured and the normal map + shader applied (or, at least that's how it was with the shader I used). Otherwise they won't work.

Login to post a reply

Server time is: 2024-11-25 16:24:33
Your offset time is: 2024-11-25 16:24:33