True-Color PNG support for Hexen Startup

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

True-Color PNG support for Hexen Startup

Postby StrikerMan780 » Fri Nov 17, 2017 3:33 pm

I'd like to know how feasible it would be to add support for 640x480 true-color PNGs for the Hexen startup type, and *maybe* PNGs of the appropriate sizes for notch/netnotch as well. Reason I ask, is I want to make a nice startup screen for one of my mods, that simply doesn't look presentable with only 16 colors.
User avatar
StrikerMan780
Struggling but getting by. For now.
 
Joined: 29 Nov 2005
Discord: StrikerTheHedgefox#6299
Github ID: StrikerMan780
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: True-Color PNG support for Hexen Startup

Postby Kinsie » Fri Nov 17, 2017 11:10 pm

I wanna say that this has been bought up in the past, but that it's not a trivial addition (which is why it hasn't happened yet).

Nothing wrong with bringing it up again, though. It'd be a very welcome addition, and it would have saved a lot of swearing on my part when I was messing around with this stuff.
User avatar
Kinsie
Dog Days
 
Joined: 22 Oct 2004
Location: MAP33
Discord: Find Me...
Twitch ID: thekinsie

Re: True-Color PNG support for Hexen Startup

Postby Graf Zahl » Sat Nov 18, 2017 12:39 am

The main reason nothing has happened yet is because the startup code is not a clean part of the actual engine but a Windows-only add-on that consists of highly system-dependent code.
Unless someone ports this to Mac and Linux (which I cannot do myself because I do not own such systems) I feel no motivation to change it.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: True-Color PNG support for Hexen Startup

Postby StrikerMan780 » Mon Nov 20, 2017 4:37 pm

Would moving the drawing of Heretic/Hexen/Strife load screens and ENDOOM screens into the engine, where they'd be drawn with the user's selected renderer be the best route in this case?
User avatar
StrikerMan780
Struggling but getting by. For now.
 
Joined: 29 Nov 2005
Discord: StrikerTheHedgefox#6299
Github ID: StrikerMan780
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: True-Color PNG support for Hexen Startup

Postby Kinsie » Mon Nov 20, 2017 9:38 pm

StrikerMan780 wrote:Would moving the drawing of Heretic/Hexen/Strife load screens and ENDOOM screens into the engine, where they'd be drawn with the user's selected renderer be the best route in this case?
I believe those screens are shown while the engine is initializing and such, which would make this unfeasible unless you showed these screens after loading the game as like an artificial load screen... which would kill the point.
User avatar
Kinsie
Dog Days
 
Joined: 22 Oct 2004
Location: MAP33
Discord: Find Me...
Twitch ID: thekinsie

Re: True-Color PNG support for Hexen Startup

Postby Graf Zahl » Tue Nov 21, 2017 1:36 am

Correct. But the main issue with those screens is that the code to handle them has hard Windows dependencies instead of trying to set up a system independent context in which to draw. Someone with some platform experience will have to port it to Max and Linux.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: True-Color PNG support for Hexen Startup

Postby ibm5155 » Wed Dec 20, 2017 11:53 am

StrikerMan780 wrote:I'd like to know how feasible it would be to add support for 640x480 true-color PNGs for the Hexen startup type, and *maybe* PNGs of the appropriate sizes for notch/netnotch as well. Reason I ask, is I want to make a nice startup screen for one of my mods, that simply doesn't look presentable with only 16 colors.

It's not that 16 colors are too bad, but the Hexen Startup Palette colors are quite bad for any kind of startup picture
User avatar
ibm5155
Just Spooky
 
Joined: 20 Jul 2011

Re: True-Color PNG support for Hexen Startup

Postby StrikerMan780 » Fri Dec 22, 2017 11:15 pm

ibm5155 wrote:
StrikerMan780 wrote:I'd like to know how feasible it would be to add support for 640x480 true-color PNGs for the Hexen startup type, and *maybe* PNGs of the appropriate sizes for notch/netnotch as well. Reason I ask, is I want to make a nice startup screen for one of my mods, that simply doesn't look presentable with only 16 colors.

It's not that 16 colors are too bad, but the Hexen Startup Palette colors are quite bad for any kind of startup picture

Incorrect. 16 colors aren't enough for an image that only looks good with far more.

Anyhow, shame G/QZDoom doesn't make use of SDL, I'd be able to make a functional replacement fairly easily.
Last edited by Blue Shadow on Sat Dec 23, 2017 12:43 am, edited 1 time in total.
Reason: Enable BBCode
User avatar
StrikerMan780
Struggling but getting by. For now.
 
Joined: 29 Nov 2005
Discord: StrikerTheHedgefox#6299
Github ID: StrikerMan780
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: True-Color PNG support for Hexen Startup

Postby ibm5155 » Sat Dec 23, 2017 6:40 pm

There's no need for SDL for that kind of feature.
And, even not being many colors, those small amount of colors at least can do some good art since the range of the colors is 16bits or something near
Spoiler:
User avatar
ibm5155
Just Spooky
 
Joined: 20 Jul 2011

Re: True-Color PNG support for Hexen Startup

Postby wildweasel » Sat Dec 23, 2017 6:49 pm

ibm5155 wrote:There's no need for SDL for that kind of feature.

Well, considering the startup window code still needs to be ported to all the other OSes...
User avatar
wildweasel
from a different perspective.
Moderator Team Lead
 
Joined: 15 Jul 2003

Re: True-Color PNG support for Hexen Startup

Postby Rachael » Sun Dec 24, 2017 5:07 am

wildweasel wrote:Well, considering the startup window code still needs to be ported to all the other OSes...

This is true, however, with GZDoom, SDL is not in use whatsoever on Mac and Windows.

Windows just uses the default GDI and is programmed using WinForms, and the Mac OS version uses Cocoa.
User avatar
Rachael
^ walking stack of unfinished projects ^
Admin
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle

Re: True-Color PNG support for Hexen Startup

Postby Graf Zahl » Mon May 02, 2022 12:40 am

Since I had been investing some work here over the last few days, let's just state that with the current code not much can be done here.
Until yesterday the Hexen startup was limited to 16 colors - now it is limited to 256 colors but still uses a palette. So getting more out of this a far more substantial rewrite will be needed-
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: True-Color PNG support for Hexen Startup

Postby Enjay » Mon May 02, 2022 2:50 am

It's much easier to get a nice looking image from 256 colours than it is from 16. So thank you for this increase even if full true colour PNGs can't be done at the moment.

Are the rules for the lump formats still basically the same except for the 16 to 256 colour change?
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: True-Color PNG support for Hexen Startup

Postby Graf Zahl » Mon May 02, 2022 3:23 am

I only have changed the internal handling. You cannot use different formats so far. Before new formats can be used it needs to handle true color.
The point here is to make the code that creates the graphical start screens platform independent, and 4 bit surfaces had to go for that - this was a textbook pointless optimization. All it did was restrict the future options.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: True-Color PNG support for Hexen Startup

Postby Enjay » Mon May 02, 2022 3:37 am

OK, so the STARTUP image is still its own custom format, but now supports 256 colours, the palette is contained in that image, and rhe notches are still raw images that use the palette from the STARTUP image?
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Next

Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest