LumosQuad-src

所属分类:3D图形编程
开发工具:Visual C++
文件大小:368KB
下载次数:59
上传日期:2008-04-28 22:11:19
上 传 者flyingmao
说明:  四叉树实现的三维地形源程序!很经典,对可执行程序的补充
(Quadtree source to achieve three-dimensional terrain! Classic on the executable program of supplementary)

文件列表:
APSF.cpp (9206, 2007-06-26)
APSF.h (5409, 2007-06-26)
BlueNoise (0, 2007-06-26)
BlueNoise\BLUE_NOISE.cpp (12507, 2007-06-26)
BlueNoise\BLUE_NOISE.h (6803, 2007-06-26)
BlueNoise\LICENSE.txt (296, 2006-07-13)
BlueNoise\RangeList.cpp (2567, 2006-07-13)
BlueNoise\RangeList.h (478, 2006-07-13)
BlueNoise\RNG.cpp (5614, 2006-10-25)
BlueNoise\RNG.h (1110, 2006-10-25)
BlueNoise\ScallopedSector.cpp (7537, 2006-10-25)
BlueNoise\ScallopedSector.h (1121, 2006-07-13)
BlueNoise\WeightedDiscretePDF.cpp (5947, 2006-10-24)
BlueNoise\WeightedDiscretePDF.h (1513, 2006-10-24)
CELL.cpp (8690, 2007-06-26)
CELL.h (6971, 2007-06-26)
CG_SOLVER.cpp (10554, 2007-06-26)
CG_SOLVER.h (4799, 2007-06-26)
CG_SOLVER_SSE.cpp (12659, 2007-06-26)
CG_SOLVER_SSE.h (4372, 2007-06-26)
DAG.cpp (17161, 2007-06-26)
DAG.h (6712, 2007-06-26)
examples (0, 2007-06-26)
examples\hint.ppm (196668, 2007-06-18)
examples\nopath.ppm (196668, 2007-06-18)
examples\spine.ppm (196623, 2007-05-30)
examples\spineless.ppm (196668, 2007-06-18)
examples\y-second.ppm (196668, 2007-06-18)
examples\y.ppm (196668, 2007-06-18)
EXR.cpp (3881, 2007-06-26)
EXR.h (3969, 2007-06-26)
FFT.cpp (8761, 2007-06-26)
FFT.h (4085, 2007-06-26)
html (0, 2007-06-26)
html\annotated.html (2802, 2006-10-25)
html\APSF_8h-source.html (9643, 2006-10-25)
html\BlueNoise_8h-source.html (10767, 2006-10-25)
html\BLUE__NOISE_8h-source.html (10685, 2006-10-25)
html\CELL_8h-source.html (10667, 2006-10-25)
... ...

PDSample - Poisson-Disk sample set generation Daniel Dunbar, daniel@zuster.org ---- Overview -- PDSample generates Poisson-disk sampling sets in the domain [-1,1]^2 using a variety of methods. See "A Spatial Data Structure for Fast Poisson-Disk Sample Generation", in Proc' of SIGGRAPH 2006 for more information. Building --- The code should be portable to any platform with 32-bit float's and int's. Windows: There is an included PDSample.sln for MSVS version 7. Unix: Type 'make' and hope for the best. Usage --- PDSample [-m] [-t] [-r ] [-M ] [-N ] Options -- o -t Uses tiled (toroidal) domain for supporting samplers. The resulting point set will be suitable for tiling repeatedly in the x and y directions. o -m Maximize the resulting point set. For samplers which do not already produce a maximal point set then this will use the Boundary sampling method to ensure the resulting point set is maximal. o -r Apply the specified number of relaxations to the resulting point set. This requires that qvoronoi be in the path. o -M For DartThrowing and BestCandidate methods this determines the factor to multiply the current number of points by to determine how many samples to take before exiting (DartThrowing) or accepting the best candidate (BestCandidate). o -N This specifies a minimum number of samples that will be taken for the DartThrowing sampler. See below. Available Samplers (for method argument) -- o DartThrowing Standard dart throwing. On each iteration the DartThrowing sampler will try min(N*multiplier,minMaxThrows) samples before termination. Note that for regular dart throwing where simply a maximum number of throws is used to determine the termination point, the multiplier should be set to 0. o BestCandidate Mitchell's Best Candidate algorithm. Uses the multiplier argument. o Boundary Dart throwing by maximizing boundaries. o Pure Dart throwing using scalloped sectors. o LinearPure Dart throwing using scalloped sectors but without sampling regions according to their probability of being hit. o Penrose Ostromoukhov et al.'s sampling method using their quasisampler_prototype.h o Uniform Random point generation. The number of samples to take is calculated as .75/radius^2 to approximately match the density of Poisson-disk sampling. Output format -- Point sets are output in a trivial binary format. The format is not intended for distribution and does not encode the endianness of the generating platform. The format matches the pseudo-C struct below: struct { int N; // number of points float t; // generation time float r; // radius used in generation int isTiled; // flag for if the set is tileable float points[N][2]; }; Acknowledgments -- Thanks to Ares Lagae for comments on a preliminary release of the code, Ostromoukhov et al. for making available their quasisampler implementation, as well as Takuji Nishimura and Makoto Matsumoto for their Mersenne Twister random number generator.

近期下载者

相关文件


收藏者