PBR and shadowmaps

Need help running G/Q/ZDoom/ECWolf/Zandronum/3DGE? Did your computer break? Ask here.

Moderator: GZDoom Developers

PBR and shadowmaps

Postby Indecom » Sat Jul 07, 2018 4:14 am

I'm not sure if I'm doing something wrong or if the support isn't there, but I've enabled shadowmaps for dynamic lights in the options menu, and these dynamic lights arent casting any shadows as you can see.

Are shadowmaps not compatible with GZD's new material system? Are there some command line parameters I can putz with?

User avatar
Indecom
Check out QuakenDoom 2, my Q2 TC for Doom 2
 
Joined: 13 Jul 2009

Re: PBR and shadowmaps

Postby phantombeta » Sat Jul 07, 2018 4:25 am

That looks like either a lower sector or a 3D model. AFAIK shadowmaps only work for solid geometry. (as in, one-sided lines)
User avatar
phantombeta
In the meadow of sinful thoughts, every flower's a perfect one
 
Joined: 02 May 2013
Location: The United Soviet Socialist Dictatorship of Hueland
Discord: phantombeta#2461
Twitch ID: phantombeta_
Github ID: Doom2fan
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

Re: PBR and shadowmaps

Postby Indecom » Sat Jul 07, 2018 4:41 am

Is this because shadowmaps are only 2D?
User avatar
Indecom
Check out QuakenDoom 2, my Q2 TC for Doom 2
 
Joined: 13 Jul 2009

Re: PBR and shadowmaps

Postby Gez » Sat Jul 07, 2018 5:01 am

Yes. It's the only way to make them fast enough.

You'll notice that in modern games with advanced shadowcasting, they cheat by having only a few light sources cast shadows. Typically it'll be just the sun, the player's torchlight (if any) and then perhaps the one or two light sources nearest to the player. Shadowcasting is expensive even on recent computers and even with engines optimized from the start for this kind of things.
Gez
 
 
 
Joined: 06 Jul 2007

Re: PBR and shadowmaps

Postby Indecom » Sat Jul 07, 2018 5:03 am

Thanks for the replies folks! This gives me plenty of stuff to consider.
User avatar
Indecom
Check out QuakenDoom 2, my Q2 TC for Doom 2
 
Joined: 13 Jul 2009


Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 1 guest