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 

Multiple pointlights deferred rendering in OSG, how to setup scenegraph?


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


Joined: 01 Sep 2017
Posts: 46

PostPosted: Fri Sep 08, 2017 2:39 pm    Post subject:
Multiple pointlights deferred rendering in OSG, how to setup scenegraph?
Reply with quote

Hi,

I'm slowly porting my pure opengl deferred rendering engine to make it OSG based.

In the original project I kept track of a list of all point lights. For each light I'd store its properties and a light volume. When rendering a frame, I'd go over this list and do a stencil pass followed by the actual lighting pass.

What would something like this look like in OSG?

My attempt so far:
I have all my light volumes in a specific subgraph and for each volume I have all the relevant light properties attached as uniforms of their statesets.
I was thinking that I could create a visitor that does does the stencil and lighting pass for each volume?

Does that sound like a good idea? or should I go for a different approach?
If anyone has some information on how to implement this or has some example code that would probably speed things up significantly.


Thank you!

Cheers,
antiro
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 CompositeViewer with multiple view, a... Angel General 3 Tue Aug 28, 2018 1:15 pm View latest post
No new posts How to speed up rendering in this case. pwang General 3 Tue Jul 31, 2018 3:00 am View latest post
No new posts Volume rendering issues... tommwilliamson General 4 Wed Jul 25, 2018 12:19 pm View latest post
No new posts massive text rendering OmegaDoom General 3 Mon Jul 09, 2018 12:14 pm View latest post
No new posts How to setup Msvcp2013 so that header... peter_k General 1 Tue Jul 03, 2018 3:14 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