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 

EXTERNAL: Re: Getting a callback to update shaders?


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Rowley, Marlin R
Guest





PostPosted: Tue Apr 10, 2018 6:58 pm    Post subject:
EXTERNAL: Re: Getting a callback to update shaders?
Reply with quote

No, I have still need the built-in matrices. I know those get updated.

-M

----------------------------------------
Marlin Rowley
Software Engineer, Staff

Missiles and Fire Control
972-603-1931 (office)
214-926-0622 (mobile)
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)

From: osg-users [mailto:] On Behalf Of Robert Osfield
Sent: Tuesday, April 10, 2018 11:53 AM
To: OpenSceneGraph Users <>
Subject: EXTERNAL: Re: Getting a callback to update shaders?

On 10 April 2018 at 16:55, Rowley, Marlin R < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:

Nevermind. I figured out that I need to update the shader state variables on every refresh. I thought that an initial binding was all that was needed, but they have to be “Set” every frame.




It all depends what data you are needing to pass to the shader via uniforms. The OSG provides standard replacements for the likes of gl_ModelViewMatrix automatically as osg_ModelViewMatrix etc. if you enable it via osg::State. See the osgsimplegl3 example.



Robert.

------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12148

PostPosted: Tue Apr 10, 2018 7:52 pm    Post subject:
EXTERNAL: Re: Getting a callback to update shaders?
Reply with quote

On 10 April 2018 at 20:52, Rowley, Marlin R < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:

No, I have still need the built-in matrices.  I know those get updated.





You can;t wave your arms around without telling anybody what specifically have a problem with and I expect us to know what the problems you are and how to answer them.


We can only guess at what you mean and point you in roughly the right direction of what we think might be appropriate.


So please be specific about what you are looking for - tell us what data you want to input into your shaders.


Robert.

------------------
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 Update node color on demand dhhabyc General 12 Sat Nov 24, 2018 3:05 pm View latest post
No new posts EXTERNAL: Re: Value of a variable in... Rowley, Marlin R General 3 Fri Sep 28, 2018 1:39 pm View latest post
No new posts Value of a variable in shaders? Rowley, Marlin R General 4 Thu Sep 27, 2018 6:14 pm View latest post
No new posts update node in view using cullcallback sirian_ye General 2 Wed Aug 29, 2018 11:40 pm View latest post
No new posts EXTERNAL: Re: LookAt() function param... Rowley, Marlin R General 0 Mon Aug 13, 2018 2:59 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