Ok, i understand. 2008/11/24 Art Tevs <[EMAIL PROTECTED]>
> Hi Adrian, > > osgPPU::SSAO is not complete. I have just started to implement this, it > need to be changed. You can use it as a starting point or wait until I get > enough time to finish it. As to the GLSL version, the current code is Cg and > I was currently converting it to GLSL, hence the shader isn't runnable or > compilable yet ;( > > Cheers, > art > > > > --- Adrian Egli OpenSceneGraph (3D) <[EMAIL PROTECTED]> schrieb am Mo, > 24.11.2008: > > > Von: Adrian Egli OpenSceneGraph (3D) <[EMAIL PROTECTED]> > > Betreff: Re: [osg-users] Screen Space Ambient Occlusion > > An: [EMAIL PROTECTED], "OpenSceneGraph Users" < > osg-users@lists.openscenegraph.org> > > Datum: Montag, 24. November 2008, 10:37 > > osgPPU :: SSAO > > > > the shader supports not my gpu : > > > > NVidia quatro 570M , what kind of GLSL do you use > > > > /adrian > > > > 2008/11/18 Art Tevs <[EMAIL PROTECTED]> > > > > > Hi Adrian, > > > > > > implementing this effect as osg effect ala cartoon > > shader or so wouldn't be > > > that easy. The problem is that it requires some > > offscreen rendering > > > mechanism. > > > > > > I have already started to implemented this effect with > > osgPPU. It is a good > > > base for implementig screen space based effects. Take > > a look into the svn > > > version of osgPPU. You will find the example there, > > however it is currently > > > disabled and doesn't included into the make file. > > Due to small amount of > > > time, I wasn't able to complete the effect and > > wouldn't be able until > > > december, I think. Hence you can use it as a starting > > point and write and > > > example (or even a complete osgPPU:SSAOUnit :) which > > handles this effect. > > > > > > Just take a look, > > > art > > > > > > P.S. Of course I can help you with the development of > > that effect, because > > > it seems to be already almost complete :) > > > > > > > > > --- Adrian Egli OpenSceneGraph (3D) > > <[EMAIL PROTECTED]> schrieb am Di, > > > 18.11.2008: > > > > > > > Von: Adrian Egli OpenSceneGraph (3D) > > <[EMAIL PROTECTED]> > > > > Betreff: [osg-users] Screen Space Ambient > > Occlusion > > > > An: "OpenSceneGraph Users" > > <osg-users@lists.openscenegraph.org> > > > > Datum: Dienstag, 18. November 2008, 17:36 > > > > Hi all, > > > > > > > > I am testing a new effect. i would like to append > > to the > > > > osg effect, like > > > > cartoon shader, also a new one: SSAO. > > > > > > > > Se the attachements to understand what kind of > > inputs i > > > > used. > > > > > > > > what i have to do: > > > > > > > > by the way, i have set..... > > > > set > > > > > > OSG_COMPUTE_NEAR_FAR_MODE=COMPUTE_NEAR_FAR_USING_PRIMITIVES > > > > > > > > algorithm: > > > > PASS 1 > > > > (1) Render the scene > > > > (*) readback the z-buffer into a texture > > called Z > > > > (depth values are : > > > > nearest =0, farest=1) > > > > (*) smooth the texture Z -> sZ : > > gauss(Z,16x16) > > > > -> sZ > > > > (*) dZ = Z - sZ > > > > (*) scale dZ into the range of [0.00...0.5] > > > > scale(dZ,0.0,0.5) -> sdZ > > > > > > > > PASS 2 > > > > (*) F - sdZ -> R : Final Image (may we have to > > transform > > > > sdZ with a sigmoid > > > > function : F - > > > > sigmoid(sdZ,alpha=0.01,beta=0.01,min=0,max=1) > > -> R > > > > (2) Render final scene and remove the sdZ(x,y) > > from all > > > > Fragment.Color(x,y) > > > > > > > > > > > > have a look at may prototype implement in image > > filtering > > > > software (itk) > > > > SSA0_Sponza_test.jpg > > > > > > > > > > > > How should i implement this, is there a template > > i can add > > > > this new effect. > > > > ? someone like to help me in implmenting it? > > > > > > > > /regards adrian > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > ******************************************** > > > > Adrian Egli > > > > _______________________________________________ > > > > osg-users mailing list > > > > osg-users@lists.openscenegraph.org > > > > > > > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > > > > > > > _______________________________________________ > > > osg-users mailing list > > > osg-users@lists.openscenegraph.org > > > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > > > > > > -- > > ******************************************** > > Adrian Egli > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- ******************************************** Adrian Egli
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org