Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Sun Aug 31, 2025 8:25 pm
All times are UTC + 0
Weapon Anim Clipping [SOLVED]
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [10 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Ousagi
Rocket Infantry


Joined: 02 Nov 2022

PostPosted: Sun Jul 27, 2025 9:23 am    Post subject:  Weapon Anim Clipping [SOLVED]
Subject description: The weapon anim is clipping on one building but not the other
Reply with quote  Mark this post and the followings unread

The [WeaponType] Anim= is clipping on one building but it doesn't in my units or another building.

The building's anim I'm showing right now isn't the anim I'm gonna use for it, it's for demonstration only to see the clipping better,
but even with a smaller anim it still clips the same. The SE direction has clipping issues and the one I'm showing is the the most noticeable.

I've resized the building and before I resize the anim, I tested it on another building (the one at the bottom)
and it doesn't seem like the issue is coming from the anim.

The code for the top building is the same as the bottom, which is the code for the original Sentry Gun.



Weapon Anim.gif
 Description:
 Filesize:  3.43 MB
 Viewed:  345 Time(s)

Weapon Anim.gif



Last edited by Ousagi on Mon Jul 28, 2025 8:06 pm; edited 1 time in total

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sun Jul 27, 2025 2:01 pm    Post subject: Reply with quote  Mark this post and the followings unread


_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Ousagi
Rocket Infantry


Joined: 02 Nov 2022

PostPosted: Sun Jul 27, 2025 3:26 pm    Post subject: Reply with quote  Mark this post and the followings unread

Mig Eater wrote:
Try changing the ZAdjust= or YSortAdjust of the anim.

Still nothing. Tried -200 and -500.

Code:
[APOCGMZ0]
Layer=ground
YSortAdjust=-500
ZAdjust=-500
Translucent=no



Anim Adjust.gif
 Description:
 Filesize:  3.78 MB
 Viewed:  322 Time(s)

Anim Adjust.gif



Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sun Jul 27, 2025 4:06 pm    Post subject: Reply with quote  Mark this post and the followings unread

I've never seen this issue before, the fact that the area that gets clipped isn't consistent, changing over the course of the anim doesn't make any sense too :/

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Ousagi
Rocket Infantry


Joined: 02 Nov 2022

PostPosted: Sun Jul 27, 2025 5:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

Mig Eater wrote:
I've never seen this issue before, the fact that the area that gets clipped isn't consistent, changing over the course of the anim doesn't make any sense too :/


If there is something that's consistent is that this affects the same way for other weapon anim used on this building.

The anims probably isn't the issue. It might be from the building. The other 2x2 building I also have doesn't seem to have the issue.



Other 2x2 Building.gif
 Description:
 Filesize:  5.43 MB
 Viewed:  308 Time(s)

Other 2x2 Building.gif



Other Anim.gif
 Description:
 Filesize:  2.85 MB
 Viewed:  308 Time(s)

Other Anim.gif



Back to top
View user's profile Send private message
Ousagi
Rocket Infantry


Joined: 02 Nov 2022

PostPosted: Sun Jul 27, 2025 6:33 pm    Post subject: Reply with quote  Mark this post and the followings unread

I FOUND THE ISSUE!

The issue was the FLH=245,140,-45. The -45 was causing the clipping. But moving it to 0 wouldn't align it to the barrel of the building.
The sentry gun seems aligned with the anim but the 2x2 building is not.

The anim is in proper height where the projectile appear, moving it lower or higher would make the anim not align with the projectile instead.

Is there a way to align the building, anim, and projectile?



Projectile not Aligned.gif
 Description:
 Filesize:  4.15 MB
 Viewed:  299 Time(s)

Projectile not Aligned.gif



Height=0.gif
 Description:
 Filesize:  2.8 MB
 Viewed:  299 Time(s)

Height=0.gif



Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Mon Jul 28, 2025 1:22 am    Post subject: Reply with quote  Mark this post and the followings unread

Glad you found the issue, to fix the anim you could make the FLH 0,0,0 and then render the anim with the offset instead.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Ousagi
Rocket Infantry


Joined: 02 Nov 2022

PostPosted: Mon Jul 28, 2025 5:49 am    Post subject: Reply with quote  Mark this post and the followings unread

Mig Eater wrote:
Glad you found the issue, to fix the anim you could make the FLH 0,0,0 and then render the anim with the offset instead.


Render the anim with the offset? Wouldn't making the FLH 0,0,0 make the projectile come from the center?

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Mon Jul 28, 2025 6:59 am    Post subject: Reply with quote  Mark this post and the followings unread

Ah, yeah I forgot about that.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Ousagi
Rocket Infantry


Joined: 02 Nov 2022

PostPosted: Mon Jul 28, 2025 8:02 pm    Post subject: Reply with quote  Mark this post and the followings unread

Finally found the solution. PrimaryFireDualOffset=true and PrimaryFirePixelOffset=0,7 allows the anim to move down without the clipping issue.
This were used by Pillboxes. That was what made it able to shoot without clipping for Anim=GUNFIRE.I don't know why it needs these two codes,
but my guess is that  PrimaryFirePixelOffset=0,7 gives a positive value so it wouldn't mess with the anim since you know the clipping happened because of -45 in height



PrimaryDualOffset and PrimaryFirePixelOffset.gif
 Description:
 Filesize:  2.79 MB
 Viewed:  206 Time(s)

PrimaryDualOffset and  PrimaryFirePixelOffset.gif



Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [10 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.2135s ][ Queries: 20 (0.0162s) ][ Debug on ]