Jump to content

Shadow

From ModEnc²
Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: Shadow
File(s): Rules(md).ini, art(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Default: yes


This flag controls whether or not this Projectile's image draws a shadow on the ground. (The shadows in this section correspond to reality. But the shadow relies on the original image to determine the shadow's appearance).

For Art.ini or Artmd.ini determines whether this Image has a shadow or not. (The shadows in this section are created by drawing custom shadows. Therefore, the direction of the shadow does not correspond to reality).
For Animations If there is Shadow=yes even though we didn't create a shadow ourselves. But this tag will be generated automatically. But the shadows created by automatic creation It won't render properly. The position of the shadow corresponds to reality. But it does not correspond to the original image that was used to render the shadows.

Note

  • Images in the Particles section will not read this tag. Although the Image in the section Animations will have this tag.
  • When TechnoTypes is in the same position as the shadow Makes the shadow that the game shows seems abnormal.
    File:Shadow Mirage.png
  • The reason why the shadow of the SHP image Disappears when in a sloped area (including some areas) Probably from the height of Creating shadows that are not high enough.
    File:Shadow Limitations(SHP).png
    Original
    File:Shadow(Edit).png
    Edit
  • Since the color used to create shadows in the Snow Theater is created with the color code 1(0x001), the color of the shadow is lower than the object (objects within the shadow's boundary will not have a darker color).

[!]The reason Westwood created the color of the shadow with the color code 1(0x001) is probably because it is easy to distinguish when scrolling to the frame of the shadow, because the color code 0(0x000) is the background color of the frame.

  • Shadows of most SHP objects The shadow will be lower than the object.

If you want the shadow of a building to be higher than the object Delete shadows or do not create shadows for SHP buildings. Then go create the shadow of the SHP building in the form of an animation instead, then set Layer=ground,YSortAdjust=543 Doing this will add realism to the shadow.
File:Shadow Edit.png

  • Sometimes the shadow of AircraftTypes is drawn under certain objects, when in reality the shadow should be above all objects.

Bugs/Side-Effects/Unexpected Limitations

  • If the shadow color is created with color code 0(0x000) and the shadow belongs to the animation section Buildup, the shadow will not appear at all, as if it were set to Shadow=no(In the case of creating shadow color only in the shadow frame).