Am 06/02/2018 um 08:35 schrieb Volker Enderlein:
Hi,
I'm currently playing with the shadowmap example of Qt3D. When having
a PlaneMesh at (0, -5, 0), a CuboidMesh (width=height=depth=1) above
the PlaneMesh at (0, -4, 0), and a directional light source at (0, 30,
0) no shadow is visible on the plane. Because the CuboidMesh is above
the plane I would expect a shadow to be cast on the PlaneMesh. Adding
a small change in position of the light say (0.001, 30, 0) procduces a
shadow on the PlaneMesh.
Do I miss something important?
Cheers Volker
Immediately after sending the question to the list, I solved my problem
by providing a correct upVector to the lightCamera. Previously upVector
and light direction were collinear :(
Cheers Volker
--
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest