Re: [osg-users] Strange Transparent effect [image provided]
hello Delport you mean i have to split my model into lots of parts~ I could not do that, because all the millions objects are all real-time generated in GPU... Do you have another idea of that? Thank you! Cheers, Nan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=39635#39635 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Strange Transparent effect [image provided]
On 5/23/2011 9:59 AM, Nan WANG wrote: hello Delport you mean i have to split my model into lots of parts~ I could not do that, because all the millions objects are all real-time generated in GPU... Do you have another idea of that? If you can't split and sort then you will have to use Order Independent Transparency, as JP suggested. See osgoit. -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. There is no Truth. There is only Perception. To Perceive is to Exist. - Xen ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Strange Transparent effect [image provided]
Hi, everyone~ I implemented GPU based MarchingCube algorithm in OSG 3D engine. But i have got something strange, here is the picture. [Image: http://i56.tinypic.com/wvcv87.jpg ] some dark gray levels disappear... I just put the generated osg::Geometry object into transparent with function and give an alpha value in fragment shader(constant, e.g. 0.5). sset-setmode(GL_BLEND)... Anybody can help me to solve this problem? the problem of DepthFunc?BlendFunc?AlphaFunc? how to fix this ... Thank you! Cheers, Nan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=38300#38300 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Strange Transparent effect [image provided]
On 4/7/2011 11:38 AM, Nan WANG wrote: I just put the generated osg::Geometry object into transparent with function and give an alpha value in fragment shader(constant, e.g. 0.5). sset-setmode(GL_BLEND)... You're not using Alpha Clip are you? -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. There is no Truth. There is only Perception. To Perceive is to Exist. - Xen ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Strange Transparent effect [image provided]
Hi Nan, The artificat you are seeing is the very common issue seen with transparent meshes that are not depth sorted from front to back. There are various different techniques to address this issue. I'd recommend you do a search on the archives as this topic has been discussed many many times. Robert. On Thu, Apr 7, 2011 at 6:38 PM, Nan WANG nan.c...@gmail.com wrote: Hi, everyone~ I implemented GPU based MarchingCube algorithm in OSG 3D engine. But i have got something strange, here is the picture. [Image: http://i56.tinypic.com/wvcv87.jpg ] some dark gray levels disappear... I just put the generated osg::Geometry object into transparent with function and give an alpha value in fragment shader(constant, e.g. 0.5). sset-setmode(GL_BLEND)... Anybody can help me to solve this problem? the problem of DepthFunc?BlendFunc?AlphaFunc? how to fix this ... Thank you! Cheers, Nan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=38300#38300 ___ 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
Re: [osg-users] Strange Transparent effect [image provided]
Hello , there's no alpha clip... Chris 'Xenon' Hanson wrote: On 4/7/2011 11:38 AM, Nan WANG wrote: I just put the generated osg::Geometry object into transparent with function and give an alpha value in fragment shader(constant, e.g. 0.5). sset-setmode(GL_BLEND)... You're not using Alpha Clip are you? -- Chris 'Xenon' Hanson, omo sanza lettere. http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. There is no Truth. There is only Perception. To Perceive is to Exist. - Xen ___ osg-users mailing list 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=38304#38304 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Strange Transparent effect [image provided]
OK thanks alot leader.. I will check it... thx robertosfield wrote: Hi Nan, The artificat you are seeing is the very common issue seen with transparent meshes that are not depth sorted from front to back. There are various different techniques to address this issue. I'd recommend you do a search on the archives as this topic has been discussed many many times. Robert. On Thu, Apr 7, 2011 at 6:38 PM, Nan WANG wrote: Hi, everyone~ I implemented GPU based MarchingCube algorithm in OSG 3D engine. But i have got something strange, here is the picture. [Image: http://i56.tinypic.com/wvcv87.jpg ] some dark gray levels disappear... I just put the generated osg::Geometry object into transparent with function and give an alpha value in fragment shader(constant, e.g. 0.5). sset-setmode(GL_BLEND)... Anybody can help me to solve this problem? the problem of DepthFunc?BlendFunc?AlphaFunc? how to fix this ... Thank you! Cheers, Nan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=38300#38300 ___ 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 -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=38305#38305 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Strange Transparent effect [image provided]
http://forum.openscenegraph.org/viewtopic.php?t=7144highlight=transparent+depth this should be solution? Thank you! Cheers, Nan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=38307#38307 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org