Code archives/3D Graphics - Effects/Stencil Shadow System

This code has been declared by its author to be Public Domain code.

Download source code

Stencil Shadow System by bytecode772006
this is a little stencil shadow system.
read more about that here:

http://www.blitzbasic.com/logs/userlog.php?user=8270&log=660

heve fun :)
-

Comments

Naughty Alien2006
..excellent..thanks for share man


Naughty Alien2006
Is this working properly with B3D as well as MD2 animated meshes?


bytecode772006
no, md2 meshes arent included and will never be.
well, later i will make animated meshes casting a shadow, but for md2 it is not possible...


Naughty Alien2006
..okay..sounds good and very easy to use..i hope you will make it faster, its really cool..and I hope B3D animated mesh support will be included..


degac2006
Very very good!
Of course my compliments to Vincenzo (aka Dare Devil) for his work


bytecode772006
yes... thx for compliments :)
i am now working with dare devil together in a team, so we can easily make a shadow system together :)


tsmpaul2006
I've been having trouble getting this to work. It comes up saying there's no such thing as SetRenderState, and crashes. It points to lines like this one:

SetRenderState(Direct3Ddevice7, D3DRS_ZWRITEENABLE, True)


Stevie G2006
Put the .dll and decals files in your userlibs folder for Blitz3d and it should work fine. Unless, of course, your using a gfx card which doesn't support stencil shadows.

Stevie


Filax2006
Hi Devils Child :)

do you plan to improve shadow rendering ? because the casting work perfectly !!, but the dark side of the objects are polygoned ?


Code Archives Forum