Jump to content

ZAdjust: Difference between revisions

From ModEnc²
en>DeathFish
No edit summary
en>DeathFish
mNo edit summary
Line 26: Line 26:
* [[ActiveAnimZAdjust]] – equivalent flag for [[BuildingTypes]]'s [[ActiveAnim|ActiveAnims]]
* [[ActiveAnimZAdjust]] – equivalent flag for [[BuildingTypes]]'s [[ActiveAnim|ActiveAnims]]
* [[YSortAdjust]]
* [[YSortAdjust]]
*The spatial coordinate relationship of ZAadjust:
*The spatial coordinate relationship of ZAdjust
**https://bbs.ra2diy.com/forum.php?mod=viewthread&tid=24951
Here is a cross-sectional view parallel to the ground plane, equivalent to a perspective from southwest to northeast in the game (or from left to right for the screen):
*https://bbs.ra2diy.com/forum.php?mod=viewthread&tid=24951

Revision as of 06:43, 2 January 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: ZAdjust
File(s): Art(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Default: 0
Applicable to: Animations


This flag adjusts the animation's location on the Z-axis (depth), measured in leptons. Positive values move the animation "away from the screen" or "closer to the ground". Negative values do the opposite.

Adjusting the Z-offset is useful for rendering the animation behind or in front of other animations or objects.

Note

  • Images in the Particles section will not read this tag. Although the Image in the section Animations will have this tag.

Bugs/Side-Effects/Unexpected Limitations ZAdjust affects Animations of Anim sets under Primary or Secondary including Weapon.
by larger values (ZAdjust=100,ZAdjust=1000,ZAdjust=10000), This will make Animations scroll down continuously (only some parts are visible)

The ZAadjust of other objects is only used to compare levels with these contents.
That is to say, there is no difference between two animations that use different ZAadjust. YSort controls their order, not ZAadjust.

See also

Here is a cross-sectional view parallel to the ground plane, equivalent to a perspective from southwest to northeast in the game (or from left to right for the screen):