Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8969735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:38:06+00:00 2026-06-15T17:38:06+00:00

I was implementing omnidirectional shadow mapping in a deferred renderer but am having trouble

  • 0

I was implementing omnidirectional shadow mapping in a deferred renderer but am having trouble solving this problem:

Here is a picture: shadow problem example

This is what happened when I just position six spot lights pointing along each axis in positive and negative directions. I know that the problem is caused by the spot light calculations keeping the lighting in the cone for the lights and that’s why it is circular.

My first thought was to just disable the cone calculations but obviously because the lights are blended together if you look through one light to another there will be overlap. If I change the geometry being rendered for the light from a cone shape to a square based pyramid (which I think I will need to do anyway?) I would then be able to use the frustum of the light (which I already have) instead of a cone calculation to test if the current pixel falls inside the frustum, right?

If so does anyone know what the best way to do this in a pixel shader would be? I thought of just checking if the point lies in front of each plane of the frustum but this seems expensive to do in a pixel shader.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:38:07+00:00Added an answer on June 15, 2026 at 5:38 pm

    You have 6 frustums, but note that

    1. you don’t need to check the back or front faces, just whether it is in the infinite pyramid
    2. each face is shared by two neighbouring frustums
    3. each face is mirrored by the frustum that faces backwards

    This means that you only have to check the pixel against 6 planes IN TOTAL to see which shadow map you need to access.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Busy implementing Twitter Bootstrap with the responsive CSS file included, but this causes issues
implementing publishActivity in PHP using the REST API using this code: $activity = array(
Implementing Document-View pattern I faced the problem: standard generic collections and dictionaries ( List<T>
When implementing move constructors and move assignment operators, one often writes code like this:
Implementing/handling idempotency in c# with Jolivers EventStore. Does this mean just taking care of
While implementing the code from this question on my project I realized there's 3
While implementing Multithreaded Cache, i found this article on MSDN. http://msdn.microsoft.com/en-us/library/system.threading.readerwriterlockslim.aspx This is for
Implementing centering feature for image downloads - Pop Up Window I posted here asking
I`m implementing a custom filesystem on Ubuntu using Fuse, but I need to trap
Am implementing Sieve of Eratosthenes in CUDA and am having a very weird output.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.