Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachments sometimes flicker for a frame #11991

Closed
appgurueu opened this issue Jan 25, 2022 · 7 comments
Closed

Attachments sometimes flicker for a frame #11991

appgurueu opened this issue Jan 25, 2022 · 7 comments
Labels
Bug Issues that were confirmed to be a bug @ Client / Audiovisuals Possible close

Comments

@appgurueu
Copy link
Contributor

appgurueu commented Jan 25, 2022

Minetest version
5.5-dev
Summary

Animated models and attachments sometimes flicker for a frame. This is a "heisenbug" and hard to observe; the attachment issue appears to occur more frequently though. See this video. Watch key moments at 0.25x speed to see the bug.

Attachment bug (diamond axe temporarily rotated by 180° around the player model):
Image

Steps to reproduce

MTG + wield3d or visible_wielditem mod, switch to 3rd person view, reduce viewrange, enable fast, run around.

@appgurueu appgurueu added the Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible label Jan 25, 2022
@appgurueu appgurueu changed the title Animations & attachments sometimes flicker for a frame Model & attachments sometimes flicker for a frame Jan 25, 2022
@SmallJoker
Copy link
Member

sfan5 already mentioned somewhere that the model disappears for one frame when crossing a re-positioning border each 200m. Although I cannot find the correct issue #...

@sfan5
Copy link
Collaborator

sfan5 commented Jan 25, 2022

duplicate of #10027

@sfan5 sfan5 closed this as completed Jan 25, 2022
@sfan5 sfan5 added Duplicate and removed Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible labels Jan 25, 2022
@appgurueu appgurueu changed the title Model & attachments sometimes flicker for a frame Attachments sometimes flicker for a frame Jan 25, 2022
@appgurueu
Copy link
Contributor Author

appgurueu commented Jan 25, 2022

@sfan5 only partially a duplicate; the attachment issue is lacking in #10027. I changed title and description accordingly, please reopen. The attachment issue is in fact more annoying to me.

@sfan5 sfan5 reopened this Jan 25, 2022
@sfan5 sfan5 added @ Client / Audiovisuals Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible and removed Duplicate labels Jan 25, 2022
@ghost
Copy link

ghost commented Feb 2, 2022

Yes, a very CONFIRMED issue. For examples:

  • In my Petz mod a Parrot is atached to the shoulder of the player model, and when it walks the rotated parrot ghost arises.
  • My "The Samz" player model shows this issue with wielded items.
    This issue is old, some guy said in an old post here that not putting the body bone rotation to 0.0 can resolve this issue. In fact the MTG player model is hacked to avoid this issue. He said that could be a export b3d issue.

@appgurueu
Copy link
Contributor Author

There also is this recent thread on the forum that seems to deal with it.

@Zughy Zughy added Bug Issues that were confirmed to be a bug and removed Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible labels Jun 4, 2022
@sfan5
Copy link
Collaborator

sfan5 commented Jan 17, 2025

Needs retesting.

@appgurueu
Copy link
Contributor Author

I think I can explain what was probably happening here: The negative scale bug leads to wrong joint transforms (the 180° Y rotation). Attachments are off by one frame (#14818), so Sam looks correct, and the attachment looks wrong exactly as one would expect.

It should be gone for certain once #15687 is merged (and not that it should be necessary, but I will touch that code again later to avoid calculating the scale from the transformation matrix at all by instead only calculating the matrix from the animated TRS properties).

@sfan5 sfan5 closed this as completed Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues that were confirmed to be a bug @ Client / Audiovisuals Possible close
Projects
None yet
Development

No branches or pull requests

4 participants