Hi Lauri!,
> Hi! > > The attached patch adds support for stencil operations in > effects. > Patches are for simgear's scene/material/Effect.cxx and > flightgear's > Main/CameraGroup.cxx. I did them with "cvs diff > <file>" against latest > CVS version. Hope that is correct way. > > > The format of stencil operations in effect file is > following: > <stencil> > <function>...</function> > <value>...</value> > <mask>...</mask> > <stencil-fail>...</stencil-fail> > <z-fail>...</z-fail> > <pass>...</pass> > </stencil> > > Where function can be never, always, less, less-or-equal, > equal, > not-equal, greater-or-equal or greater. > > Value is the reference value used in stencil operations and > mask is the > stencil bit mask. > > Stencil-fail, z-fail and pass are stencil operations if > stencil test > fails or stencil-test passes but z-test fails or both > passes. Possible > functions are zero, keep, replace, increase, decrease, > invert, > increase-wrap and decrease-wrap. > > I think one has to know something about stencil buffers to > use this ;) > > > I also added a new general tag <color-mask > type="vec4d">1 0 0 > 1</color-mask> that allows only writing to certain > channel (in this > example only to red and alpha channel. > > > As an example, I attached new version of the light-cone.eff > I posted few > days ago. This one does the same thing but with stencil > operations. > The .ac model used with this should be almost transparent > or it will be > too bright. > > This version has some issue if there is more than 5 light > models > simultaneously. I don't know if this is a OSG issue about > rendering > orders or something? But please test and comment. > > Lauri, a.k.a. Zan > -- > Lauri Peltonen > lauri.pelto...@gmail.com This are great news! That means we can have now landinglights, cockpitlights etc. Can't wait to to try this! Many thanks for this! Cheers Heiko __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel