TiMc Posted April 6, 2010 Share Posted April 6, 2010 For some reason I can't seem to get these working? I'm using the instancepoint() expression but I keep getting an error on my mantra node. Has anyone had any similar problems? Quote Link to comment Share on other sites More sharing options...
sanostol Posted April 6, 2010 Share Posted April 6, 2010 do You use the instancepoint() expression on the mapfile output param? it works here Quote Link to comment Share on other sites More sharing options...
TiMc Posted April 6, 2010 Author Share Posted April 6, 2010 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. Quote Link to comment Share on other sites More sharing options...
symek Posted April 7, 2010 Share Posted April 7, 2010 Show your setup to investigate the problem Quote Link to comment Share on other sites More sharing options...
TiMc Posted April 7, 2010 Author Share Posted April 7, 2010 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. Quote Link to comment Share on other sites More sharing options...
TiMc Posted April 7, 2010 Author Share Posted April 7, 2010 oops... here we go. lightInstancing.hip Quote Link to comment Share on other sites More sharing options...
TiMc Posted April 7, 2010 Author Share Posted April 7, 2010 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. Quote Link to comment Share on other sites More sharing options...
symek Posted April 7, 2010 Share Posted April 7, 2010 (edited) 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 April 7, 2010 by SYmek Quote Link to comment Share on other sites More sharing options...
TiMc Posted April 7, 2010 Author Share Posted April 7, 2010 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? Quote Link to comment Share on other sites More sharing options...
TiMc Posted April 7, 2010 Author Share Posted April 7, 2010 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.