[Added] Some way for sector skies to avoid being affected by SSAO

Moderator: GZDoom Developers

Re: Some way for sector skies to avoid being affected by SSA

Postby Marisa Kirisame » Thu Dec 26, 2019 2:23 pm

oh... oops.
User avatar
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Some way for sector skies to avoid being affected by SSA

Postby Major Cooke » Thu Aug 27, 2020 11:15 am

Assuming you plan on doing the rework soon, I'll leave this thread open.
User avatar
Major Cooke
QZDoom Maintenance Team
 
Joined: 28 Jan 2007

Re: Some way for sector skies to avoid being affected by SSA

Postby Marisa Kirisame » Fri Aug 28, 2020 12:40 am

Wouldn't have my hopes up for that "soon" part though.
User avatar
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Some way for sector skies to avoid being affected by SSA

Postby Tormentor667 » Thu Dec 24, 2020 5:03 am

Sorry for bumping this, but has it been already added as a feature somehow? We still have the problem in Blade of Agony that the AO is applied skybox sectors. So I wonder, how this can be solved by now.
https://user-images.githubusercontent.c ... 7a28cc.png
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: Some way for sector skies to avoid being affected by SSA

Postby Rachael » Thu Dec 24, 2020 5:09 am

The only way I can think of is to force the sky cube to project a completely flat normal somehow.
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
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: Some way for sector skies to avoid being affected by SSA

Postby Tormentor667 » Thu Dec 24, 2020 5:55 am

You mean mod-wise using normal maps in materials? Does this even affect AO?
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: Some way for sector skies to avoid being affected by SSA

Postby Rachael » Thu Dec 24, 2020 7:23 am

No, I mean programmatically. TBQH I have no idea how to do that.
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
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: Some way for sector skies to avoid being affected by SSA

Postby Marisa Kirisame » Thu Dec 24, 2020 5:10 pm

This can be solved by using GL skyboxes.

And if you want to have details in the sky, using a sector skybox that itself has a gl skybox.

I could cite as an example the setup I had in the abort_m titlemap.
Image
The main view is a little city scape, which has a skybox picker set to match a sector skybox, and then, the sector skybox itself references the normal sky. The end result, is this piece of art:
Image
The giant ouch face is in the sector sky, so it looks like it's huge and far away.
User avatar
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Some way for sector skies to avoid being affected by SSA

Postby Enjay » Thu Dec 24, 2020 6:24 pm

Yup, been using that technique myself for years to combine texture skies with geometry skies - even before SSAO was an engine feature: full six-sided sky defined in GLDefs and used as the sky in a map-constructed skybox, then the map-constructed box used elsewhere in the map.

And, of course, in this case it might actually be desirable to have SSAO on the geometry in the skybox, but not on the sky texture, so you get the best of both worlds (kind of literally).

Examples:
Everything that you can see through the window is not really there - it's a skybox on the other side of the map entirely - GLDEFS sky in the background, the rest is a geometry skybox.


This is one that I amused myself making one afternoon this summer. Everything above the foreground walls is another texture and geometry combination skybox.
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: Some way for sector skies to avoid being affected by SSA

Postby Tormentor667 » Fri Dec 25, 2020 3:37 am

I simply don’t get it why it is so difficult to add an exception to the shader responsible for the ambient occlusion to not apply for the sector based skybox - maybe a MAPINFO flag that exactly does that. The reason is: It would take ages in Blade of Agony to set up the skybox definitions and add appropriate changes to all of the 30 maps in the mod. :(

By the way Enjay, awesome shots, when can I get my hands on them? :)
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: Some way for sector skies to avoid being affected by SSA

Postby Rachael » Fri Dec 25, 2020 5:56 am

Tormentor667 wrote:I simply don’t get it why it is so difficult to add an exception to the shader responsible for the ambient occlusion to not apply for the sector based skybox - maybe a MAPINFO flag that exactly does that. The reason is: It would take ages in Blade of Agony to set up the skybox definitions and add appropriate changes to all of the 30 maps in the mod. :(

I mean if it's so easy, you're welcome to submit a pull request and show us all how dumb we are. :)
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
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: Some way for sector skies to avoid being affected by SSA

Postby Enjay » Fri Dec 25, 2020 8:59 am

Tormentor667 wrote:By the way Enjay, awesome shots, when can I get my hands on them? :)

To be fair, you've probably already played the maps. They are not mine, I was just amusing myself adding stuff to existing maps to help me learn GZDB (later UDB, of course). The skyboxes and some of the texturing is new, but the playable parts of the maps are still the same as released by their respective authors.

The second is Kinsie's Null Face to Face.viewtopic.php?f=19&t=59100 (One of my favourite mods of recent years - shame Kinsie had to cancel it.)

The first one is... a really old classic map set on a space station. Unfortunately, I can't find the original file to get the details right now, but I'll try to track it down.
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: Some way for sector skies to avoid being affected by SSA

Postby Tormentor667 » Fri Dec 25, 2020 1:03 pm

Rachael wrote:I mean if it's so easy, you're welcome to submit a pull request and show us all how dumb we are. :)

Well, I don’t want to sound like I don’t appreciate what coders are capable of (and what I am not :)). As far as I understood, the engine checks how many portals are supposed to be affected by the ambient occlusion (there is an option for that in GZDoom). So all I can imagine is telling the engine to “skip” the skybox portal (according if there is a skybox viewpoint) in case a certain flag has been set for the map in the MAPINFO lump for the specific map. No idea if that is doable though.

@Enjay, I thought it’s another content from your Aspects teasers :) I wonder: Are you currently working on something or getting ready for a release of your work? I really always appreciate your mods and I am eagerly waiting for a new map set from you :)
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: Some way for sector skies to avoid being affected by SSA

Postby Enjay » Fri Dec 25, 2020 1:42 pm

Tormentor667 wrote:@Enjay, I thought it’s another content from your Aspects teasers :) I wonder: Are you currently working on something or getting ready for a release of your work? I really always appreciate your mods and I am eagerly waiting for a new map set from you :)

Quick reply because I don't want to take this thread off topic:

I'm not working on anything simply because my actual work is really hectic at the moment (well, not today obviously). While the Scottish government's policy is still the default that everyone should be working from home where possible and socially distancing, their policy is also that schools should be open and all pupils should be attending. However, because of local lockdowns, minor Covid outbreaks and individuals who are shielding or self-isolating, delivering courses in their entirety (or as close as possible) is particularly difficult this year. Not only do we have to do that, and have the daily hassle of nagging kids about mask wearing, hand washing and, of course, having the stress of being in close contact with several hundred people per week when most people are not, we also have to modify how and what we are doing at the drop of a hat and we will also have the responsibility for submitting robust exam estimates to our qualifications authority too because the exams have been cancelled for 2021 and it's all down to us now.

So, when I can, I amuse myself by "doodling" in UDB, but that's all it is really: just doodling in the editor when I get a chance. There is nothing complete, cohesive or releasable: just my own UDB-sketch book. There is certainly nothing going on with Aspects: that's long gone and the resource WAD really just serves as a blank slate of extended textures etc for me to doodle with.

But thank you for the compliment. :)
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: Some way for sector skies to avoid being affected by SSA

Postby Tormentor667 » Fri Dec 25, 2020 3:20 pm

Enjay wrote:I'm not working on anything simply because my actual work is really hectic at the moment (well, not today obviously).

Thanks for the detailed information, I already thought that your job will be challening lately. Though, I really hope for another Enjay release in the (near) future, I really do! [/offtopic]
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

PreviousNext

Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest