Jump to content

Depth Map shadows on instanced lights


Recommended Posts

do You use the instancepoint() expression on the mapfile output param?

it works here

Yeah, that's exactly what I've got but for some reason I'm getting that error.

Ive even tried it with a light template instead but that is giving some odd results. I can use a blur shadow shader to get soft shadows but these are proving to be rather time consuming to render.

Link to comment
Share on other sites

Show your setup to investigate the problem ;)

Here's a file.

I've been trying numerous different ways to achieve this but can't seem to get it working. I'm sure I must be doing something silly.

This particular file doesn't get the mantra error but I still can't seem to get depth mapped shadows on the instances.

The only thing you'll have to do is change the path for the shadow maps.

Thanks for any help.

Link to comment
Share on other sites

Ok I've just managed to get this working on the scene I'm actually doing.

I've no idea what I'm doing differently but it appears to be working.

Still, if anyone could help with the hip I've posted above that would be good.

Link to comment
Share on other sites

Ok I've just managed to get this working on the scene I'm actually doing.

I've no idea what I'm doing differently but it appears to be working.

Still, if anyone could help with the hip I've posted above that would be good.

The points you are instancing lights onto should have the normal attribute to orient instanced lights according to it. It becomes light's local z-axis which is opposite direction to what light is facing to. That's it. Your lights were pointing space above geometry, so you couldn't see any shadows.

hth.

Edited by SYmek
Link to comment
Share on other sites

Thanks Symek,

That's working but I'm getting square shadows now. Sorry to be a pain but you don't have any idea why this is?

It appears that it's not the sphere in the scene which is causing the shadow. When I turn this off I still get the two square shadows on the floor.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...