R
R
Robotex2013-03-27 13:31:55
Algorithms
Robotex, 2013-03-27 13:31:55

How to adapt Diamond Square algorithm for spherical surfaces?

I came across this algorithm on habrahabr.ru/post/111538/ and it turned out that it is suitable for my task. True, in my case, it is necessary to generate a landscape not on a flat rectangular surface, but on the surface of a sphere (a planet in space). How can this algorithm be adapted to this task?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
cjey, 2013-03-27
@cjey

It seems to me that it is enough to switch to spherical coordinates, take into account the closedness of the surface and smooth the surface depending on the circumference for a given latitude.

C
cjey, 2013-03-27
@cjey

How do you draw your planets? 3d, 2d? OpenGL, Direct3D, own implementation?

R
Robotex, 2013-03-28
@Robotex

How can this be done using OpenGL?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question