[OGL] FlatSky rendering support

Moderator: GZDoom Developers

User avatar
Zeberpal
Posts: 191
Joined: Sun Apr 28, 2013 2:06 am
Location: RU

[OGL] FlatSky rendering support

Post by Zeberpal »

I've made a supporting wad[zdoom-only] to this suggestion of why it could be a good idea. It's just a very small variation of how flatskies could be usefull.

Flatskies along with Gzdoom-only feautures could provide some interesting graphic results, and may cause in making nonstandard beautiful ideas on doom engine.

At this moment Gzdoom is not able to "flat" skies. It stretch them. Stretched skies are extremely unreliable when it comes to graphic accuracy.

Just using many skies, no matter if it is a "sky texture" or "skybox" method were used, it cause glitch results in gzdoom, which won't happen in software mode(flat).

How to use:
To save compatibility, it could be defined which sky(texture) will be flatrendered in GLDEFS.
User avatar
InsanityBringer
Posts: 3392
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: [OGL] FlatSky rendering support

Post by InsanityBringer »

Define "flat sky"

If you mean skies rendered the same way as software, it's technically possible, but you run into trouble with the fact you can look all the way up and down
User avatar
ZZYZX
 
 
Posts: 1384
Joined: Sun Oct 14, 2012 1:43 am
Location: Ukraine
Contact:

Re: [OGL] FlatSky rendering support

Post by ZZYZX »

It can just go into gradient and solid color at some point (over/under software caps), for example.

Also while I think this could be replicated with shaders in GZDoom instead of using gross hacks, the feature itself would be nice to have to complete the software emulation along with software lightmode.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [OGL] FlatSky rendering support

Post by Graf Zahl »

ZZYZX wrote:It can just go into gradient and solid color at some point (over/under software caps), for example.
No, it can't. At high angles the projection would completely fall apart and look weird. The software way of projecting a sky does not work well with real view pitching, it works to a reasonable degree with how the software renderer does it.
User avatar
ZZYZX
 
 
Posts: 1384
Joined: Sun Oct 14, 2012 1:43 am
Location: Ukraine
Contact:

Re: [OGL] FlatSky rendering support

Post by ZZYZX »

Graf Zahl wrote:No, it can't. At high angles the projection would completely fall apart and look weird. The software way of projecting a sky does not work well with real view pitching, it works to a reasonable degree with how the software renderer does it.
Looking at how this map does it, I believe that at least for it the sky should be projected like sprites, i.e. not exactly like software (always flat), but as a flat billboarded vertical polygon. Not sure how that would look like ingame.

edit: zzz it's a [No] already without any discussion. What's that even.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [OGL] FlatSky rendering support

Post by Graf Zahl »

I consider this mostly pointless. It won't look good, only has use for edge cases. I have more important things to do.
AdmiralAjax
Posts: 89
Joined: Sat Nov 27, 2010 6:47 pm

Re: [OGL] FlatSky rendering support

Post by AdmiralAjax »

Graf Zahl wrote:I consider this mostly pointless. It won't look good, only has use for edge cases. I have more important things to do.
Only for edge cases? You mean like, the edge case of every map in Doom ever???? But yeah, I'm sure rewriting [NO]Doom five more times is so important.

You do know that when emulator developers say that the emulators they make are only for archival purposes, they're only saying that to save their asses, right?
User avatar
Caligari87
Admin
Posts: 6227
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: [OGL] FlatSky rendering support

Post by Caligari87 »

G/ZDoom isn't an emulator. It's an advanced source port focusing on advanced features, and in some cases those advanced features (like LOOKING UP AND DOWN) trump accuracy. If you want accuracy, play on Chocolate Doom.

8-)
User avatar
Kinsie
Posts: 7402
Joined: Fri Oct 22, 2004 9:22 am
Graphics Processor: nVidia with Vulkan support
Location: MAP33
Contact:

Re: [OGL] FlatSky rendering support

Post by Kinsie »

Note Self: Use this sky trick to make a map that's deliberately, intentionally broken in GL, point at this thread when people complain.
User avatar
Zeberpal
Posts: 191
Joined: Sun Apr 28, 2013 2:06 am
Location: RU

Re: [OGL] FlatSky rendering support

Post by Zeberpal »

Kinsie wrote:Note Self: Use this sky trick to make a map that's deliberately, intentionally broken in GL, point at this thread when people complain.
That's not a right focus. It was deliberately and intentionally made to show which (exclusive) feature zdoom engine has and other game engines don't.
Just tried to point out gzdoom could be a tool for something-something 3d avangarde, as it is trendy. It could get an attention to engine. Seriously.
Graf Zahl wrote:I consider this mostly pointless. It won't look good, only has use for edge cases. I have more important things to do
I'm defendless here. I'm the only edge case so far :< Can only hope this idea will be a continuation for other modders to expand.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [OGL] FlatSky rendering support

Post by Graf Zahl »

How did you even manage to have no sky displayed whatsoever in GZDoom? Normally the regular sky should be used, albeit wrapped around a dome-like shape.
User avatar
Zeberpal
Posts: 191
Joined: Sun Apr 28, 2013 2:06 am
Location: RU

Re: [OGL] FlatSky rendering support

Post by Zeberpal »

Graf Zahl wrote:How did you even manage to have no sky displayed whatsoever in GZDoom? Normally the regular sky should be used, albeit wrapped around a dome-like shape.
Sorry, I don't really understand. If you mean, why that sky won't render properly in Gzdoom...In Gzdoom case, it happens when two or more sectors with different skies are close or adjacent to each other.
To reproduce this try to run attached file in software and OGL modes.
That's the thing. I could probably simulate flat skies with acs and camera hacks(which would not worth the effort, though) , but it would not render correctly after all anyway. It's glitchy, sometimes sky dissapear or won't appear at all. It really looks like a bug, to be honest.
Image
User avatar
JimpArgon
Posts: 470
Joined: Mon Jul 04, 2016 9:03 pm
Location: Florida

Re: [OGL] FlatSky rendering support

Post by JimpArgon »

Zeb. I re-downloaded the file because I seen the original post had been edited today. Went to drag and drop (as I did with your first release.) and nothing happens. It just loads up stock doom 2....

Is there something wrong with the file?
User avatar
ibm5155
Posts: 1268
Joined: Wed Jul 20, 2011 4:24 pm
Contact:

Re: [OGL] FlatSky rendering support

Post by ibm5155 »

what could be done is a 3D model around the skybox viewpoint, and limit the up/down view angle so the player will not see the missing part on the botton/top.
Or even a normal sector that has the format of an circle and the câmera on the mid of it.
User avatar
Zeberpal
Posts: 191
Joined: Sun Apr 28, 2013 2:06 am
Location: RU

Re: [OGL] FlatSky rendering support

Post by Zeberpal »

This is really just a half-measure, which would only work in very small amout of certain cases, or would not work at all. Besides as I explained earlier there is a problem with GZD not having a good time rendering two or more different skies which are close to each other.
When I was making this thread, I thought that sewing flatskyrender feature into GZDoppengl would also fix this bug i just point out.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”