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 

Multi layer effect rendering problem on depthbuffer


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


Joined: 19 Apr 2017
Posts: 1

PostPosted: Wed Jul 19, 2017 9:44 am    Post subject:
Multi layer effect rendering problem on depthbuffer
Reply with quote

hi all,

I have implemented the intersection effect between a block mesh and a geometry (kind of like capping effect)by multi-pass render as used in other osgFx::effect.

Now I have lots of blocks with different depth, I add each block and the same geometry into an effect node, as shown below:

rootnode
--effect node1
--block mesh1 + geomBox
--effect node2
--blcok mesh2 + geomBox
...

--effct node18
--block mesh18 + geomBox


all effect nodes could be individual rendered in right way, but the depth of different nodes are totally messed.
Regardless of their actual depth values, the subsequent nodes always overwrite the previous nodes.

I think it is because I forced to write the block depth into the depth buffer during the effect process.

So I want to know how can I render each effect into different depth buffer but combine those depth buffer at rootnode to decide the color buffer?
...

Thank you!

Cheers,
neman
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 Problem to load images robertosfield General 10 Mon Aug 07, 2017 10:36 pm View latest post
No new posts problem with osgearth_pick.exe 徐志敏 General 0 Thu Jul 13, 2017 6:15 pm View latest post
No new posts A problem of depth on osgText::Text i... gyw General 4 Mon Jul 10, 2017 7:29 am View latest post
No new posts osg::Group Child Problem Latha Rani General 4 Tue Jun 13, 2017 1:16 pm View latest post
No new posts Diaplay problem of OSG 3.4.0 on WIN10 sangjingrui General 3 Sun Jun 11, 2017 8:02 am 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