Mipmapping engine [After Effects]
Posted: Mon Dec 28, 2020 11:57 pm
Mipmapping engine [After Effects]
To avoid tedious work in updating a large number of icons I used a composition with recursive use of the same *.png file.
This solution is no doubt a more pedestrian solution than the python script mentioned in fff#348, but it works nicely and is an available option for all with access to AE.
The composition makes use of the same layout as vanilla mipmapped icons with versions going from larger (left) to smaller (right).
I used a 128x128 version for the largest and
"Feedstock" is thus a 128x128 icon.
Use:
Is defined in After Effects CS4
Feeding a new icon is done by "replace footage" (click on *.png-file and Ctrl-h) for option to select replacement file.
Output is effected by selecting the main composition and then File/Export/Image sequence
This will export the "video" as a set of images. As this composition is 1 sec and has a framerate of 1/sec. it will export 1 image.
Accept *.png as format and choose name for icon (i.e. "advanced-chemical-plant.png").
Save.
Repeat for all files.
You can easily make a 64x64 version by removing the 128x128 composition and shaving 128px off of the main composition.
Produce:
In recipes or item definitions you then declare:
icon_size = 128, icon_mipmaps = 5,
or
icon_size = 64, icon_mipmaps =4,
if you chopped off the 128.
Zipped mipmaps.aep (After Effects Project for CS4):
To avoid tedious work in updating a large number of icons I used a composition with recursive use of the same *.png file.
This solution is no doubt a more pedestrian solution than the python script mentioned in fff#348, but it works nicely and is an available option for all with access to AE.
The composition makes use of the same layout as vanilla mipmapped icons with versions going from larger (left) to smaller (right).
I used a 128x128 version for the largest and
"Feedstock" is thus a 128x128 icon.
Use:
Is defined in After Effects CS4
Feeding a new icon is done by "replace footage" (click on *.png-file and Ctrl-h) for option to select replacement file.
Output is effected by selecting the main composition and then File/Export/Image sequence
This will export the "video" as a set of images. As this composition is 1 sec and has a framerate of 1/sec. it will export 1 image.
Accept *.png as format and choose name for icon (i.e. "advanced-chemical-plant.png").
Save.
Repeat for all files.
You can easily make a 64x64 version by removing the 128x128 composition and shaving 128px off of the main composition.
Produce:
In recipes or item definitions you then declare:
icon_size = 128, icon_mipmaps = 5,
or
icon_size = 64, icon_mipmaps =4,
if you chopped off the 128.
Zipped mipmaps.aep (After Effects Project for CS4):