Author Topic: OutOfMemoryError  (Read 11956 times)

Offline Uija

  • int
  • **
  • Posts: 52
    • View Profile
OutOfMemoryError
« Reply #15 on: November 26, 2005, 12:24:02 am »
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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
OutOfMemoryError
« Reply #16 on: November 26, 2005, 12:09:28 pm »
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.

Offline Uija

  • int
  • **
  • Posts: 52
    • View Profile
OutOfMemoryError
« Reply #17 on: November 26, 2005, 12:12:18 pm »
Ah, okay, I thought that :P
I just use it, because it is so easy in the first step.
Thanks thou.