Рет қаралды 9
Like Star Trails, I have built similar software for Sun Trails to be shown on @OddonomousSpace . The last before I get into the boring required parts.
This actually has all the same changes as per the star trails program last week. However there's a "Sun" too. Not really a sun but it's the best I can get to get the software to run within a day.
This pattern is X-Add, Y-Add and Z-Collapse-Bounce. X is increment, Y is increment and Z does a special thing called a "collapse and bounce". The higher the Z amount, the faster it gets smaller. The bounce part means if it reaches an extreme (0 or 100%) then it will do an "expand" and vice versa. Expand, the lower the number the bigger it gets.
The Sun itself takes a very long time to run which is why it is so simple. It is limited to 1000 pixels and the edges used to be transparent to give a "glow" affect. However it just looks like a solid line if I did this. So now the brightness slowly moves to 0 after two thirds. Circles are actually the slowest to make especially if they get too big. Rather than simply setting a dot incrementally, each dot has to be calculated using the circle formula sqrt(x^2 + y^2). 4 calculations rather than 1, just add.
Like with Star Trails I had to simplify the sound. As we aren't creating 32 objects at the same time it takes a lot longer to do anything. Refer to last week in to why it is all one object.
The background is always done different, something I built into the software early on. Backgrounds are the first to be drawn and are fixed. Which is why I sometimes appear to have some complicated videos for simple things. The underground bubbles is a good example of that. There's a colour of sand and across the entire background it has a random brightness of that one colour. The bubbles appear to have the same detail; no I cheated they're just slightly transparent.