Skip to content Skip to sidebar Skip to footer

Three.js Canvasrender Problems: Faces Flicker In And Out

I am drawing two relative simple shapes and the geometry of them do not overlap. Here is the code sample: http://jsfiddle.net/pGD4n/9/ The Three.js Trackball is in there so you can

Solution 1:

This is a limitation of CanvasRenderer. Unfortunately per pixel z sorting is not available in CanvasRenderer so it basically tries to sort the whole polygon instead. Depending of where you're looking from the center of one polygon may be closer than the polygon on the side and so it "jumps".

The only solution right now is using WebGLRenderer. I'm working on a new renderer for context2d which hopefully will solve this without requiring webgl but it will still take some time.

Post a Comment for "Three.js Canvasrender Problems: Faces Flicker In And Out"