I'm working on a multiple rings galaxy generation script. Everything works fine but one thing: two of the rings partially repeat themselves with an offset from the planned position. I guess it's only a logic mistake but I just can't find out!
You can look at these images for a better understanding:
http://www.amelora.com/galpict2.jpg (even more obvious!)
On these images I called only the functions generateEllipse (galpict1) and betweenEllipses (galpict2)
My code is in VB6 but should be easy to translate if needed.
You can get the source at:
If you want to get the result from the images you have to choose "Final" mode. Be warned that this is a long process. On my Quad Core CPU it take 90sec. If you want to make it faster, lower the stars number in "btGenGal_Click". Note that right now, the only one which execute is "betweenEllipses". If you want to try the other functions, just uncomment.
If you want to save the resulting image, make sure you have a folder named "C:Temp" or change the path in "Command5_Click". Be warned that the resulting file will be a 250MB bitmap (.bmp).
Any help would be appreciated.
P.S.: Unfortunately the itknowledgeexchange's text editor wasn't working when I wrote this question so I couldn't put direct links in the text and was forced to put manual line breaks. So I'm sorry if it appear weird on your screen!