Re: [Algorithms] Maximum Distance Point To AABB
Brought to you by:
vexxed72
From: Gil G. <gg...@ma...> - 2000-07-31 22:05:29
|
I don't see why you would need the maximum distance for a texture synthesizer. You will always need mip levels down to 1x1, since the slope of the polygon has an effect on the mip level used. Edge-on polygons will always use the 1x1 mip-level. Anyway, an overestimate of the maximum distance is just the minimum distance plus the length of a "diagonal" of the bbox. By diagonal I mean a line segment joining opposite corners of the bbox. -Gil > Hi, > > For my terrain engine texture synthesizer, I want to dynamically load the > mipmap levels only when they are needed and delete them when they are not > needed anymore. > The terrain is subdivided into little chunks which all have their own > texture. So I would like to find out the minimum and maximum Distance from a > point to the AABB enclosing the terrain chunk. > > The minimum distance was easy, but how do I get the maximum distance to the > AABB? > > Thanks in advance. > bye joe > > _______________________________________________ > GDAlgorithms-list mailing list > GDA...@li... > http://lists.sourceforge.net/mailman/listinfo/gdalgorithms-list |