|
From: Keith W. <kw...@cs...> - 2005-01-21 17:09:39
|
On Fri, 21 Jan 2005, James W. Walker wrote: > On Jan 21, 2005, at 12:10 AM, Keith Wiley wrote: > >> I am trying to use an alpha channel to make a soft sun that fades into the >> background sky. It works perfectly except at the horizon, where the >> square shape of the plane the sun texture is put on shows up as a >> translucent square. This problem vanishes if I turn off fog. I am aware >> of the discussions pointing out that fog does not work properly with alpha >> channeled textures...and I assume you will agree that this bug is the >> problem I am experiencing. My question is, does anyone havea >> reccomendation for how to work around it? > > Why not use a disk instead of a square for the sun? The only reason I used a square was to reduce the number of triangles. I considered a circle and thought it was "bad desig" to make shapes with triangles that could be made with transparent textures instead. I'll try it with a disk...although I would still like the alpha texture to work properly if I want the sun to have a fuzzy edge. A round disk doesn't really help with that problem. A sun disk with a hard edge doesn't look very realistic...but I understand that's a sacrifice I might have to make. Thanks for the tip on the circular disk. ________________________________________________________________________ Keith Wiley kw...@cs... http://www.unm.edu/~keithw "Yet mark his perfect self-contentment, and hence learn his lesson, that to be self-contented is to be vile and ignorant, and that to aspire is better than to be blindly and impotently happy." -- Edwin A. Abbott, Flatland ________________________________________________________________________ |