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 

osgShadow: shadow is seen on the opposite side of the model too


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
PJPetitprez (Pierre-Jean Petitprez)
Newbie


Joined: 03 Aug 2015
Posts: 17

PostPosted: Mon Nov 16, 2015 1:50 pm    Post subject:
osgShadow: shadow is seen on the opposite side of the model too
Reply with quote

Hi,

I am using osgShadow for adding soft shadows to my scene. My scene has a big cube that receives shadows and some small objects above it that cast shadows. My light is placed above all the objects.
The big cube receives correctly the shadows on its top face (perfectly as it should be), but also on its bottom face, as if the cube's top face was transparent. But in the real world it would never happen, as the top face should stop the light rays to reach the bottom face...

Please see the attached file to understand what I mean.

This problem also appears in the osgshadow example (I have added a box in the scene with the cessnas and I see the same thing) and with every shadow technique, so I guess it is in osgShadow's implementation.

How can I do to avoid the shadows to be seen on the opposite faces of the receivers ?
Thank you.

Cheers,
Pierre-Jean
Back to top
View user's profile Send private message
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 model matrix d_a_heitbrink General 0 Tue Oct 24, 2017 3:33 pm View latest post
No new posts BVH and model axis centering: a model... Paradox Plugins [osgPlugins] 0 Mon Oct 16, 2017 4:27 pm View latest post
No new posts Best Model For Augmented Reality? Bobykhani General [forum] 3 Sun Oct 15, 2017 6:49 am View latest post
No new posts Shadow Shenanigans (Implementing shad... AnyOldName3 General 9 Wed Sep 20, 2017 4:07 pm View latest post
No new posts Osg model assembly jaisingla General 0 Mon Sep 18, 2017 3:36 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