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 

Draping polygons on existing objects using stencil shadow volumes


 
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: Thu Apr 05, 2018 10:35 pm    Post subject:
Draping polygons on existing objects using stencil shadow volumes
Reply with quote

Hi,

I would like to implement draping of objects using stencil shadow volumes. To do so I have to do the following steps:

1) Draw the scene's objects
2) Start multi-pass rendering for the stencil shadow volumes
2a) Clear the stencil buffer
2b) Set the attributes for the first pass and draw the volume mask
2c) Set the attributes for the second pass and draw the to be draped polygons

As also other parts of the scene might use the stencil buffer I cannot just clear the stencil buffer.
Any ideas how to solve this issue? Or do I have to move all this stuff in the last run render bin?

I had a look at ShadowVolume (that should be similar) but I have no clue what kind of manipulations with respect to the render stage are done and why they are done (in "cull") because I am not so familiar with render bins and render stages.

Thank you!

Cheers,
Hartwig
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 Shadow in GraphicsWindowEmbedded sirian_ye General 6 Wed Aug 15, 2018 6:55 am View latest post
No new posts OSG-3.6 breaking changes to GLES2 buf... kornerr General 3 Fri Mar 23, 2018 8:48 am View latest post
No new posts wide aspect ratio causing problems wi... exedor General 1 Tue Dec 26, 2017 10:18 pm View latest post
No new posts [ShadowScene traversal] program in S... mp3butcher General 1 Fri Dec 08, 2017 6:07 pm View latest post
No new posts export to wavefront (obj) of line obj... MNicke General 0 Tue Dec 05, 2017 4:18 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