Page 1 of 2

[Resolved] Splash screen only accepted in TGA format.

Posted: 13 Sep 2017, 09:24
by kuyondo
TGA files are large, maybe we can use DDS as an alternative? OpenMW only accepts TGA formats for splashscreens. DDS has smaller file size and keeps the same quality. What do you think of this?

Re: Splash screen only accepted in TGA format.

Posted: 13 Sep 2017, 10:40
by psi29a
Create a issue on the bug tracker... so we can track it. :D

If you know how to code, please create a PR. :)

Re: Splash screen only accepted in TGA format.

Posted: 13 Sep 2017, 12:54
by psi29a
Nevermind... does this help?

https://github.com/OpenMW/openmw/pull/1452

Add supported for dds and png.

We can always add more, or if someone has a way to poll OSG for supported formats... I could use that instead of a custom list.

Re: Splash screen only accepted in TGA format.

Posted: 13 Sep 2017, 13:33
by AnyOldName3
At the minimum, I'm pretty sure you can query OSG about which plugins it has available. Using this, you could then have a map from plugin name to supported formats, and for each plugin installed, add its associated formats to the search list.

Re: Splash screen only accepted in TGA format.

Posted: 13 Sep 2017, 13:41
by JohnMaster

Re: Splash screen only accepted in TGA format.

Posted: 13 Sep 2017, 13:48
by scrawl
The deal with using the list of OSG's supported formats is that the list depends on how the user compiled OSG. Now imagine user A's build supports some obscure format, he makes a splashscreen in said format, uploads it as a mod and now other users will complain they can't use it.

I'd say we limit ourselves to the list of recommended formats from here. (dds, tga, bmp, jp[e]g, png)

Re: Splash screen only accepted in TGA format.

Posted: 13 Sep 2017, 14:28
by psi29a
I'll add the additional formats you listed scrawl, thanks. (bmp, jpeg, jpg)

We can always expand the list if there is some overwhelming reason to do so.

I'm on the bench about ktx...

Re: Splash screen only accepted in TGA format.

Posted: 14 Sep 2017, 01:12
by Chris
psi29a wrote: 13 Sep 2017, 14:28 I'm on the bench about ktx...
I'd say go for it, as long as OSG's support for it isn't flaky. Always good to support open format alternatives to proprietary DirectX-centric ones, IMO.

Re: Splash screen only accepted in TGA format.

Posted: 14 Sep 2017, 09:19
by psi29a
It was merged, so this feature request should be resolved now. ;)

I added ktx as well.

Thanks kuyondo for bringing this up.

Re: [Resolved] Splash screen only accepted in TGA format.

Posted: 14 Sep 2017, 14:22
by kuyondo
Excellent work psi, maybe trivial but very good for modders. Will the next version of openmw have this feature?