Hi

Yes, polygonoffset methods are presents in ShadowMap class only, but I use a 
technique derived from StandardShadowMap which redefines the polygonoffset 
variables and here we have no methods to set.

However, I've tried polygonoffset tweak and the final result is much better 
even if not "perfect" in all scenes. Thanks for your suggestions. However I 
will try the new robert's technique also in next days. I still have to try the 
the GL_CULL_FACE option in my models...

Best Regards


Wojtek wrote:
> Hi, Dario
> 
> 0: Ops I was sure these methods are available.... Thats awkward ommission 
> considering how old this technique is. We probably should add them. But as a 
> temporal workoaround you can derive your own class from LispSM and add proper 
> setter and getter for polygon offset...
> 
> 
> 1: Yes "closed" was not a stric term but you got it right: cube is closed in 
> this definition and single quad is not. 
> 
> 
> 2: Yes you can. Assuming the vertices are oriented properly and it not change 
> how it looks of course.
> 
> 
> Cheers,
> WL
> 
> 2012/8/28 Dario Minieri < ()>
> 
> >  Hi,
> > 
> > Thanks for your reply. Yes, I see now the polygonoffsetfactor and 
> > polygonoffsetunits variables even if there are no methods to set them (osg 
> > 3.0.0), they are setted as attribute camera StateSet because shadow map 
> > generation. I can try to tweak these values in some way. You speaks about 
> > two stuffs which I would to discuss:
> > 
> > 1. You say that the model must be closed, but what do you means precisely? 
> > "Closed" in term of vertex mesh or "closed" in terms of shape? For example 
> > a cube is a "closed" model, my truck obviously not...
> > 
> > 2. I can set the cull faces on my objects stateset via GL_CULL_FACE, do you 
> > means that?
> > 
> > Many thanks
> > 
> > Thank you!
> > 
> > Cheers,
> > Dario
> > 
> > ------------------
> > Read this topic online here:
> > 
> > http://forum.openscenegraph.org/viewtopic.php?p=49624#49624 
> > (http://forum.openscenegraph.org/viewtopic.php?p=49624#49624)
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > osg-users mailing list
> >  ()
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org 
> > (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org)
> > 
> > 
> > 
> 
> 
>  ------------------
> Post generated by Mail2Forum


------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=49669#49669





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to