Hey there,
Once again I’m in great need of your expertise!
I have this pre-rendered scene consisting of a 2D image which is rendered to a 2D quad (taking up the whole screen, of course).
Until now I wanted to use a depth map to make it possible to make dynamic characters and objects to be clipped behind some of the pre-rendered image’s “objects”.
However, when I began thinking of dynamic lighting and dynamic shadows I stumbled upon a few problems.
For one thing, since I’m (currently) not loading any vertices I don’t know how I could achieve the lighting and shadow thing.
I see two possibilities here:
- Draw some simplified version of the mesh every frame for use in lighting and shadowing calculations (maybe not even draw, but just use the 3D info directly…).
- Calculate e.g. the shadow volumes and use the depth map to find which pixels are inside these volumes and should be darkened.
I don’t know if any of these methods are preferable, but I’d certainly prefer some feedback from the great minds of you guys
Huge thanks in advance,