x


Strange, triangle shaped holes appearing in my applied shader.

I cannot post the Shader code itself, but I was wondering if there is some common problem that occurs for Shaders where this would happen.

http://i.imgur.com/lih8c.png

more ▼

asked Jan 11 '11 at 10:33 PM

tylo gravatar image

tylo
297 5 9 18

Looks like z fighting. Check for almost-coplanar polygons, and also make sure your camera near/far clip planes are reasonably tight around the geometric extent of your world.

Jan 11 '11 at 10:38 PM yoyo

It is almost impossible to guess what you are doing just from the picture, maybe transparency, maybe the depth buffer? You will probably have to give some shader code.

Jan 11 '11 at 10:39 PM Peter G
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Looks to me you're discarding pixels in a pixel shader, or having multiple passes where you end up with Z buffer fighting due to previous pass overlay. Sorry for the vague answer but you don't provide much information. :)

Are you messing around with the mesh in any way? Just considering there might be some issues if not all data channels are populated... It looks linked with vertex data from the shapes.

more ▼

answered Jan 11 '11 at 10:37 PM

Statement gravatar image

Statement ♦♦
20.1k 35 70 175

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1659
x272
x56

asked: Jan 11 '11 at 10:33 PM

Seen: 959 times

Last Updated: Jan 11 '11 at 10:33 PM