Home

Video Art

April 1, 2013

Just a quick post with some of the best digital video art I’ve come across. Heavy focus on geometry, algorithms and abstract imagery. In no particular order:

Book Reviews [2]

February 24, 2013

I’ve read some more since my last book-related post, though not as much as I’d have liked. First the ones without any redeemable quality. I’m not even going to upload cover pictures for these, try and avoid them if you can at all:

  • Kathy Reichs; Flash and Bones (typical popular tripe, happens to be a No. 1 best seller)
  • Jeff Abbott; Cut and Run (typical popular tripe, not a best seller per se, but certainly written by an author who wrote other best sellers)
  • Michael Ridpath; 66° North (typical popular tripe feeding on wide-spread antipathy in the wake of the financial crisis, books fails miserably to deliver on tagline “In Iceland, revenge is best served at arctic temperatures…”)
  • Ruth Rendell; Not in the Flesh (I’m increasingly annoyed by the tendency in modern detective stories and tv series to let the murderer kill everyone before the detective in charge finally arrests the one remaining suspect on account of all the others being dead, put some frikkin’ thought into it already and solve the case before 4 more people die).
  • Robert Ludlum; Bourne Trilogy (typical popular tripe, highly repetitive writing. All of them international best sellers obviously) I’m amazed how the movies have absolutely nothing in common with the book apart from a few character names).
  • Seth Godin; Linchpin (Self help bunkum, normally I quite like Godins books, but this one was hogwash).

Now for the middling to good stuff, in no particular order.

Read the rest of this entry »

NVAL2 discovered

January 5, 2013

Gene for poor science journalism discovered.

Now the hunt is on for NOVO2, the gene that causes certain men to drop their voice tonality to unnaturally low bass levels while uncontrollably spewing exaggerated and sensationalist clichés like “killed everything in its wake” and “destruction on a scale never before seen by scientists”.

For a while now I’ve been thinking about computer game worlds. Although my schedule is overflowing with things I ought to be doing, I’m unfortunately the kind of person who cannot properly work until a competing train-of-thought has been dealt with. Hopefully writing this post will put my mind at ease long enough for me to focus on writing an article for AD magazine, recording and editing my acceptance speech for the Acadia 2012 award for innovative research, finishing the new RhinoScript compiler for Rhino5 and trying to go hiking a few more times before winter truly arrives.

Aaanyway… computer games. I used to play a lot on my father’s Acorn computer. Think early 1990′s. Mad Professor Mariarti, Starfighter 3000, Spheres of Chaos, Lander, Tower of Babel, Lemmings, Super Foul Egg, NebulusCataclysm …. the list goes on. Good times. Then nothing much until I got an XBox console about 2 years ago, but even there I log maybe 4~5 hours a week. Maybe.

The Lander game on Acorn Risc Os.

It is quite shocking how much the graphics and physics of games have advanced in this time-period, but equally shocking how little progress has been made with regards to fun. But that’s a story for another blog-post. Increases in storage, memory and processing over the past 20 years have allowed game developers to create humongous worlds for games to be acted out in but as far as I know most —if not all— commercial games have hand-crafted worlds which puts a limitation other than hardware on the size of a game; namely the amount of work needed to design and draw the geometry involved.

I’m reasonably familiar with the worlds of Red Dead Redemption and Just Cause 2. Although both are very big by my old-fashioned standards, they aren’t nearly big enough to truly give a feeling of boundlessness. If you spur on your horse you can ride across the entire RDR world in 5~10 minutes. And although the world in JC2 is much bigger, it’s extremely repetitive and therefore travelling loses its meaning. Although I am sure that the world-builders use/write algorithms to automate tasks (such as placing plants or rocks), it seems that these algorithms are not used to generate data during game play.

For a long time now there have been landscape generators available and some of them appear rather impressive, however it seems most of them are mere proof-of-concepts that fall well short of actually generating enough data to challenge the quality of hand-crafted worlds. I acknowledge it is very difficult to generate terrain, vegetation, plant-life, roads, settlements and all the other things needed for a full blown open-world game. But let us assume this nut has been cracked and that we can generate an endless amount of unique landscape based on a finite collection of settings. Let us call these settings the Terrain-tensor (τ). It may contain properties to do with soil, vegetation, roughness or a myriad of other characteristics. How would we apply such a terrain generator? It will most likely be quite computationally expensive to generate large terrains to the level of detail we’ve come to expect. Although far-away parts of the world need only be generated in low-poly approximations, it still seems like an uncomfortable sacrifice to spend cycles on generating a large world if that results in a marked decline in visual quality.

Another problem with generating a large ‘flat’ world is that you can often see a long way. The world is there, you can see it, you can ride around in it as far as you want. In such a case, the only benefit to having a world-generator would be to remove the boundaries of the map and although the game may now well be infinite, you can only travel so far so fast, and you can therefore only encounter new environments at a fairly limited rate.

But what if you cannot see very far? In that case the world generator would not be constrained much by what it is already showing you. It could adapt the τ and generate an environment that is actually controlled (in part or in whole) by the actions of the player. Fog or darkness would be one way of limiting the information given to the player, but I was thinking of something a bit more interesting:

We’re all very familiar with what it feels like to be on a spherical world. It’s just that our real world is so big that for all intents and purposes it might as well be flat. The radius of the Earth is roughly 6000 kilometers meaning that for every kilometer we travel in a straight line the surface of the Earth drops about 5 centimeters due to Earth’s curvature. Typical landscape on Earth has a larger curvature. What if we shrink the size of the world? What would it feel like to be on a globe with a radius of 10km, 1km, 100m, 10m? There are two interesting visual distances associated with a spherical world; the distance to the horizon (dH) and the distance to the furthest visible object behind the horizon (dF). The former distance represents the area completely visible to the player; the local world. The latter distance represents the area that is fixed at any given time; the global world. Anything beyond dF though must be generated when the player moves in that direction and of course the τ for this newly generated piece of landscape is up for grabs.

There are three numbers that define dH and dF; the radius of the world (r), the height of the largest object (h) in the world and the elevation of the camera (e). Let us write down some equations that describe the relationships between these numbers, all the while assuming a perfect spherical planet.

dH = squareroot((r+e)2 – r2)

α = arccosine(r/(r+e))

dHw = 4π2r/α

AH = 4πr2 sine2(α/2)

dF = dH +  squareroot((r+h)2 – r2)

β = α + arccosine(r/(r+h))

dFw = 4π2r/β

where:

dH = the distance from the camera to the horizon.

α = the angle between the camera and the horizon as measured from the planet centre point.

dHw = the distance along the planet surface from the camera to the horizon.

AH = the surface area of the visible ground (everything inside of the horizon).

dF = the distance from the camera to the tip of the furthest visible objects.

β = the angle between the camera and the furthest visible objects as measured from the planet centre point.

dFw = the distance along the planet surface from the camera to the furthest visible objects.

The whole point of using a spherical world is that it limits how much of it you can see at any given time. However this characteristic dissipates as the world radius grows larger. However a very small world is problematic too as the objects on it will be relatively large and thus there will be very little ‘undefined’ area left over. Also, a small world does not allow for big terrain. You cannot grow a 30 meter cliff face on a planet with a radius of 20 meters without it looking very silly indeed.

So let’s say we have a world with a radius of 50 meters and the camera is 4 meters above the ground, which is a fairly typical elevation for a third person game. We’ll populate our world with trees and buildings, but no massive landscape features, so we’ll limit the highest objects to 15 meters.

These values put the horizon roughly 20m away and the furthest visible objects roughly over 60m. The total world area is a little over 30,000m2, of which a bit less than 1200m2 is visible, which is roughly one thirtieth. The length of the horizon is about 120m and the length of the defined world boundary is nearly 300m. So let’s say we walk 60 steps in a random direction. This will put us at the old world boundary. Half of what we see now we’ve seen before, the other half has been generated while we walked. There was no constraint to the τ (the terrain-tensor) for this newly generated landscape, though we do want it to conform somewhat to the landscapes it borders on.

Since we’re moving along the surface of a sphere, our landscape is two-dimensional. This means we can draw a two-dimensional tensor field where certain coordinates for a fixed τ. Between these coordinates terrain tensors can be interpolated:

Now if we move along our surface world, we can use this tensor-field to determine what new landscapes to generate at the boundary. But even more interestingly, we can generate a new tensor field based on the game play history. For example, imagine we’re standing in the middle of a field and we walk in a straight line due North. After 60 steps we’ve reached the old boundary of the world (i.e. where the boundary was before we started walking) and before us we see a giant swamp. Now we walk 60 meters due South until we’re back where we started. The swamp has disappeared beyond the visible boundary and we’re back in the field. Now we walk 60 steps in the NNE direction, very similar but not identical to the earlier path taken. Now, instead of a swamp, we’re greeted by a thick forest, even though we’re only ~15m away from the point where we turned around not so long ago. This should not be possible, but because we can generate brand new landscapes along the visual boundary, our spherical world in fact behaves as though it has a large negative curvature, rather than the positive curvature we’d expect from a sphere. After all, what we’d expect from a sphere is that if you walk in a straight line, no matter what direction you walk in, eventually you’ll always end up in the same spot, i.e. directly opposite the point from where you started.

In practice this principle could be implemented in a number of ways. It could be that the walking direction always affects the τ along the boundary. Or it could be that only certain gateway paths result in a change in τ. Think of it as being stuck on a small constant world, and eventually walking into a completely different, but also constant world once you’ve figured out how to get there. It is even possible to change the size and topology of the world itself, growing it or shrinking it as one navigates its surface.

Like I said, a half-arsed idea. It needs a lot of work but I’m not a game developer and I hope I can stop thinking about this now. If anyone ever implements this idea —or an idea vaguely like it— I’d love to try it out.

Biology (especially evolutionary Biology) and Cosmology have always been interests of mine. My level of understanding in either field is probably best described as “blundering amateur”. I am not able to parse —let alone make use of— equations such as one would find in Relativity, Quantum Mechanics, Thermodynamics or Game Theory. I am however a firm believer in the notion that pretty much everything can be explained* through regular language without recourse to mathematics.

I am at the same time disgusted by the sensationalist approach of many documentaries made these days by the likes of Discovery Channel & National Geographic. I switch over almost immediately whenever I’m confronted with a gravelly voice prophesying destruction on a scale hitherto unimagined by scientists ‘when we return after these messages’. Fuck you Discovery Channel for ruining science by removing that which is best about it; knowledge. Even the quality of BBC documentaries has plummeted to lamentable depths over the past decade, which is clearly the most glaring sign of the upcoming apocalypse we could ever hope to get.

At least there is an ever growing number of individuals and small groups who are making quality stuff and distributing it on YouTube and the like. Potholer, Sixty Symbols and Ozmoroid are just a few examples of people who make some excellent content that is free for all. We also see more and more universities recording lectures and putting them on social media for all to see.

Last week I stumbled upon a lecture series by Sean Carroll (from CalTech) about Dark Matter and Dark Energy, two topics about which I knew preciously little. These lectures (24 × half an hour each) are unfortunately not free —they are in fact rather pricey— but they are excellent. Carroll is by far the most intelligible lecturer I know on topics as complicated and unintuitive as Big Bang Cosmology, The Standard Model and Dark Matter/Energy. I have a feeling he pulled as few punches as humanly possible and despite the very high information content, Carroll remains calm and composed. The script is well written (except for a few rather lame jokes) and seems exhaustive in terms of both factual and historic content. I especially liked his treatment of the WMAP data of the Cosmic Background Radiation. It is quite shocking how much information there is embedded in this one image.

Wilkinson Microwave Anisotropy Probe data

Carroll explains what we know for sure to be true, what we think might be true, what we suspect could be true, what we know couldn’t possibly be true, what we’ve yet to know and how we came to know these things. I highly recommend this production for those who wish to learn more about the ‘Dark Side of the Universe‘.

* if one wishes to teach rather than merely explain, I concede that mathematics is often unavoidable.

I’ve been living in Poprad, Slovakia for about 3 years now. I knew the place well since I used to visit throughout my childhood with my parents, but I’ve only ever been here while in holiday mode which is not the same as living mode. One of my main gripes about the place is that it’s difficult to get good food and good ingredients. The supermarkets sell very standard stuff and I have to frequent all of them because they specialize in different categories (Billa has good ham, Kaufland good veggies, Tesco is better at cheese and alcohol, HyperNova does good wine and ground meat etc.). The local market is rather pathetic in terms of selection. The overwhelming majority of restaurants and diners in this country are dismal as well. You’re usually fine while ordering mashed potatoes and schnitzel, but anything involving spices or good meat will almost certainly be a disappointment.

Imagine my elation when we found a fantastic place at walking distance from our home, quite by accident about a year ago. The serving staff speak decent English, the restaurateur is passionate and the chef is a genius. He has the knack of creating a dish around a key ingredient without exaggerating the taste. I know that sounds easy, but I doubt it is.

Today we attended a special tasting menu based on Slovak traditional ingredients and wines, and I was surprised to learn how many good ones there are produced here. The following list is mostly for my own reference. The wines were all selected from two native wineries; Ostrožovič and Vino Nichta. There were a total of six courses, each accompanied by two selected wines.

Read the rest of this entry »

Limbo

May 9, 2012

Having been scolded earlier by visose for even daring to touch my Xbox rather than type code, I decided to put some oil on the flames. Most of the games I bought for my Xbox have been somewhat of a let-down. Mirror’s Edge, good concept, but too repetitive (and bloody ninjas). Just Cause II, way too repetitive and even more bloody fucking ninjas. Battlefield 3, utter bunkum, as previously mentioned, despite having no ninjas.

Now however I have finally been able to download Limbo by the small Danish game development studio Playdead. Limbo is both gorgeous and highly sinister. As a software developer I’m very impressed by the minimalistic approach. There are only six controls (left, right, up, down, jump & action), yet the versatility of the main character is quite amazing. There is nothing on the screen except the playing field. No health-bars, no compasses, no maps, no text, no music, hell not even colours. Truly a Zen-experience.

The game is also pretty damn bleak. The main character is clearly a young boy, and the best way, indeed, sometimes the only way, to find out new information about the levels is to kill him in innovative ways. Pretty much every entity you come across —including other young boys— will unfailingly try to murder him as well. Most deaths are fairly gruesome and the sheer frequency with which they occur turn the gaming experience into a decidedly Kafkaesque interpretation of Limbo.

Header Images

April 25, 2012

Decided to put up some header images today to make the blog a bit more human and a bit less programmer. These are photos I took in the summer of 2005 in the High Tatra mountains on the border between Slovakia and Poland. The images were once on a sub-domain of my old site (reconstructivism.net), but that one no longer exists and I’ll be buggered if I’m going to put it all up somewhere else. Here however are some of the ones I liked best available for download again.

Read the rest of this entry »

Dear Mr. Spielberg,

most of what they tried to teach me during gymnasium Latin classes has long since evaporated from my memory. I no longer remember how to conjugate verbs and I’ve forgotten the bulk of my meagre vocabulary. Luckily though we also often discussed Roman and Greek history, religion and mythology which imprints itself onto one’s psyche with far greater ease. One of the stories from Greek mythology that most affected me concerned the brothers Kleobis and Biton, who were the sons of a priestess to Hera. One day, their mother was scheduled to perform a ritual at a temple and the oxen that were supposed to pull the cart were delayed. Kleobis and Biton pulled the cart instead with near super-human strength and endurance. So impressed was their mother that she asked Hera to award her sons the greatest of gifts a God can give a mortal. The following morning Kleobis and Biton were found dead in their room, they had died a painless death in their sleep, at the prime of their lives.

It cannot be reasonably denied that your work has had a major impact on modern cinema and you’ve certainly directed some of the most innovative and ambitious films that have graced the silver screen. Nobody’s track record is flawless and neither should it be. You —like every other human being— needs to be given the latitude to make new mistakes and gratitude once you’ve made them, so that all of us can be the better for it.

That being said, there are times when one must tread extra carefully because the subject matter in question is not yours alone. When you decided to turn The Adventures of Tintin into a full length film, you should have realised that this story belonged not just to you, but to all of us. What you have done amounts to nothing less than pillaging. The dissolution of a comic book series that so many of us have come to love from early childhood. There is no excuse for this. No rationalisation that could possibly mitigate the magnitude of this crime.

Mr. Spielberg, please stop making movies before you mutilate your legacy beyond recognition.

Book Reviews

April 8, 2012

In case anyone is looking for a book to read, allow me to review some of the books I recently finished.

Read the rest of this entry »

Follow

Get every new post delivered to your Inbox.

Join 89 other followers