OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Shadow frustum culling


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Gedalia Pasternak
Guest





PostPosted: Mon Oct 29, 2018 6:44 pm    Post subject:
Shadow frustum culling
Reply with quote

Hi List,I've noticed that when using a camera for shadow casting it can often cull out objects that are just outside of the frustum but cast shadows into the scene. Is there any way to decouple the camera frustum culling calculation from the rendering one, even just increasing the culling frustum size by 10-15% might help.
Thanks
-Gedalia 
-- 
DI-Guy Engineering Lead, VT MÄK
150 Cambridge Park Drive, 3rd Floor, Cambridge, MA 02140

------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12145

PostPosted: Mon Oct 29, 2018 8:03 pm    Post subject:
Shadow frustum culling
Reply with quote

Hi Gadalia,

The OSG doesn't culling per Camera with each camera's own view frustum used for culling, this means the shadow camera should only cull things that are in it's frustum.  If it's culling objects that you think should be in the frustum then perhaps it's just set up with the wrong projection matrix settings.


Robert


On Mon, 29 Oct 2018 at 18:44, Gedalia Pasternak < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:


Hi List,I've noticed that when using a camera for shadow casting it can often cull out objects that are just outside of the frustum but cast shadows into the scene. Is there any way to decouple the camera frustum culling calculation from the rendering one, even just increasing the culling frustum size by 10-15% might help.
Thanks
-Gedalia 
-- 
DI-Guy Engineering Lead, VT MÄK
150 Cambridge Park Drive, 3rd Floor, Cambridge, MA 02140




_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Terry Welsh
Guest





PostPosted: Mon Oct 29, 2018 9:06 pm    Post subject:
Shadow frustum culling
Reply with quote

Gedalia,
If I understand the original question correctly, you're not seeing
shadows that are cast by off-screen objects. I had that exact problem
back around 2006 and Robert solved it with the introduction of the
View class. Sorry, I don't remember the details beyond that and can't
find our old discussion archived anywhere.
- Terry

Quote:
Hi Gadalia,

The OSG doesn't culling per Camera with each camera's own view frustum used
for culling, this means the shadow camera should only cull things that are
in it's frustum. If it's culling objects that you think should be in the
frustum then perhaps it's just set up with the wrong projection matrix
settings.

Robert

On Mon, 29 Oct 2018 at 18:44, Gedalia Pasternak <> wrote:

Quote:

Hi List,
I've noticed that when using a camera for shadow casting it can often cull
out objects that are just outside of the frustum but cast shadows into the
scene. Is there any way to decouple the camera frustum culling calculation
from the rendering one, even just increasing the culling frustum size by
10-15% might help.
Thanks
-Gedalia


------------------
Post generated by Mail2Forum
Back to top
Gedalia Pasternak
Guest





PostPosted: Tue Oct 30, 2018 3:47 am    Post subject:
Shadow frustum culling
Reply with quote

Thanks Terry, yes that’s my exact problem, I have a cascaded shadow map system for a directional light, where objects just outside the shadow map frustra don’t alway cast into the shadow map. I’ll take a look at the view class.

Gedalia 

On Mon, Oct 29, 2018 at 5:06 PM Terry Welsh < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Gedalia,
If I understand the original question correctly, you're not seeing
shadows that are cast by off-screen objects. I had that exact problem
back around 2006 and Robert solved it with the introduction of the
View class. Sorry, I don't remember the details beyond that and can't
find our old discussion archived anywhere.
- Terry

Quote:
Hi Gadalia,

The OSG doesn't culling per Camera with each camera's own view frustum used
for culling, this means the shadow camera should only cull things that are
in it's frustum.  If it's culling objects that you think should be in the
frustum then perhaps it's just set up with the wrong projection matrix
settings.

Robert

On Mon, 29 Oct 2018 at 18:44, Gedalia Pasternak < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:

Hi List,
I've noticed that when using a camera for shadow casting it can often cull
out objects that are just outside of the frustum but cast shadows into the
scene. Is there any way to decouple the camera frustum culling calculation
from the rendering one, even just increasing the culling frustum size by
10-15% might help.
Thanks
-Gedalia
_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


--
DI-Guy Engineering Lead, VT MÄK
150 Cambridge Park Drive, 3rd Floor, Cambridge, MA 02140

------------------
Post generated by Mail2Forum
Back to top
Trajce Nikolov NICK
Guest





PostPosted: Tue Oct 30, 2018 7:49 am    Post subject:
Shadow frustum culling
Reply with quote

Hi Gedalia,


is this implementation of the cascaded shadows map something public or you can share , or it is proprietary



On Tue, Oct 30, 2018 at 4:47 AM Gedalia Pasternak < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Thanks Terry, yes that’s my exact problem, I have a cascaded shadow map system for a directional light, where objects just outside the shadow map frustra don’t alway cast into the shadow map. I’ll take a look at the view class.

Gedalia 

On Mon, Oct 29, 2018 at 5:06 PM Terry Welsh < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Gedalia,
If I understand the original question correctly, you're not seeing
shadows that are cast by off-screen objects. I had that exact problem
back around 2006 and Robert solved it with the introduction of the
View class. Sorry, I don't remember the details beyond that and can't
find our old discussion archived anywhere.
- Terry

Quote:
Hi Gadalia,

The OSG doesn't culling per Camera with each camera's own view frustum used
for culling, this means the shadow camera should only cull things that are
in it's frustum.  If it's culling objects that you think should be in the
frustum then perhaps it's just set up with the wrong projection matrix
settings.

Robert

On Mon, 29 Oct 2018 at 18:44, Gedalia Pasternak < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:

Hi List,
I've noticed that when using a camera for shadow casting it can often cull
out objects that are just outside of the frustum but cast shadows into the
scene. Is there any way to decouple the camera frustum culling calculation
from the rendering one, even just increasing the culling frustum size by
10-15% might help.
Thanks
-Gedalia
_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


--
DI-Guy Engineering Lead, VT MÄK
150 Cambridge Park Drive, 3rd Floor, Cambridge, MA 02140



_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


--
trajce nikolov nick

------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Shadow in GraphicsWindowEmbedded sirian_ye General 6 Wed Aug 15, 2018 6:55 am View latest post
No new posts Culling and instanced drawing wernerM General 7 Fri Jul 13, 2018 4:45 pm View latest post
No new posts Camera serializer and culling mp3butcher General 1 Sat Apr 21, 2018 12:16 pm View latest post
No new posts Draping polygons on existing objects ... hartwigw General 0 Thu Apr 05, 2018 10:35 pm View latest post
No new posts AutoTransform, ROTATE_TO_SCREEN and s... hartwigw General 7 Mon Mar 26, 2018 9:28 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP