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 

I am in a puzzle about the realization of osgOcean's 'Glare effect'


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgOcean [osgOcean]
View previous topic :: View next topic  
Author Message
tianxiao888
User


Joined: 30 Oct 2009
Posts: 57

PostPosted: Wed Apr 28, 2010 7:59 am    Post subject:
I am in a puzzle about the realization of osgOcean's 'Glare effect'
Reply with quote

Hi Kim,

I saw the code in 'OceanScen.cpp', that 5 cameras in 'osgOcean::OceanScen::_glarePasses' were used to render the glare effect.

But I saw the realization code in "water.frag" is just as bellow:
if(osgOcean_EnableGlare)
{
float lum = luminance(lumColor);
gl_FragData[1] = vec4(lum);
}
And it looks like that the cameras in 'osgOcean::OceanScen::_glarePasses' have not been used anywhere. Will tell me why?


Thank you!

Cheers,
Tian
Back to top
View user's profile Send private message
benang
User


Joined: 31 Jan 2011
Posts: 21

PostPosted: Mon Jan 31, 2011 1:18 pm    Post subject:
Reply with quote

A noob trying to help a bit. Try looking at "OceanScene::preRenderCull()" method. You'll see that it's being used there to render the scene.
Back to top
View user's profile Send private message
tianxiao888
User


Joined: 30 Oct 2009
Posts: 57

PostPosted: Wed May 11, 2011 5:32 am    Post subject:
Reply with quote

benang wrote:
A noob trying to help a bit. Try looking at "OceanScene::preRenderCull()" method. You'll see that it's being used there to render the scene.


Thanks a lot for your help. And sorry for so late to answer.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgOcean [osgOcean] 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 How to merge osgocean and osgearth Rambabu General 2 Wed Dec 07, 2016 12:43 pm View latest post
No new posts OsgOcean Rambabu General 1 Mon Nov 28, 2016 11:00 am View latest post
No new posts osgOcean and osgSim::LOS segmentation... Paradox osgOcean [osgOcean] 0 Fri Oct 28, 2016 4:20 pm View latest post
No new posts LOS Intersection and osgOcean segment... Paradox General 1 Wed Sep 14, 2016 10:17 am View latest post
No new posts OpenFlight-plugin texture effect id SMesserschmidt Submission 4 Mon Jun 06, 2016 12:17 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