javascript - Three.js - Shape disappears on flip side -



javascript - Three.js - Shape disappears on flip side -

i've made circle follows:

material = new three.meshbasicmaterial({ color: 0x00ff00 }); arcshape = new three.shape(); arcshape.absarc( 0, 0, 20, 0, -math.pi*2, true ); geometry = arcshape.makegeometry(); circle = new three.mesh(geometry, material); scene.add(circle);

like that, visible. rotate it, , disappears.

shadow.rotation.x = math.pi / 2;

i've seen several other posts problem has not been solved. (so unless has solution, i'll resort making flat cylinder instead. it's niggling problem).

i've set mesh.doublesided = true , mesh.flipsided = false. i've tried 4 combinations of toggling renderer's depthtest , material's depthwrite properties.

is there else try? if not, i'm guessing code sensitive order of of calls, in case, i've had long day i'll stick cylinder!!

material.side = three.doubleside;

javascript three.js webgl shape

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -