Page 172 of 396

Re: Ask a simple question, get a simple answer

Posted: Mon Dec 05, 2016 10:47 pm
by Isaac
If it always happens, then it's always a possibility. :mrgreen:

*But it is good to know that one can always expect a 50% reduction in size from the change in format; for assets that don't need a high quality alpha.

Re: Ask a simple question, get a simple answer

Posted: Tue Dec 06, 2016 12:29 pm
by zimberzimber
There we go, thats the error I was talking about:
Image

Happened after converting all my textures to DX1, and those with alpha to DX5

Re: Ask a simple question, get a simple answer

Posted: Tue Dec 06, 2016 7:06 pm
by minmay
How did you convert them? Are you remembering to refer to all texture filenames with .tga in scripts (not .dds)?

Re: Ask a simple question, get a simple answer

Posted: Tue Dec 06, 2016 7:09 pm
by zimberzimber
minmay wrote:How did you convert them? Are you remembering to refer to all texture filenames with .tga in scripts (not .dds)?
Paint.Net -> Save As... -> .DDS -> Format -> DXT1/DXT5 -> Save
Yup, they're all referenced to as .tga in the scripts.

Re: Ask a simple question, get a simple answer

Posted: Tue Dec 06, 2016 7:26 pm
by minmay
You need to save them with mipmaps.

Re: Ask a simple question, get a simple answer

Posted: Tue Dec 06, 2016 8:19 pm
by zimberzimber
Same error

Re: Ask a simple question, get a simple answer

Posted: Tue Dec 06, 2016 9:00 pm
by Isaac
I've had this error many times. I'm not really sure what causes it [in each case], but I do think that I've had it with certain image sizes. IRRC dxt compression wants sides that are divisible by 4... Perhaps LoG2 itself has additional restrictions?

For instance, a 129x129 pixel portrait will crash the game.
Image

Image

Re: Ask a simple question, get a simple answer

Posted: Tue Dec 06, 2016 9:14 pm
by zimberzimber
That seems to be it... Don't even need mipmaps.

EDIT: Also they have to be at least 4x4 in size. If its 2x2, the game won't crash, but it'll display the error in console, and treat materials that use the texture as if the texture doesn't exist.

Re: Ask a simple question, get a simple answer

Posted: Tue Dec 06, 2016 11:28 pm
by minmay
Yeah, that would do it. I didn't even think to mention that. Remember this post.

Re: Ask a simple question, get a simple answer

Posted: Tue Dec 06, 2016 11:36 pm
by zimberzimber
minmay wrote:Yeah, that would do it. I didn't even think to mention that. Remember this post.
I do remember that, but for whatever reason I forgot everything except for "use whatever dimension you need" :?
Icon atlases also require a ^2 dimension though.