How does one get started with procedural generation?

后端 未结 9 1461
借酒劲吻你
借酒劲吻你 2021-01-29 16:56

Procedural generation has been brought into the spotlight recently (by Spore, MMOs, etc), and it seems like an interesting/powerful programming technique.

My questio

相关标签:
9条回答
  • 2021-01-29 17:50

    Procedural content generation is now all written for the GPU, so you'll need to know a shader language. That means GLSL or HLSL. These are languages tied to OpenGL and DirectX respectively.

    While my personal preference is for Dx11 / HLSL due to speed, an easier learning curve and Frank D Luna, OpenGL is supported on more platforms.

    You should also check out WebGL if you want to jump right into writing shaders without having to spend the (considerable) time it takes to setup an OpenGL / DirectX game engine.

    Procedural content starts with noise.

    So you'll need to learn about Perlin noise (and its successor Simplex noise).

    Shadertoy is a superb reference for learning about shader programming. I would recommend you come to it once you've given shader coding a go yourself, as the code there is not for the mathematically squeamish, but that is how procedural content is done.

    Shadertoy was created by a procedural genius, Inigo Quilez, a product of the demo scene who works at Pixar. He has some youtube videos (great example) of live coding sessions and I can also recommend these.

    0 讨论(0)
  • 2021-01-29 17:50

    Procedural generation is used heavily in the demoscene to create complex graphics in a small executable. Will Wright even said that he was inspired by the demoscene while making Spore. That may be your best place to start.

    http://en.wikipedia.org/wiki/Demoscene

    0 讨论(0)
  • 2021-01-29 17:51

    Procedural Content Generation wiki:

    http://pcg.wikidot.com/

    if what you want isn't on there, then add it ;)

    0 讨论(0)
提交回复
热议问题