Originally Posted By: Superku
Thanks! wink
Obviously you can use models instead of map entities, the latter don't really have advantages over models since we have polygonal collision detection on models.

You mean dynamic lights, right? If you only have static lights, simply use the sun light direction vector for your trace or a simple vertical trace. If you have dynamic lights instead, iterate over them and use the nearest for calculation.


I tried to use cube models instead of map entities.
Indeed cube models cast their shadows on the map ground, but they dont show the shadow of the player when he jumps on them.
Unlike the cube map entities which shows the shadow of the player on them, and dont cast shadow on the ground ....


I dont understand why the engine cannot render the shadow of the map entities.

Thus , what is the benefit of using map entities in a level?