Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] General Discussion => Topic started by: Twibbz on 2020-06-04, 12:28:49

Title: Texture sizes - power of 2 good practice?
Post by: Twibbz on 2020-06-04, 12:28:49
So I used to come from a more of a video game dev background where game engines are limited to the power of 2 textures.
I have a lot of textures that i have used that do no adhere to this. Say for instance a long wood veneer texture which would be 800 x 3000 pixels
I know this isn't a limitation here but i was wondering if it was still good practice to do so or to at least keep the imagery/textures square.

Thanks,
Title: Re: Texture sizes - power of 2 good practice?
Post by: romullus on 2020-06-04, 12:33:42
Having your textures at resolution of power of 2 will never hurt, but as long as your scene is fitting to RAM, there's nothing to worry about. I don't think you can gain render time from different resolution of textures.
Title: Re: Texture sizes - power of 2 good practice?
Post by: maru on 2020-06-04, 14:59:28
There is actually an improvement with non-power of two textures in Corona 6. I will be right back with an explanation what exactly has changed and what benefits it brings.
Title: Re: Texture sizes - power of 2 good practice?
Post by: maru on 2020-06-04, 15:19:30
So in V5, the non-power of two textures could eat up slightly more RAM (the exact numbers are dependent on the resolution, bit depth, etc). In V6 we have lowered the memory usage for them up to about ~40% in extreme cases.
Title: Re: Texture sizes - power of 2 good practice?
Post by: Twibbz on 2020-06-04, 15:27:10
Thanks for the replies,
so am I right in saying to use power of 2 or squared textures if readily available (I find them easier to work with in max and in general)  but otherwise using textures with different pixels height and width (such is the case with my veneers) wont really impact any performance providing allocated ram is sufficient
Title: Re: Texture sizes - power of 2 good practice?
Post by: maru on 2020-06-04, 17:31:13
Thanks for the replies,
so am I right in saying to use power of 2 or squared textures if readily available (I find them easier to work with in max and in general)  but otherwise using textures with different pixels height and width (such is the case with my veneers) wont really impact any performance providing allocated ram is sufficient
Yep, sounds right.
Title: Re: Texture sizes - power of 2 good practice?
Post by: sprayer on 2020-06-05, 23:48:26
File format also impact to RAM, JPG most optimized for that, according autodesk recommendation
Title: Re: Texture sizes - power of 2 good practice?
Post by: romullus on 2020-06-06, 09:53:52
@sprayer, didn't we discussed this already? Texture format does not have impact on RAM consumption: https://forum.corona-renderer.com/index.php?topic=22406.msg137900#msg137900 Please stop spreading misinformation.