sp614x / optifine

1.81k stars 418 forks source link

[Feature] Animated textures starting at a random frame #1764

Closed Regnander closed 6 years ago

Regnander commented 6 years ago

I want a way to make animated textures start at a random frame to make (for example) fires and sea grass look more natural when placed next to each other.

Animations w/
the same
starting frame
Animations w/
a random
starting frame
seagrass-1seagrass-1seagrass-1 seagrass
fire-1fire-1fire-1 fires

But this doesn't looks as good on lava and water blocks. The texture doesn't quite match up with its neighbors when the animation starts at a different frame.

Textures w/
the same
starting frame
Textures w/ a
random starting
frame for each block
lava-1lava-1lava-1 lava-1lava-2lava-3
lavaflow-1lavaflow-1lavaflow-1 lavaflow-1lavaflow-2lavaflow-3

One important thing to have in mind is that the animation for whole kelp plants and tall sea grass(es?) must start at the same random frame to avoid ugly animations (column 2).

Animations w/ the same
random starting frame
for the whole plant
Animations w/ different
random starting frames
for each block
kelps-r kelps-f
tall-seagrass-r tall-seagrass-f
leafs444 commented 6 years ago

Maybe set the frame to like a few different? I agree, the fire looks SWEET but lava, eh NO. I'm guessing this will work.

OktayYeniTR commented 6 years ago

the fire,kelp,sea grass looks good but lava looks different i don't like it(lava) very much

sp614x commented 6 years ago

Usually there is only one texture which is being animated per tick. It is not possible to see two different variants of the texture at the same time. If the resource pack adds new textures then they can use another animation sequence. For example use CTM to randomize the kelp texture, then the different textures can use different animation sequences.