transparency artefacts with gl 3D objects

JMC's icon

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

Rob Ramirez's icon

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's icon

Thanks!!!

This trick works perfectly.

JM

jin's icon

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