Thanks.

I managed to get a work around (ie. ugly hack) working last night, but I will try to take a look at this method for the next time.

-Allen

Andreas Zieringer wrote:

Hi Allen,

I added a new method addParameterCallback("OSGSpecialParameter", myCallback). The parameter name needs to begin with "OSG"! I added a small example to OpenSG/Source/Experimental/SHL/testSHLLights.cpp

Andreas

I am working on an application that uses SHLChunks in a multi-pipe environment. I need the ability to set some uniform parameters on some shaders that:

- Vary each frame
- Vary depending upon the context (OSG::Window) that is being used
- May need to vary based upon the action being used or the current pass (multipass rendering)

 From what I can tell, this is not currently allowed by SHLChunks.
While looking into it though I noticed that this is the exact type of functionality that OpenSG uses internally to set it's internal "OSG" uniforms like "OSGCameraPosition". I think it would possible for me to do what I need if users had the ability to add uniform callbacks to the internal _osg_ParametersCallbacks vector. Then I could right a callback method in my application that could set the uniform manually based upon the action* and program passed to the callback (assuming it had the same signature as the current callbacks).

Is this something that will/could be added in the future?

-Allen


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users






-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to