nickcartwright
11-04-2003, 12:10 AM
Hiya!
Im having a problem with openGL not recognising that an object is behind another.
To put things into context - i am drawing a terrain and at the moment im adding some water. For the water i'm simply drawing a level quad across the terrain with some blue alpha... Good in theory but when i zoom out on the terrain the quad appears on parts of the terrain where is should be beneath it and sometimes the entire quad is shown.
Is there an easy way to fix this (ie - by changing a flag?) or am I going to have to place my water down with much more accuracy so it doesn't go beneath the landscape (if you get what i mean)..
Any help much appreciated!
Thankyou.
Im having a problem with openGL not recognising that an object is behind another.
To put things into context - i am drawing a terrain and at the moment im adding some water. For the water i'm simply drawing a level quad across the terrain with some blue alpha... Good in theory but when i zoom out on the terrain the quad appears on parts of the terrain where is should be beneath it and sometimes the entire quad is shown.
Is there an easy way to fix this (ie - by changing a flag?) or am I going to have to place my water down with much more accuracy so it doesn't go beneath the landscape (if you get what i mean)..
Any help much appreciated!
Thankyou.