#Animated VTF limits

1 messages · Page 1 of 1 (latest)

minor warren
#

Hello. I tried for a very long time to find at least some information about the limits of an animated VTF texture, but even in the wiki there is nothing about this.
I'm interested in what are the limits on the number of frames and texture resolution? For example, I have seen an animated 512x256 texture that has as many as 497 frames + mipmaps. It weighs 42MB and works correctly.
I'm interested in how many frames can be placed in 512x512, I already get a non-working VTF at about 300 frames, which does not want to work in the game.

brisk widget
#

post ur vtf and vmt

minor warren
#

I will not send any examples (and it is clear that these are just engine limits), I need statistics from those who have experimented with this or know some resource where there is a list.
for example, in 256x256 I managed to put as many as 853 frames, 1000+ already the texture is not readable.

minor warren
#

I had to do the calculations myself. In the end, here is the data I was able to get. Personally, I myself tested only 512x512 / 512x256 / 256x256. The rest I have already calculated from the resulting examples. It can be seen that everything is tied to multiples of two, but the frame limit is one frame less, and the weight of the file itself usually turns out to be ~ 43mb

64х64 - 16383 frames
64х128 - 8191 frames
128х128 - 4095 frames
128х256 - 2047 frames
256x256 - 1023 frames
256х512 - 511 frames
512х512 - 255 frames
512х1024 - 127 frames
1024х1024 - 63 frames
1024х2048 - 31 frames
2048х2048 - 15 frames
2048х4096 - 7 frames
4096х4096 - 3 frames

grizzled knoll
#

through the power of math i have managed to simplify your findings into one limit

#

and that limit is 67 108 864 pixels per VTF

#

regardless of frame count or resolution

#

though your findings are missing a lot of fundamental data

#

what is the size in megabytes for each sample

#

what compression (if any) algorithm was used

#

do the VTFs have mipmaps etc

minor warren
#

DXT1/DXT1 with standard mipmaps

minor warren
#

If you add at least one more frame to the texture, then it ceases to be displayed in the game and an error appears in the console when reading the vtf file.