Are the models transparent at all, or opaque?

On Sat, Feb 16, 2013 at 5:21 AM, Preet <[email protected]> wrote:

> When you say "weird" what do you mean? If you have polygons that are
> positioned/aligned very closely to one another you might be seeing
> z-fighting (http://www.zeuscmd.com/tutorials/opengl/15-PolygonOffset.php).
> In that case you can tell OpenSceneGraph to use polygon offset on one of
> the models.
>
>     osg::ref_ptr<osg::PolygonOffset> polyOffset = new osg::PolygonOffset;
>     polyOffset->setFactor(1.0f);
>     polyOffset->setUnits(1.0f);
>     ss = someNode->getOrCreateStateSet();
>     ss->setAttributeAndModes(polyOffset);
>
>
> On Sat, Feb 16, 2013 at 1:57 AM, wh_xiexing <[email protected]> wrote:
>
>> **
>> hi friends:
>>
>>
>>  i have 2 models to  render, some part of which are overlaped .  so the
>> result is some kind of weird.  how can i resolve this probem?
>>
>> do i need to split the model and align them?  or set different render
>> details for the 2 models?
>>
>>
>> ------------------------------
>> Shawl
>>
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
Chris 'Xenon' Hanson, omo sanza lettere. [email protected]
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Digital Imaging • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography
• Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS •
Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to