For a while there it really looked as though I was on top of this whole blogging lark, didn't it?
The problem is that writing this blog (and to an even greater extent, working on the Clockwork Aphid project) doesn't feel like procrastinating. It feels like doing something. Not working exactly, but definitely making an active contribution.
As a result, if there's something else I'm supposed to be doing with my time, I have a really hard time working on either without the guilt setting in (it's happening right now). This doesn't stop me from dicking around on the web,
The return train ride after a visit to my parents' house is, if anything, more pleasant that the outward journey. This is not least, of course, because it ends in Edinburgh, rather than Doncaster*. Be that as it may, this is perhaps a good time to pick up the thought I left hanging at the end of my last entry, in which I talked a little about ways of keeping notes and writing down ideas. Having dealt with information, we now come to action. From stasis, to process. Less obliquely: what, exactly, are you going to do about those ideas?
Some of the particularly sharp/anal ones amongst you might have noticed that while the technique for generating fractal lanscapes I previously described works (and works well), it's not 100% correct. Specifically, the fact that it uses the the same scaling factor for nodes created by the diamond and square steps isn't quite right.
Why is this? Because they generate nodes which adhere to different levels of detail, that's why. Lets go back to that last diagram from the post which described the algorithm:
Now while you'll note that both steps add nodes that can be addressed using fractions with
It took a little bit of fighting with bugs that weren't showing up in the 2D view, and a bit of time to figure out what was going on with the lighting system in JME, but I finally got the 3D display of the fractal landscapes working.
The first stage was just displaying each node as a discrete point so I could see that each was in about the right place. It looks a little bit like this:
I did this by simply piping the spatial coordinates and colour information of each node into a pair of standard Java FloatBuffers
I don't have any 3D views of the fractal landscapes I've been making to show you yet, as I'm still working through the different implementation options. I did get a little distracted with the 2D views of the landscape this morning, though, and play with the colouring scheme.
First of all, let's start again with the example landscape used in yesterday's post, only with slightly more sober colours and a bar on the right showing how the height values map to actual colours:
Now that looks reasonably neat already, in a "my first atlas" kind of way, but