Re: Polygon rendering speed
- From: "Mike D Sutton" <EDais@xxxxxxxx>
- Date: Thu, 16 Feb 2006 12:13:55 -0000
Always a huge help as usual. The data arrive in a compressed format (which
surprisingly takes only an instant to decompress and read in -- less than
a hundredth of a second). Essentially I know the azimuth (a decimal value
between 0 and 360 degrees, the "width" of the pixels along that azimuth,
and the value at each of the 400 bins along that azimuth. Values of 0 are
ignored (as this is the color of the final transparency).
The problem is that the polygon coordinates have to be calculated for
every frame uniquely as the azimuth values and width can change subtlely
due to the hardware of the radar (tough to stop that gargantuan thing on a
dime!).
So for each point on that circle, could you define a position within a 2D
dataset (X representing degree and Y representing the bin) for that point?
If so then texture coordinates would do what you need with minimal effort.
Hope this helps,
Mike
- Microsoft Visual Basic MVP -
E-Mail: EDais@xxxxxxxx
WWW: Http://EDais.mvps.org/
.
- References:
- Polygon rendering speed
- From: wxforecaster
- Re: Polygon rendering speed
- From: Tom
- Re: Polygon rendering speed
- From: wxforecaster
- Re: Polygon rendering speed
- From: Mike D Sutton
- Re: Polygon rendering speed
- From: wxforecaster
- Polygon rendering speed
- Prev by Date: Re: Polygon rendering speed
- Next by Date: Re: GetThemeSysColor
- Previous by thread: Re: Polygon rendering speed
- Next by thread: GetThemeSysColor
- Index(es):