Linux command
pgmcrater 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Generate crater terrain
pgmcrater -number [5000] > [output.pgm]
Specify dimensions
pgmcrater -width [512] -height [512] -number [1000] > [output.pgm]
说明
pgmcrater generates synthetic terrain populated with impact craters and outputs it as a grayscale PGM heightmap rendered via shaded relief. It is useful for creating planetary surface textures and procedural terrain. As of Netpbm 10.27 pgmcrater is obsolete; it is now a thin wrapper that pipes pamcrater into pamshadedrelief and pamtopnm. Prefer those primitives for new workflows.
参数
- -width _n_, -xsize _n_
- Output width in pixels (default 256).
- -height _n_, -ysize _n_
- Output height in pixels (default 256).
- -number _n_
- Number of craters to generate.
- -gamma _g_
- Gamma correction value applied to the shaded relief output.
- -randomseed _n_
- Seed for the random number generator; use a fixed value for reproducible output.
FAQ
What is the pgmcrater command used for?
pgmcrater generates synthetic terrain populated with impact craters and outputs it as a grayscale PGM heightmap rendered via shaded relief. It is useful for creating planetary surface textures and procedural terrain. As of Netpbm 10.27 pgmcrater is obsolete; it is now a thin wrapper that pipes pamcrater into pamshadedrelief and pamtopnm. Prefer those primitives for new workflows.
How do I run a basic pgmcrater example?
Run `pgmcrater -number [5000] > [output.pgm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -width _n_, -xsize _n_ do in pgmcrater?
Output width in pixels (default 256).