Author Topic: Cedar Tree Border  (Read 474 times)

Offline Bullethead

  • Silver Member
  • ****
  • Posts: 1018
      • http://people.delphiforums.com/jtweller
Cedar Tree Border
« on: December 20, 2003, 11:25:08 AM »
P4 1.7GHz, ATI Radeon 9600 Pro, 512MB, WinME, DX9.0

This problem is with the transparent area surrounding the little, indidivual, teardrop-shaped bushes (they look kinda like Texas prairie cedars).  In most cases, the transparent rectangle around the visible bush works just fine and you never know it's there.  However, it has a problem with lines of sight up hills towards the sky.

Picture yourself in a GV driving up a hill, with one of these "cedar trees" right in front of you so that the top of the cedar tree is above the horizon formed by the crest of the hill.  However, the crest of the hill is covered by clumps of "pancake trees", so that the top of the cedar tree isn't against the sky but is on these pancake trees.  Problem is, the transparent rectangle around the cedar tree shows the sky, so you end up with this rectangular area of sky superimposed on the pancake trees on the skyline.

This is the only combination I've found that causes this problem.  When the cedar tree is superimposed on other types of bushes and trees further up the hill, everything displays correctly.  So I'm guessing the problem is that the rectangular transparent area of the cedar tree only shows the ground and vertically oriented textures along the line of sight; otherwise it shows the sky.  Thus, it doesn't "see" the horizontally oriented textures of the pancake trees, assumes nothing's there, and draws the sky on top of them.