webdreamer
webdreamer

Reputation: 2499

Procedural skydome

Does anybody know how to or where I can find info related on how to do a procedural skydome? Any help is welcome.

Upvotes: 4

Views: 2894

Answers (2)

Martin
Martin

Reputation: 12403

A skydome is simply a sphere, drawn around the entire level. Just draw a sphere, make sure back face culling is off, and front face culling is on (since you're inside the sphere).

To procedurally generate a sphere is trivial, my usual approach is to start with a hardcoded Icosahedron and subdivide the faces until the required detail is reached. There is a thread on gamedev about generating a sphere: http://www.gamedev.net/community/forums/topic.asp?topic_id=537269

I'm not sure that really answers your question, seeing your response to the other answer makes me think there is some confusion about what a skydome is. To reiterate it's just a sphere, the important bit is the texture you draw on it.

Upvotes: 2

Jeff Foster
Jeff Foster

Reputation: 44706

See this thread from GameDev. There's some example code in C++ in there too.

Upvotes: 3

Related Questions