Ajit kohir
Ajit kohir

Reputation: 481

Why we start seeing the disc on the double render geometry (when we do culling both from front and back) in three.js sample?

enter image description hereI have done the doubleSide rendering with depthTest off. This generate the rounded disc into my geometry I am curious to know the math behind this and why this happen.

My object is not transparent as you can see in the image Please explain about this.to me.

http://threejs.org/docs/#Reference/Materials/MeshDepthMaterial

In this example when you turn material doubleSide and turn of the depthTest you will get to know what I mean.

Upvotes: 0

Views: 139

Answers (1)

Sami Kuhmonen
Sami Kuhmonen

Reputation: 31153

If you turn off depth testing then anything that is drawn later is on top of anything drawn before. Therefore if your object has parts that should be behind another part and you draw them later they will show incorrectly on top.

Upvotes: 1

Related Questions