• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1410
  • Last Modified:

Algorithm to randomly generate 'spiral galaxy'

I'm trying to come up with an algorithm to randomly generate a spiral galaxy of stars.  Each star will be on a flat 2D plane of x,y coordinates.  This will be used in a computer game I'm making.

What would be my best route to generate this? Is there a type of fractal algorithm I could use somehow? Any thoughts?

Thanks
0
Chumad
Asked:
Chumad
1 Solution
 
sdstuberCommented:
try using a few fractal ferns in rotation  If that ends up too full, or too symmetric you can tweak the algorithm to drop points randomly.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now