A standalone game Teleglitch uses a deceptive technique to simulate a cone of view, with the following effects:
The blogger looked at the tips
Actually, the line of sight shadows aren ' t do with perspective. They is just black polygons extruded from the walls away from the player. The math is similar to black 3d walls extruding towards the camera and if you really look at them, they aren ' t.
The principle and cartoon rendering extrude Edge is the same,
is to create a feeling of shadow by extruding a certain distance out of sight (player).
Bo Master did not adjust the distance before the implementation effect:
About the distance of the adjustment method, can not only adjust the distance of the extrusion, so that the shadow will be out of the object, Bo master according to the direction of sight to the object and the normal angle comparison, that is, dot product, to linearly change the distance, far away stretching long, near the basic motionless,
Final effect:
Also note that the comparison in the direction is the comparison of world space, which needs to change the vertex position of the object into the position of world space.
Blogger's recent renderings:
Recent renderings
----by wolf96
The realization of Unity3d simulation view Cone