Jump to content
  • Advertisement
Sign in to follow this  
Paul Griffiths

OpenGL cascaded shadow maps multiple lights example/demo?

This topic is 713 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm looking for cascaded shadow maps with multiple lights example/demo?

 

Ive searched Google but no luck with opengl 3.3

 

Would be very much appreciated.

 

Thank you.

 

Paul.

 

 

Share this post


Link to post
Share on other sites
Advertisement

I can use opengl 4.0.

I have searched google, yahoo and GitHub for an example, I followed just about every link for opengl shadows but found nothing for multi lights.
Seems no one is willing to share there efforts :(

Share this post


Link to post
Share on other sites

Found demo here: https://github.com/SaschaWillems/Vulkan

 

Im going vulkan! :{

Vulkan is.cool but I wouldn't move on from OpenGL unless you want to squeeze everything out of your multithread renderer. It's extremely fiddly to get on with, I spent the last month having fun with Vulkan but GL feels like a pleasure to work with when you want results.

 

As for shadows of the cascaded variety, be prepared to spend years tuning your efforts! I found a bookmark which has what you're looking for, (though it is WebGL) which was multiple lights, and cascades. Not sure why you want multi-lights *and* cascades (sun/moon??) but anyway.here you go https://blogs.aerys.in/jeanmarc-leroux/2015/01/21/exponential-cascaded-shadow-mapping-with-webgl/

Share this post


Link to post
Share on other sites

 

Found demo here: https://github.com/SaschaWillems/Vulkan

 

Im going vulkan! :{

Vulkan is.cool but I wouldn't move on from OpenGL unless you want to squeeze everything out of your multithread renderer. It's extremely fiddly to get on with, I spent the last month having fun with Vulkan but GL feels like a pleasure to work with when you want results.

 

As for shadows of the cascaded variety, be prepared to spend years tuning your efforts! I found a bookmark which has what you're looking for, (though it is WebGL) which was multiple lights, and cascades. Not sure why you want multi-lights *and* cascades (sun/moon??) but anyway.here you go https://blogs.aerys.in/jeanmarc-leroux/2015/01/21/exponential-cascaded-shadow-mapping-with-webgl/

 

 

it does not have to be cascades but has to no newer than opengl 4.0.

Share this post


Link to post
Share on other sites
If you dont want cascades at all, your question is only about multiple lights and Shadow maps? If i got that right, the answer is simple: Render a Shadow map for each light. You can User array textures or a dedicated Texture per light. In your lighting step, use the corresponding Shadow map when iterating over your lights. Where exactly lies your Problem?

Share this post


Link to post
Share on other sites

I want multiple shadows for my portal project. Your probably puzzled how I done it? It's a clever new Idea I invented. Works great.

I'm hoping to create a full application and game engine, worlds within worlds where you can fully enter and characters can go in and out of.

Also a full 3d windows and GUI system.

 

screen.jpg

Edited by paulgriffiths

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!