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 

Multisampled FBO camera with shared depth with other camera


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


Joined: 06 Feb 2014
Posts: 6

PostPosted: Fri Mar 17, 2017 3:19 pm    Post subject:
Multisampled FBO camera with shared depth with other camera
Reply with quote

Hi,

I have strange problems with multisampled FBO Camera and I am not able to solve it. Without multisampling all works fine but when I setup multisampled FBO the color buffers in our transparent camera are void.

Our setup is quite complex due to order independent transparency:

1. Viewer has masterCamera (normal camera, no FBO) (Viewer->SetCamera(master)) that is setup with cullmask to render only solid geometry. Depth buffer attachement is created (masterCamera->attach(osg::Camera::DEPTH_BUFFER...) and shared across all cameras for correct depth test.

2. Viewer add transparent FBO camera as a slave (viewer->addSlave(transparencyCamera)). This camera has cullmask to render only transparent geometry. It has two colors buffers and one depth buffer attached.

3. Viewer add composition camera (camera with only quad child) that compose solid (current frame buffer) and transparent FBO textures together.

I have tested all possible combinations with multisampled attachments but all failed. Camera order is correct (all works superfine without multisampling)

Do you have any idea or hint where could be the problem?

...

Thank you!

Cheers,
Jan
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 Is it possible to temporarily redirec... wernerM General 2 Thu Mar 09, 2017 2:13 pm View latest post
No new posts About separate rendering of a slave c... wernerM General 0 Tue Mar 07, 2017 3:14 pm View latest post
No new posts Slow down with shared nodes Andre Normann General 18 Tue Mar 07, 2017 8:24 am View latest post
No new posts Camera resize vs setViewport ravidavi General 3 Fri Feb 24, 2017 3:13 am View latest post
No new posts How to add a camera Nico Kruithof General 5 Tue Feb 21, 2017 8:21 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