PBR and shadowmaps

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

Moderator: GZDoom Developers

Forum rules
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!

If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.

We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
Post Reply
User avatar
Indecom
Posts: 271
Joined: Mon Jul 13, 2009 3:33 pm

PBR and shadowmaps

Post by Indecom »

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
phantombeta
Posts: 2089
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

Re: PBR and shadowmaps

Post by phantombeta »

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
Indecom
Posts: 271
Joined: Mon Jul 13, 2009 3:33 pm

Re: PBR and shadowmaps

Post by Indecom »

Is this because shadowmaps are only 2D?
Gez
 
 
Posts: 17835
Joined: Fri Jul 06, 2007 3:22 pm

Re: PBR and shadowmaps

Post by Gez »

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.
User avatar
Indecom
Posts: 271
Joined: Mon Jul 13, 2009 3:33 pm

Re: PBR and shadowmaps

Post by Indecom »

Thanks for the replies folks! This gives me plenty of stuff to consider.
Post Reply

Return to “Technical Issues”