Creating a light which only creates shadows
What I want - is to be able to create some kind of "light" component, which will not generate light, but only shadows. It should be able to "shadow" already existing lights and shadows (basically after all calculation of shadow and lights, some kind of postprocessing them), shadowing all that is not "lit" by this "invisible light".
It seems that I need to go inside the rendering, but I just don't get how and where. Can someone give me an advice what should be known to do such a thing, which classes I should investigate, and maybe there is even a some kind of API for that?
Thanks in advance!
asked Apr 02 '14 at 09:13 PM in C++ Programming
Regular shadows are not actually drawn, they are the absence of light from a particular light casting object. I think you are thinking of lights as drawing both the light and the shadow as two different components, and you wish to simply not draw the light one. This will not work.
I think you should move away from lights in the regular sense and look for information on how to project an image onto the world. Lights using light functions and decals use this in one way or another.
What you want to do is capture an image of what this invisible light hits, color all that black/grey and project this black image to pixels that are behind the ones in the projected image.
answered Apr 04 '14 at 08:19 AM
Check out this Archive post about Negative Lighting: https://answers.unrealengine.com/questions/10390/requestnegative-lights.html
Hope that helps!
answered Apr 02 '14 at 09:36 PM
I don't really understand what you want, is it shadows like ghosts in metro 2033 ? you know... :
Edit : silly me, this ain't shadows at all, just black transluent models shown by the flashlight...
A dirty way of doing it would be to add the shadows to the texture. You could render to texture in 3ds Max. That would require a complete scene to be done in 3ds Max, then exported.
answered Apr 04 '14 at 06:49 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here