Take a look at the osgshaders example in the OSG code to see how to manage shaders at that level. For actual shader development, there are lots of good books out there plus resources and tutorials on line that can get you started. Along with this, I like the "orange" book "OpenGL Shading Language" by Randi Rost.
Beware though...once you start writing your own shaders, you'll be hooked...:) Good luck... -Shayne -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Allen Saucier Sent: Monday, April 13, 2009 2:03 PM To: [email protected] Subject: Re: [osg-users] FOG: applying both kinds at the same time. How? Write my own shader??? ha, ha,ha, ha ... that's a good one. What's a shader? [Embarassed] really, I've NO idea how to write one so the canned versions, I'll make do with. Thx... Tueller, Shayne R Civ... wrote: > Glad to help. > > The OpenGL drivers underneath OSG support different fog functions but only > one can be selected at a time. If you need a different fog effect other than > the "canned" fog functions in OpenGL, you can always write a shader...:) > > -Shayne > > -----Original Message----- > From: > [mailto:] On Behalf Of Allen > Saucier > Sent: Monday, April 13, 2009 9:17 AM > To: > Subject: Re: FOG: applying both kinds at the same time. How? > > Thxs guys! I never knew that the Linear & Exponential fog were mutually > exclusive. [Idea] But that explains why when I attempt to have both types of > fog w/in the same state only the last fog type enabled is used. > > I was thinking about applying the fog types to 2 different matrices and > putting those matrices, one after the other, into the scene but this info > saves me some time & effort. > > Thx Shayne! :) > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=10165#10165 > > > > > > _______________________________________________ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ------------------ > Post generated by Mail2Forum ------------------------ ---- Allen ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10173#10173 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

