Hi, another idea I was thinking about is casting shadows on marker plane. This would be a bit more tricky to implement, possibly undoable too, but was thinking about following procedure. It's shadow mapping I was thinking about.
- For shadow maps to work one should first render depth map from the light point of view. This is the hardest part AFAIK but might be doable using currently available pose- and projection matrices. This would include rendering both marker plane and 3D object into depth buffer.
- Render the scene as usual - with the difference there's shadow map available. For casting shadows properly one should also render the marker plane too on which the shadows are most likely cast.
Will give this a go later on once I have time but leaving the idea here for others to see.