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.cpp option --sv (ShadowVolume) not working


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
hartwigw
Appreciator


Joined: 20 Mar 2009
Posts: 128

PostPosted: Mon Apr 02, 2018 1:45 pm    Post subject:
osgshadow.cpp option --sv (ShadowVolume) not working
Reply with quote

Hi,

I am using OSG 3.5.10 and trying to run the example osgshadow.cpp with the --sv (ShadowVolume) option. Unfortunately, no shadows are shown. All other techniques are showing shadows.
Any ideas? Are there any known shortcomings with ShadowVolume?

I am running the example on

mac OS 11.3
OSG 3.5.10
ShaderPipeline disabled

Thank you!

Cheers,
Hartwig
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11971

PostPosted: Mon Apr 02, 2018 5:43 pm    Post subject:
osgshadow.cpp option --sv (ShadowVolume) not working
Reply with quote

Hi Hartwig,

On 2 April 2018 at 14:45, Hartwig Wiesmann <> wrote:
Quote:
I am using OSG 3.5.10 and trying to run the example osgshadow.cpp with the --sv (ShadowVolume) option. Unfortunately, no shadows are shown. All other techniques are showing shadows.
Any ideas? Are there any known shortcomings with ShadowVolume?

Ouch, I've just reproduced the missing shadows with OSG master and 3.6
branch. At this point I don't have any ideas. I am really not sure
if I've tested this particular combination, must be quite a while if I
did...

I will look into it. In general I wouldn't recommend using
ShadowVolumes as the computation of shadow volumes themselves is not a
trivial task for general purpose geometry, the image based shadow
technique are easier to get to work in more general scenes.

Robert.


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
hartwigw
Appreciator


Joined: 20 Mar 2009
Posts: 128

PostPosted: Mon Apr 02, 2018 9:31 pm    Post subject:
Reply with quote

Hi Robert,

I found out that no indices are generated for the occluder geometry. Though I do not know if this is required.

Furthermore, TriangleCollector (inside OccluderGeometry) defines _tempoaryTriangleVertices but I could not find anywhere a statement that actually assigns anything to the list.

Thank you!

Cheers,
Hartwig
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11971

PostPosted: Tue Apr 03, 2018 6:19 am    Post subject:
osgshadow.cpp option --sv (ShadowVolume) not working
Reply with quote

Hi Hartwg,

On 2 April 2018 at 22:31, Hartwig Wiesmann <> wrote:
Quote:
I found out that no indices are generated for the occluder geometry. Though I do not know if this is required.

Furthermore, TriangleCollector (inside OccluderGeometry) defines _tempoaryTriangleVertices but I could not find anywhere a statement that actually assigns anything to the list.

Thanks for looking into this regression.

Yesterday I checked the 3.4 branch and it works a bit more than
3.6/master so I compared changes the ShadowVolume.cpp and header but
found nothing likely to cause this regression. Next stop to look into
change to OccluderGeometry.

The main changes to ShadowVolume will likely have been part of the
CoverityScan issue fixing sessions, perhaps a "fix" actually broke
things.

Robert


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11971

PostPosted: Tue Apr 03, 2018 11:10 am    Post subject:
osgshadow.cpp option --sv (ShadowVolume) not working
Reply with quote

Hi Hartwig et, al.

On 3 April 2018 at 07:14, Robert Osfield <> wrote:
Quote:
The main changes to ShadowVolume will likely have been part of the
CoverityScan issue fixing sessions, perhaps a "fix" actually broke
things.

I dug pretty deep into the ShadowVolume code, and even tried almost
identical code between 3.4 and 3.6 and could get the later to work. I
didn't get to the bottom of the regression but started to look like it
might be related to the custom way that ShadwVolume was passing
geometry data to the GPU, this was being done a way that isn't
compatible with GLES or GL3 core profile so would require a rewrite to
do it properly.

However, osgShadow::ShadowVolume never worked well anyway, and never
worked well enough for general usage so I have decided rather than
spend time investigating and patch a feature that won't ever likely
work well it's better to just remove this feature from the OSG master
and 3.6 branch. I have now checked in the removal of
osgShadow::ShadowVolume from the master and the 3.6 branch.

Robert.


------------------
Post generated by Mail2Forum
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 ViewerBase::setThreadingModel() not w... guyv Build system [build] 5 Thu Jul 12, 2018 3:22 pm View latest post
No new posts OSG vec3array size() function working... ak477 General 0 Fri Jul 06, 2018 5:57 pm View latest post
No new posts Viewer not working bakalarvae Build system [build] 4 Sun May 27, 2018 8:20 pm View latest post
No new posts Shader Program stops working after Ch... ceranco General 0 Mon May 21, 2018 3:09 pm View latest post
No new posts EXTERNAL: Re: EXTERNAL: Re: FBO setup... Rowley, Marlin R General 0 Thu May 10, 2018 12:56 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