Forums > Jitter

transparency artefacts with gl 3D objects


JMC
July 11, 2009 | 1:33 pm

hi all,

i’ve observed strange render artefacts with jitter 3D objects when using textures with transparency or just having an alpha value not equal to 1 (see enclosed patch and screenshot). Does someone know a solution to have a correct render?

The problem is the same with jit.gl.gridshape, jit.gl.sketch, jit.gl.model.

best,

Jean-Michel


July 11, 2009 | 8:48 pm

i was able to get a nice render by duplicating the gridshape (keeping all the attributes exactly the same and attaching the handle to both). keep depth_enable 0, blend_mode 6 7.

add @cull_face 1 to the first globe, and @cull_face 2 to the second. this culls the back faces of the first, and the front faces of the second. when they are blended together, it gives the effect of a transparent globe.



JMC
July 16, 2009 | 6:28 am

Thanks!!!

This trick works perfectly.

JM



jin
July 18, 2009 | 1:07 am

very cool patch…thanks

I was trying to change with another pic.
I created it with illustrator and export as png file with antialias on and transparent background on.
It doesn’t show up in the pwindow.
It’s ok with preview in finder. It’s transparent.
I tried with interlaced on and got same result.
What am I missing here?

thanks in advanced
jin


Viewing 4 posts - 1 through 4 (of 4 total)