Facepunch / sbox-issues

175 stars 12 forks source link

Animated Textures broken, showing wrong order of frames #5476

Closed KingOfTheFBI closed 4 months ago

KingOfTheFBI commented 6 months ago

Describe the bug

Seems something is wrong with animated textures, on preview for cube and plane they work but on the preview for sphere and in hammer/scene they just don't work.

Here is an animated texture on cube preview:

https://github.com/Facepunch/sbox-issues/assets/105941502/a6faeb38-7e8e-4f0b-b2d0-4ee67df8bbcf

Here is the same unaltered texture in action in hammer (appears the same in scene):

https://github.com/Facepunch/sbox-issues/assets/105941502/08937c98-8477-4a61-92af-b6880a9f26f2

To Reproduce

Make animated texture Put in hammer/scene

Expected behavior

It plays the frames correctly

Media/Files

No response

Additional context

Tried two different textures with way different resolutions same issue

aylaylay commented 4 months ago

I have no idea how you're using an animated texture in hammer or scene

aylaylay commented 4 months ago

Can you provide the files for this? The material and images

KingOfTheFBI commented 4 months ago

Can you provide the files for this? The material and images

asset.zip

aylaylay commented 4 months ago

Okay so this isn't working because the complex shader is doing the animation in vertex shader, we're not going to change this because we're likely going to get rid of animation support on complex, you can easily do an animated texture sheet in shadergraph

Gmod4phun commented 3 months ago

I think I just encountered this, it looks like its offset by one cell. Is this really something not worth fixing?

https://github.com/user-attachments/assets/be533a43-e5cf-4d88-8820-763f90df1446