PDA

View Full Version : Speckles



varieux
11-12-2010, 06:52 AM
Hi all,

I test my program on a machine other than my development system and I'm seeing speckles:
http://yfrog.com/6375057941j

This happens with two-sided triangles and both with and without goraud shading.

I'm using floats for all coordinates rather than doubles.

Any clues as to what's happening?
Thanks.

varieux
11-15-2010, 05:54 AM
Hi folks,
As an experiment I switched my coordinates to all doubles for greater precision but I am still getting these speckles everywhere on my model's surface. As the user rotates the model the speckles twinkle like stars.
What could this be caused by?

ZbuffeR
11-15-2010, 06:01 AM
This may be caused by imprecision in depth, or T-junctions.

Can we have a wireframe view of the model ?
Do you render triangles twice ?
What is your depth func ?