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 

Merge Shader::Program from differents node kits.


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


Joined: 19 Apr 2010
Posts: 129

PostPosted: Tue Feb 28, 2017 3:53 pm    Post subject:
Merge Shader::Program from differents node kits.
Reply with quote

Hi,

I'm planning to using osgVegetation (https://github.com/leadcoder/osgVegetation) with osgOcean.

Unfortunately, both use a lot of shaders and there are obviously problems in the underwater visualization because osgVegetation shader pipeline (which generates the vegetation billboard instances) overwrites the osgOcean underwater program. So the vegetation don't get the underwater effects (dof, fog, scattering, etc...).

Normally, I proceed to integrate physically the shaders, merging 2 vertex and fragment shader into one program. In this case it's a terrible prospective because they are huge node kits (not only shaders, but a lot of osg layers above).

So, can you suggest to me a way to procede? I know that similar problems come out time to time but right now I'm not able to figure out a way. I'm using OSG 3.2.3 and I can't use newer version for now.

Thank you!

Cheers,
Dario
Back to top
View user's profile Send private message
cbuchner1
Appreciator


Joined: 14 Mar 2012
Posts: 312

PostPosted: Wed Mar 01, 2017 10:59 am    Post subject:
Merge Shader::Program from differents node kits.
Reply with quote

Pragmatic shader composition was introduced in OSG 3.4 only.   Awkward...



It seems that you will have to do a manual merging of the shaders and uniform variables unless you are able to upgrade OpenSceneGraph.

Christian




2017-02-28 16:53 GMT+01:00 Dario Minieri < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>:
Quote:
Hi,

I'm planning to using osgVegetation (https://github.com/leadcoder/osgVegetation) with osgOcean.

Unfortunately, both use a lot of shaders and there are obviously problems in the underwater visualization because osgVegetation shader pipeline (which generates the vegetation billboard instances) overwrites the osgOcean underwater program. So the vegetation don't get the underwater effects (dof, fog, scattering, etc...).

Normally, I proceed to integrate physically the shaders, merging 2 vertex and fragment shader into one program. In this case it's a terrible prospective because they are huge node kits (not only shaders, but a lot of osg layers above).

So, can you suggest to me a way to procede? I know that similar problems come out time to time but right now I'm not able to figure out a way. I'm using OSG 3.2.3 and I can't use newer version for now.

Thank you!

Cheers,
Dario

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70362#70362





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
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 [Compute Program executed on useprogr... mp3butcher General 2 Sat Nov 18, 2017 1:31 am View latest post
No new posts Post Processing Effect - Vertex Shade... guyv General 27 Sat Sep 16, 2017 3:48 am View latest post
No new posts Pro Process Effect Vertex Shader not ... guyv General 1 Fri Sep 15, 2017 10:22 pm View latest post
No new posts Post Process Effect Vertex Shader guyv General 1 Fri Sep 15, 2017 8:29 pm View latest post
No new posts Post Process Effect Shader guyv General 1 Fri Sep 15, 2017 8:27 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