» Soft Shadows for Point Light
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Soft Shadows for Point Light

effect

about

Soft shadows calculated from cubetexture depth so it works for point lights in every direction. It manages alpha channels too however AlphaTest (EX9.RenderState) is required in that case. The softening technique is lame and simple as a rock so if anybody can do a better one please contribute it :P It's rendered separately so you just have to multiply the shadows on whatever scene you'd like to.

download

SoftShadowsPoint.zip
06.03.12 [01:12 UTC] by microdee | 2322 downloads

Desaxismundi 06/03/2012 - 02:39

nice!tx!

Noir 06/03/2012 - 02:54

cool

karistouf 06/03/2012 - 11:26

bravo ! what a contrib, really nice !
question: how do you arrive to obtain from DX9texture node TWO texture out ? did you cheat pins input ?

microdee 06/03/2012 - 16:26

thanks! that is only multiple rendertargets are set in the pixel shader and the dx9texture is spreaded in the inspektor

karistouf 06/03/2012 - 17:39

ah yes.... thxs !

lightizm 07/03/2012 - 10:15

vvvvery nice!

u7angel 08/03/2012 - 00:02

looks great !

antokhio 08/03/2012 - 02:57

ty

colorsound 09/03/2012 - 12:52

looking forward to play with it thx ;D

robe 25/11/2012 - 20:52

A shout by tonfilm redirect me on this wonderfoul contribution..
I remember was working good but now in b28.1:

it seems that the getslice node to retrieve shadow doesn't work quite well:

Could someone shade some light on this strange behaviour?

Cheers
robe

microdee 26/11/2012 - 00:54

that's blurperfector not getslice. looks like nowadays blurperfector acts very strangely if i recall well it was good in b27 or b27.1 addonpack copy that blurperfector to b28's addonpack, or if you're good without it simply turn it off. also the same technique is used in mre-mdmod with some improvements and it was created in b28.1. there is a good blurperfector inside SSAO as well

sven 26/11/2012 - 18:04

Would it be possible to have that with multiple light sources (additive) and individual shadow colors for each light?

microdee 26/11/2012 - 23:16

well you have to create separate cubemap rendertargets as separate shadowmaps for each light and multiply them at the end. and unfortunately it's quite expensive on its own too. but if your machine can handle it you can create as many instances of this as you want

sven 26/11/2012 - 23:40

I was just wondering as I thought you had a solution for multiple lights in your mre-mdmod suite. However, the shadow color is fixed anyways, right?

microdee 27/11/2012 - 00:42

in mre.mdmod there is a main light selected which will cast shadows. the color is straightforward with this contribution simply add a constant color to the shadow pass and multiply it over your scene. it's not that simple in mre.mdmod as the shadows are calculated in the same pass as the scene. however the approach should be the same with mre as well just inside the shader.

anonymous user login

Shoutbox

~18d ago

joreg: END OF SHOUTBOX! As this page has is now legacy, it will no longer feature new content. For latest news, see: http://vvvv.org

~1mth ago

joreg: vvvvTv S0204 is out: Custom Widgets with Dear ImGui: https://youtube.com/live/nrXfpn5V9h0

~1mth ago

joreg: New user registration is currently disabled as we're moving to a new login provider: https://visualprogramming.net/blog/2024/reclaiming-vvvv.org/

~2mth ago

joreg: vvvvTv S02E03 is out: Logging: https://youtube.com/live/OpUrJjTXBxM

~2mth ago

~2mth ago

joreg: Follow TobyK on his Advent of Code: https://www.twitch.tv/tobyklight

~2mth ago

joreg: vvvvTv S02E02 is out: Saving & Loading UI State: https://www.youtube.com/live/GJQGVxA1pIQ

~2mth ago

joreg: We now have a presence on LinkedIn: https://www.linkedin.com/company/vvvv-group

~2mth ago

joreg: vvvvTv S02E01 is out: Buttons & Sliders with Dear ImGui: https://www.youtube.com/live/PuuTilbqd9w

~2mth ago

joreg: vvvvTv S02E00 is out: Sensors & Servos with Arduino: https://visualprogramming.net/blog/2024/vvvvtv-is-back-with-season-2/