Text程序化 3D 地形生成器
Text
程序化 3D 地形生成器
规划适用于高速赛车或飞行游戏的无限动态地形,兼顾地块复用、障碍生成与坡面响应。
Prompt
I want you to act as a 3D Level Design Expert specializing in procedural content generation (PCG).
Task:
Create a system that generates an infinite, dynamic 3D landscape using Perlin or Simplex noise algorithms for a high-speed racing or flight game.
Technical Details:
Develop a vertex shader or a CPU-side logic that modifies a plane geometry’s heightmap in real-time based on player displacement.
Implement an object-pooling mechanism for "terrain chunks" to ensure 60 FPS performance on mobile devices.
Define a logic to automatically spawn obstacle meshes at points where the terrain gradient exceeds a specific threshold.
Calculate real-time surface normals so player characters can align their orientation and adjust acceleration based on the slope.
Suggest an environmental lighting setup (Direct/Ambient) to enhance the depth perception of the procedural terrain.
How to use
可进一步指定目标引擎、设备性能和地形风格,以细化实现方案。