Vision sensor image not displayed correctly

Report crashes, strange behaviour, or apparent bugs
Post Reply
felix.s

Vision sensor image not displayed correctly

Post by felix.s »

Hi,

I don't know if this is truly a bug, but if i move my vision sensor i sometimes get pictures like the one below, where a lot of pixels are white when they should not be (should show a normal black/white chessboard).
Then if i turn or move the vision sensor a little bit the picture is correct again.
Does anyone know where the white stripes come from?

Image

I guess this is somehow connected to the value of the near clipping plane in the vision sensor properties.
For the picture shown above I used a value of 1*e-04, but if I increase the near clipping plane to 0.1 the scene is always displayed correctly.

Thanks in advance

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: Vision sensor image not displayed correctly

Post by coppelia »

Hello Felix,

what you are seeing is sometimes also called Z-fighting. This happens when two surfaces (i.e. triangles) lie very close to each other, or when the Z-Buffer doesn't have enough precision at the given depth.
As you mention it, you can adjust the near/far clipping planes or your vision sensor or camera, or you can increase the distance between the two surfaces that are fighting.

Cheers

Post Reply