[Resolved] Splash screen only accepted in TGA format.
[Resolved] Splash screen only accepted in TGA format.
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?
- psi29a
- Posts: 5362
- Joined: 29 Sep 2011, 10:13
- Location: Belgium
- Gitlab profile: https://gitlab.com/psi29a/
- Contact:
Re: Splash screen only accepted in TGA format.
Create a issue on the bug tracker... so we can track it.
If you know how to code, please create a PR.
If you know how to code, please create a PR.
- psi29a
- Posts: 5362
- Joined: 29 Sep 2011, 10:13
- Location: Belgium
- Gitlab profile: https://gitlab.com/psi29a/
- Contact:
Re: Splash screen only accepted in TGA format.
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.
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.
- AnyOldName3
- Posts: 2679
- Joined: 26 Nov 2015, 03:25
Re: Splash screen only accepted in TGA format.
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.
-
- Posts: 38
- Joined: 09 Aug 2017, 05:32
Re: Splash screen only accepted in TGA format.
I did a quick search and found osgconv --formats.
OpenSceneGraph Forum - How to get the listof supported file formats
PluginQuery.cpp
OpenSceneGraph Forum - How to get the listof supported file formats
PluginQuery.cpp
Re: Splash screen only accepted in TGA format.
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)
I'd say we limit ourselves to the list of recommended formats from here. (dds, tga, bmp, jp[e]g, png)
- psi29a
- Posts: 5362
- Joined: 29 Sep 2011, 10:13
- Location: Belgium
- Gitlab profile: https://gitlab.com/psi29a/
- Contact:
Re: Splash screen only accepted in TGA format.
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...
We can always expand the list if there is some overwhelming reason to do so.
I'm on the bench about ktx...
- psi29a
- Posts: 5362
- Joined: 29 Sep 2011, 10:13
- Location: Belgium
- Gitlab profile: https://gitlab.com/psi29a/
- Contact:
Re: Splash screen only accepted in TGA format.
It was merged, so this feature request should be resolved now.
I added ktx as well.
Thanks kuyondo for bringing this up.
I added ktx as well.
Thanks kuyondo for bringing this up.
Re: [Resolved] Splash screen only accepted in TGA format.
Excellent work psi, maybe trivial but very good for modders. Will the next version of openmw have this feature?