Projects

Blogs from friends

bfish.xaedalus.net
a blog, of sorts

The Escapist

The Escapist Forums : Threads
  • Poll: Cute, Hot, Beautiful, or Sexy?

    What exactly is the difference between sexy and hot? I'm not questioning your options, but I never really understood why people use them in different ways..

    on topic: hot. :p

    (the question was how you want other people to see you, right?)

  • Do you hate the game or the people who play it?

    Judgement101:

    Randomvirus:

    Judgement101:
    Red Dead Redemption. It was GREAT until a bunch of douches kept killing players in free roam. I want to kill a damn gang NOT OTHER FUCKING PLAYERS, and the spawn killing, OH THE SPAWNKILLING. If you die once prepare for a hailstorm of deaths, spawn deaths, and being headshoted. Best of all people will go out of their way to piss you off, and its not worth any XP (okay 10XP but that barely justifies it) they do it purely to piss you off.

    As someone who kills people in free roam...

    If you don't want people to have the option of killing you, then start a private match. If all you want is to be one guy alone in a world fighting gangs then use the option the game provides you. And don't play in an open lobby that allows players to murder each other.

    Or form a group / posse and defend yourself.

    Or maybe people like you should play deathmatches instead of killing players who are there for fun. And, again, killing in free roam is done just for the sake of pissing off other players.

    Except that the game itself allows people to do it. Just like it allows you to remove yourself from the general public that may or may not want to kill you.

    The wild west was pretty wild. People were killed for their horses, or land, or women, or because somebody might be too close to a gold claim.

  • Make a baseless assumption about the user above you.

    Is a hermaphrodite.

Gallery
Voronoi tiling art PDF Print E-mail
Written by Mat   
Wednesday, 30 September 2009 20:23

These tessellations have all been generated by a very simple FreeBASIC program that I wrote.

I stumbled upon this algorithm while searching for a way to generate stochastic terrain heightmaps for a 3D strategy game, and realised that it could be made to produce pretty 2D pictures.

See: Voronoi diagram at Wikipedia.

The algorithm is as follows: start by placing a number of control points in random positions in the image, and assign each one a primary colour. Then for each pixel of the image, the colour of that pixel is set to the colour of its nearest control point, and the brightness of the pixel is set to the difference between the distance from the pixel to its nearest control point and the distance from the pixel to its next nearest control point.

Numerous variations on the algorithm exist: instead of using control points, other geometric objects can be used such as line segments or circles, which both result in curved edges. Also, instead of using Pythagoras to compute the distances, other methods can be used such as the Manhattan metric or the chessboard metric, and these result in more right angles.

It is possible to achieve a finer granularity in the spectrum of colours used, by mixing together two or more layers of tilings with various weights and numbers of control points.

Tiling Tiling Tiling
Tiling Tiling Tiling
Tiling Tiling Tiling

Last Updated on Thursday, 01 October 2009 20:12