Changes

Jump to navigation Jump to search

Tutorials/Advanced/Extended Shadows

23 bytes added, 07:15, 25 February 2018
Placing the Locators
Typically, the same texture will be used for both the extended shadow and the UI shadow model of a truck or trailer. In this case, the extended shadow locators must be placed in reference to the UI shadow model so that the texture will project onto the shadow volume the same way it's mapped to the UI shadow.
#Place the origin locator (shadow_x_ori) so that is sits in the bounding box center of your UI shadow model when viewed from above. Its position in Z is the top of the shadow volume/the highest point that would be darkened by the extended shadow.<br />[[File:Ext_shadow_3.jpg|center]]#Place the corner locator (shadow_x_crn) at the front left (+Y, -X) extreme of your UI shadow model when viewed from above. Usually, it is placed it below ground level so that the shadow doesn't disappear awkwardly when you go the player goes over a dip. A reasonable value is around -65cm. (If it is very low, the shadow volume will extend below bridges, etc)<br />[[File:Ext_shadow_4.jpg|center]]
=== Making the ''Fakeshadow'' Surface ===
309
edits

Navigation menu