Facepunch / sbox-issues

175 stars 12 forks source link

Better support for animated textures / materials #3087

Open TheBoxTrot opened 1 year ago

TheBoxTrot commented 1 year ago

For?

S&Box

What can't you do?

The current solutions for animated textures and materials is pretty limiting and feels like a downgrade compared to source 1. For as I'm aware it's not possible to have a decent resolution animated texture with lots of frames.

How would you like it to work?

Allowing the use of .gifs for textures and materials could be one solution or allowing multiple images to be selected for a material or texture.

What have you tried?

The current two ways that I'm aware of is combining all the images into one big image with each frame next two each other. This doesn't really work for longer animations with lots of frames as the image gets too big. It also has to have the combined textures to be power of 2. The other solution is to combine the images in a mks. This also doesn't work for longer animations due to a limit on how big the combined mks and it's resolution. Also I don't believe mks can be used for materials.

Additional context

No response

trende2001 commented 1 year ago

animated textures are definitely a huge downgrade in source 2

timmybo5 commented 1 year ago

Related to https://github.com/sboxgame/issues/issues/2844, give this one a thumbs up :)

TheBoxTrot commented 1 year ago

Related to #2844, give this one a thumbs up :)

yours is more so for bringing the existing system to ui. I'm talking about more improving the system we have already. but yeah overall same message I guess. animated stuff sucks right now