Domanda

When I get the camera closer to some objects in the scene the image tears apart like it's shown below.

enter image description here

enter image description here

enter image description here

I'm using OpenglES 2.0

This is a video showing the issue.

And this is the test project that reproduce the issue, it's just the cocos3d template with the temple.pod file.

It seems that it only happens when the field of view is 85º or wider.

È stato utile?

Soluzione

From what I can tell by running your demo, the "tearing" appears to be occurring as the near clipping plane of your camera breaches your model. Essentially, it is a result of the camera entering your model.

The CC3Camera nearClippingDistance property controls the distance to the camera's near clipping plane. The default value is 1.0. If the coordinate scale of your scene is very small, then you should adjust the near and far clipping distances of the camera to values more suitable for your scene.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top