transparency artefacts with gl 3D objects

Jul 11, 2009 at 1:33pm

transparency artefacts with gl 3D objects

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

#44697
Jul 11, 2009 at 8:48pm

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.

#160856
Jul 16, 2009 at 6:28am

Thanks!!!

This trick works perfectly.

JM

#160857
Jul 18, 2009 at 1:07am

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

#160858

You must be logged in to reply to this topic.