Galaxy types...
Moderator: Committer
Galaxy types...
So I thought an easy place for me to jump in is with the galaxy types. I heard it said that some want it in, so I thought I could write them to learn the system and get familiar with everything. So I've started with spiral and I'm was just wondering is there an idea of what these should look like. I'm currently using Bezier curves but I'm going to switch to b-splines for the better control of the base shape. Should these curves make complete spiral revolutions or only half a revolution. There end up being a lot stars packed in the arms really close together and the longer the arm the more sparse it will get. Also do we want a greater weight towards the center?
(If the leads decide they don't want this in for 0.1 then it can stay out untill later, its still a good place to jump in.)
Tim
(If the leads decide they don't want this in for 0.1 then it can stay out untill later, its still a good place to jump in.)
Tim
Tim
-
- Creative Contributor
- Posts: 314
- Joined: Tue Aug 26, 2003 6:10 pm
- Location: Amidst the Inferno.
If you want to read up on what galaxies tend to look like in the real world, I can give you a couple of links.
Here is a good overview, and here is a more specific explanation of what they tend to do over time.
A good general model is "the larger the bar the more young stars."
Here is a good overview, and here is a more specific explanation of what they tend to do over time.
A good general model is "the larger the bar the more young stars."
Time flies like the wind, fruit flies like bananas.
Will do
I'm on it... Two questions... Can you point me in the right direction to...
1. Randomize your random funcitons (I get the exact same galaxy every time)
2. Set the system type with parameters. I assume star_type_gen() does this, but I might like to fiddle with it to set it according to length out on the arm. Do I just replace that with my own value.
EDIT: Oh and when is 0.1 suppsed to be "complete".
Thanks and I'm having fun...
Tim
1. Randomize your random funcitons (I get the exact same galaxy every time)
2. Set the system type with parameters. I assume star_type_gen() does this, but I might like to fiddle with it to set it according to length out on the arm. Do I just replace that with my own value.
EDIT: Oh and when is 0.1 suppsed to be "complete".
Thanks and I'm having fun...
Tim
Tim
Re: Will do
No. Later on, when we actually release a finished product, we should do that. For now, determinism helps with development. If you want to test different configurations, try different seeds, or try using the clock as a seed value. Check out the code in Random.h; the seed should be fairly obvious. Please do not commit any changes to Random.h at this point though.modulus wrote:I'm on it... Two questions... Can you point me in the right direction to...
1. Randomize your random funcitons (I get the exact same galaxy every time)
star_type_gen is just an instance of a random number generator. Roll your own based on the comments in Random.h.2. Set the system type with parameters. I assume star_type_gen() does this, but I might like to fiddle with it to set it according to length out on the arm. Do I just replace that with my own value.
Who knows? Two or three weeks I hope, but probably longer.EDIT: Oh and when is 0.1 suppsed to be "complete".
Re: Will do
Yeah I figured that, I meant locally for testing...tzlaine wrote: No. Later on, when we actually release a finished product, we should do that. For now, determinism helps with development. If you want to test different configurations, try different seeds, or try using the clock as a seed value. Check out the code in Random.h; the seed should be fairly obvious. Please do not commit any changes to Random.h at this point though.
Thanks for the help,
Tim
Screen shots
How can I post screen shots to get oppinions... Its completely adjustable right now so it would be a good time for input. I have two three and four.
Tim
Screen shots
Yeah its the site thing thats the issue... My server doesn't have web up yet (at least not secure)... I guess I'll create a yahoo acct...
Tim
Images
OK heres the images... hope they aren't too big... There is a small issue with the 3 arm which I can fix easily (running off the map). You will notice I put a star in each corner to indicate bounds. I haven't done the proper aging yet where stars in the middle are redder. That is a simple linear interpolation though. I follow a bezier curve and then randomly offset by a scalar of the normal (weighted towards 0).
Tim
-
- Space Kraken
- Posts: 125
- Joined: Fri Aug 22, 2003 4:02 pm
- Location: Here.
Stuff
I can weight them towards the center easily. As for which you like, each is an individual option (2,3,or 4 arm) so tell me how to improve each on an individual basis....
If the actual curve is non appealing I can modify it... I'm trying to get away with Bezier but may have to switch to b-spline for better control in the middle.
If the actual curve is non appealing I can modify it... I'm trying to get away with Bezier but may have to switch to b-spline for better control in the middle.
Tim