Page 2 of 3

Re: "Chrome" Material

Posted: Thu Feb 01, 2018 4:02 am
by Duion
I had problems using dds for skyboxes, since there are compression artifacts and they become very obvious if they cover the whole sky and even if it is just one pixel it still ruins all.
Skyboxes often have a very smooth gradient and dds formats somehow cannot render this properly.
Does anyone know which compression to use to avoid those problems?

Re: "Chrome" Material

Posted: Thu Feb 01, 2018 4:13 am
by Timmy
If bc3 (dxt5) still has artefacts just don't use compression (use a regular uncompressed RGBA8 format), i have also added in floating point support for dds formats so you can use hdr images for the skybox cubemap too. Make sure whatever tool you use is not generating mipmaps.

Re: "Chrome" Material

Posted: Thu Feb 01, 2018 4:19 am
by Duion
Is there then still a benefit in using dds compared to just using pngs?

Re: "Chrome" Material

Posted: Thu Feb 01, 2018 4:25 am
by Timmy
Is there then still a benefit in using dds compared to just using pngs?
apart from floating point support, no not really, just neater having a one liner in the material file and one file per sky. Going a bit off topic now, there is also support in dev branch for BC5 (aka 3Dc or ati2n) normal maps. As you can see i am not very good at documenting stuff :D

Re: "Chrome" Material

Posted: Thu Feb 01, 2018 12:51 pm
by Duion
So just use pngs.

Re: "Chrome" Material

Posted: Thu Feb 01, 2018 1:02 pm
by Timmy
Well if you prefer having 6 files instead of one, slower load times (sorry forget to mention that one) and no floating point support than sure ;)

Re: "Chrome" Material

Posted: Thu Feb 01, 2018 4:50 pm
by Duion
Oh I misread that, yes having 1 files may actually be a benefit, but I have yet to see an example how such file will look like and about floating point I have no idea what it does at all.

Re: "Chrome" Material

Posted: Thu Feb 01, 2018 10:51 pm
by Johxz
Oh I misread that, yes having 1 files may actually be a benefit, but I have yet to see an example how such file will look like and about floating point I have no idea what it does at all.
not problem using dds, look pretty good as usual.
http://forums.torque3d.org/viewtopic.ph ... 9196#p9196

Re: "Chrome" Material

Posted: Fri Feb 02, 2018 12:10 am
by Timmy
Oh I misread that, yes having 1 files may actually be a benefit, but I have yet to see an example how such file will look like and about floating point I have no idea what it does at all.
When i get chance over the weekend i'll start a new thread (i have hijacked this one enough :D ) and post a few examples and explain it all properly.

Re: "Chrome" Material

Posted: Fri Feb 02, 2018 1:06 am
by Duion
Oh I misread that, yes having 1 files may actually be a benefit, but I have yet to see an example how such file will look like and about floating point I have no idea what it does at all.
not problem using dds, look pretty good as usual.
http://forums.torque3d.org/viewtopic.ph ... 9196#p9196
That has not a gradient, try an mostly empty sky with a very fine gradient, that is where the compression often fails, if it is all fizzy, then you do not notice the artifacts. Which format did you use?