Re: [osg-users] Strange Transparent effect [image provided]

2011-05-23 Thread Nan WANG
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:

Re: [osg-users] Strange Transparent effect [image provided]

2011-05-23 Thread Chris 'Xenon' Hanson
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

[osg-users] Strange Transparent effect [image provided]

2011-04-07 Thread Nan WANG
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

Re: [osg-users] Strange Transparent effect [image provided]

2011-04-07 Thread Chris 'Xenon' Hanson
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.

Re: [osg-users] Strange Transparent effect [image provided]

2011-04-07 Thread Robert Osfield
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.

Re: [osg-users] Strange Transparent effect [image provided]

2011-04-07 Thread Nan WANG
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

Re: [osg-users] Strange Transparent effect [image provided]

2011-04-07 Thread Nan WANG
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

Re: [osg-users] Strange Transparent effect [image provided]

2011-04-07 Thread Nan WANG
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 ___