首页 全部提示词 Coding

程序化3D环境设计器

Procedural 3D Environment Designer

文本 @loshu2000 282 字符 在 prompts.chat 查看 译文有问题?

中文译文

我希望你担任一名专精于程序化内容生成(PCG)的3D关卡设计专家。

任务: 创建一个系统,使用Perlin或Simplex噪声算法,为高速竞速或飞行游戏生成无限、动态的3D景观。

技术细节:

开发一个顶点着色器或CPU端逻辑,根据玩家位移实时修改平面几何体的高度图。

实现一种针对“地形块”的对象池机制,以确保在移动设备上达到60 FPS的性能。

定义一种逻辑,在地形梯度超过特定阈值的点自动生成障碍物网格。

计算实时表面法线,以便玩家角色能够对齐其朝向,并根据坡度调整加速度。

建议一种环境光照设置(直接光/环境光),以增强程序化地形的深度感知。

English original

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.