OutOfMemoryError

Started by Uija, November 25, 2005, 02:41:44 PM

Previous topic - Next topic

Uija

hm, I found it, i think.
my card has a problem with the FOGGING_PER_PIXEL option.
I used that, because my ground is a 600x600 pixel big plane containing 2 triangles and the result was the best.
I set this to FOGGING_PER_VERTEX and see the ground again.

the same moment something new, strange occured: I have, as you may see on the sreens, the fog at the top border of the screen. when I walk north, its getting darker and darker until I come near the border of the plane. there the fog is gone and it gets lightened again.

dunno if it has something to do with the PER_VERTEX option and my simple plane.

EgonOlsen

I see...your plane is quite huge. ATI's per pixel fog implementation is actually per vertex, which can produce strange results when polygons are quite huge. I've already noticed that but never investigated it further. I suggest to split the plane into smaller ones. The lighter/darker effect you are experiencing has the same source. It's linear interpolated across the polygon. Depending on where the actual vertex of a polygon is located, the result may change.
In a real world application, you shouldn't use planes that large anyway, because it will cause lighting to show similar problems.

Uija

Ah, okay, I thought that :P
I just use it, because it is so easy in the first step.
Thanks thou.