Mipmaps question

Place to get help with not working mods / modding interface.
User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

Mipmaps question

Post by Deadlock989 »

Hi, hoping a dev can answer this.

Since 0.17.46 you can now supply item icons with mipmaps.

Does the game generate its own interpolated mipmaps for icons that don't define their own?
Attachments
stone.png
stone.png (10.58 KiB) Viewed 901 times
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Mipmaps question

Post by eradicator »

Log of modless install:

Code: Select all

   5.011 Generated mipmaps (3) for atlas [9] of size 4096x4096
   5.023 Generated mipmaps (3) for atlas [10] of size 4096x208
   5.073 Generated mipmaps (3) for atlas [11] of size 4096x2208
   5.154 Generated mipmaps (3) for atlas [12] of size 4096x4080
   5.229 Generated mipmaps (3) for atlas [13] of size 4096x4064
   5.241 Generated mipmaps (3) for atlas [14] of size 4096x496
   5.278 Generated mipmaps (3) for atlas [15] of size 4096x1600
   5.291 Generated mipmaps (4) for atlas [16] of size 4096x1816
   5.313 Generated mipmaps (3) for atlas [23] of size 4096x1328
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Mipmaps question

Post by posila »

Deadlock989 wrote: Sat Jun 08, 2019 11:17 amDoes the game generate its own interpolated mipmaps for icons that don't define their own?
It does. Currently icons are placed into atlas, when the atlas is completed we generate mipmaps for the entire atlas, and then overwrite mipmaps with supplied data.
User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

Re: Mipmaps question

Post by Deadlock989 »

posila wrote: Sat Jun 08, 2019 11:36 am
Deadlock989 wrote: Sat Jun 08, 2019 11:17 amDoes the game generate its own interpolated mipmaps for icons that don't define their own?
It does. Currently icons are placed into atlas, when the atlas is completed we generate mipmaps for the entire atlas, and then overwrite mipmaps with supplied data.
Thanks. Linear interpolation?
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Mipmaps question

Post by posila »

Deadlock989 wrote: Sat Jun 08, 2019 11:39 amThanks. Linear interpolation?
Indeed
User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

Re: Mipmaps question

Post by Deadlock989 »

posila wrote: Sat Jun 08, 2019 11:41 am
Deadlock989 wrote: Sat Jun 08, 2019 11:39 amThanks. Linear interpolation?
Indeed
Much obliged to you sir
Post Reply

Return to “Modding help”