<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">]>
<rss version="2.0" xml:base="http://www.cokeandcode.com">
<channel>
 <title>kevin&#039;s blog</title>
 <link>http://www.cokeandcode.com/kevsblog</link>
 <description></description>
 <language>en</language>
<item>
 <title>Progress Report #1232</title>
 <link>http://www.cokeandcode.com/node/1429</link>
 <description>&lt;p&gt;At work I have to provide a progress report. It details what I&#039;ve achieved and what I&#039;m going to do. Seems to help keep me moving (I dread the idea of filing a progress report that says this week I&#039;ve mostly achieved nothing) so I thought I&#039;d try it here.&lt;/p&gt;
&lt;p&gt;All past game attempts are currently on the cutting room floor. I need to make some cash so I&#039;m gonna try my hand at money making games for a bit. Current plan includes and is probably ordered in priority:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Finish reviewing 4K games for the contest. These need to be done by next week and I&#039;m only about a third of the way through.&lt;/li&gt;
&lt;li&gt;Do the Slick bug run. I know I know, there are lots of bugs outstanding and I will be getting to them ASAP.&lt;/li&gt;
&lt;li&gt;Start porting some of my mobile creations to Flash with a view to selling them on. Hopefully this will be reasonably easy using Flex and FlashDevelop&lt;/li&gt;
&lt;li&gt;Facebook games, I have a few ideas here and I think I&#039;d like to give them a go. It seems like a place you can make an impact pretty quickly if you get it right and looking around some other indies I can see some extensions to existing ideas that might fit the facebook platform pretty well.&lt;/li&gt;
&lt;li&gt;Finally the circle art game. I have this art farty idea about a game with circles. Thats about all I have but there will be lots of circles. Possibly in different colours. I&#039;m sure it&#039;s going to be great :)&lt;/li&gt;
&lt;/ul&gt;
</description>
 <category domain="http://www.cokeandcode.com/taxonomy/term/6">Code</category>
 <category domain="http://www.cokeandcode.com/taxonomy/term/10">Geek</category>
 <pubDate>Wed, 10 Mar 2010 16:17:44 +0000</pubDate>
</item>
<item>
 <title>Importand step in Android for Games</title>
 <link>http://www.cokeandcode.com/node/1428</link>
 <description>&lt;p&gt;Just read on the google blog that a new release of the NDK (release 3) has been made available. The NDK really hasn&#039;t been getting the press it deserves but this latest release should be of great interest to games developers.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;http://android-developers.blogspot.com/2010/03/android-ndk-r3.html?utm_source=feedburner&amp;amp;utm_medium=feed&amp;amp;utm_campaign=Feed%3A+blogspot%2FhsDu+%28Android+Developers+Blog%29&amp;amp;utm_content=Google+Reader&quot;&gt;new NDK release&lt;/a&gt; includes native access to the OpenGL stack for applications targeting Android 2.0 or greater. While you might be forgiven for stepping pass this, because we&#039;ve had access to OpenGL via Java APIs all along this really is an important step.&lt;/p&gt;
&lt;p&gt;One of the problems we&#039;ve seen with OpenGL and Java in the past is how noisy the API is (lots of calls) and how slow the native interface is. This native layer finally gives Android developers the chance to write high level scene graph APIs to expose to the Java API and then write tight C OpenGL code underneath. This hopefully gives us all the ability to build games that really utilise the hardware on these new android platforms.&lt;/p&gt;
</description>
 <category domain="http://www.cokeandcode.com/taxonomy/term/10">Geek</category>
 <category domain="http://www.cokeandcode.com/java-games">Java Games</category>
 <pubDate>Tue, 09 Mar 2010 06:53:37 +0000</pubDate>
</item>
<item>
 <title>Is the iPhone really Smart?</title>
 <link>http://www.cokeandcode.com/node/1427</link>
 <description>&lt;p&gt;Smartphones heh? Apparantly there is a sudden surge in the market and we&#039;re all going to be rich! Great. But, um, what exactly is a &quot;Smart&quot; Phone and does everything we currently call Smart Phone really fit the term?&lt;/p&gt;
&lt;p&gt;Smartphones.. what have we got?.... we&#039;ve got 3 serious contenders and a whole lot of cheap but crap alternatives. Blackberry, Android and the ever popular iPhone. So what makes them smart? Outside of the normal &quot;it can do interweb see&quot; and &quot;hey, I can pick up my mail&quot; I think there are a few really SMART things:&lt;/p&gt;
&lt;p&gt;&lt;b&gt;1) Applications&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;One major feature that all the smart phones share, the ability to extend their functionality through 3rd party applications. For quantity of application the clear winner here is iPhone. Astounding! Unfortunately due to Apple&#039;s rather draconian approval process it takes a long time from a new web technology becoming provailant to an application actually being available. Android and Blackberry have significant application numbers and their model seems set to make them more desireable platforms in the long run.&lt;/p&gt;
&lt;p&gt;Applications are cool, cute and fun. But smart? Not very.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;2) Integration&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Integrated applications. Now, thats smart. I add one application to my phone and I get one feature. Install another, and I get another feature. Ha! Brilliant. What if when I installed those two applications together they knew about each other, or at least each others features. Maybe they could work together to get me yet more feature(s)!&lt;/p&gt;
&lt;p&gt;Integration is key to future technologies. One application builds on another on another. We have a chaotic growth of feature set in which we should be constantly surprised by what our smart phones can do for us! &lt;/p&gt;
&lt;p&gt;Unfortunately this isn&#039;t really the case for iPhone. The platform doesn&#039;t lend itself well to this. Nor does the programming environment. The applications are locked down, intentionally for ease of use but this limits the future possibilities pretty horribly.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;3) Aggregation&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;We have integrated applications, what about integarated data? My mail needs to feed my calendar. Ok, thats basic, and I think phones have been doing that for years before smart phones came along. What about twitter and facebook and &lt;insert your network here&gt;. Each new technology/network/fad is going to produce a new set of data. I want the smarts on my phone to aggregate all the incoming data and feed it into my other applications.&lt;/p&gt;
&lt;p&gt;I want location based twitters which enter stuff into my calendar and then remind me and the other participants via email, prompting me to take a video of it which will automatically be fed back into the facebook event. Aggregate my inputs phone! Aggregate my outputs! I want it all to work together.&lt;/p&gt;
&lt;p&gt;It&#039;s all possible, and with the right framework.. well thought out and secure, it&#039;s all going to be possible. Unfortunately a locked down platform with the tight constraints isn&#039;t going to lend itself that way (read iPhone)&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;br /&gt;
So, what makes your phone smart? What is it doing above and beyond exactly what you told it to? How is it using it&#039;s smarts to make your life easier? Does the iPhone really stack up here? Seems more like an mobile gaming and gimmick platform to me? Give me Android! Give me Blackberry! Hell, give me Maemo! Give me a really smart phone!&lt;br /&gt;
&lt;/i&gt;&lt;/p&gt;
</description>
 <category domain="http://www.cokeandcode.com/taxonomy/term/39">Random</category>
 <pubDate>Thu, 18 Feb 2010 12:01:35 +0000</pubDate>
</item>
<item>
 <title>Gym Again...</title>
 <link>http://www.cokeandcode.com/gym2</link>
 <description>&lt;p&gt;Many moons ago when I started this blog one of my earliest posts was about joining the gym. That was what, about 6 years ago? The Gym as an activity lasted a sum total of a month. I think my lack of motivation had a little to do with having no real reason to go to the gym. It just seemed like a &quot;good idea&quot; (tm)&lt;/p&gt;
&lt;p&gt;A few weeks ago I decided I needed to try again. Today and signed up and took my first session. It was great, I actually feel energised and looking forward to going again. What&#039;s different this time? I&#039;m older and have more to gain. First I now have a little girl getting heavier all the time who I have to lift regularly. Seocnd I have a wife who gets more ill every day, there are more things I have to do for her and more of the time I don&#039;t seem strong/fit enough.&lt;/p&gt;
&lt;p&gt;Finally, I&#039;m far far more vain than I used to be. My beer gut is getting embarrasing and not being able to keep up with a simple game of footie is just sad. &lt;/p&gt;
&lt;p&gt;First session, 35 minutes. 5 minutes warm up walking on the tread mill. 15 cardio running. 15 minutes on the weights. Oh, and few minutes &quot;cooling down&quot; which for me means a few stretches, a little bit of walking it off and a hell of lot trying not to vomit.&lt;/p&gt;
&lt;p&gt;Here&#039;s hoping I last a bit longer this time.&lt;/p&gt;
</description>
 <category domain="http://www.cokeandcode.com/taxonomy/term/7">Life</category>
 <pubDate>Fri, 11 Dec 2009 18:51:31 +0000</pubDate>
</item>
<item>
 <title>Lack of Time = Lack of Progress?</title>
 <link>http://www.cokeandcode.com/node/1425</link>
 <description>&lt;p&gt;Due to work and random life events (read emotional turmoil!) the past week hasn&#039;t really had much in the way of development time for my home projects. I&#039;m still not working on what I should be working on, the space trading game is just too appealing.&lt;/p&gt;
&lt;p&gt;The couple of hours I did get the space trader has a new important feature for a trading game... you can trade!&lt;/p&gt;
&lt;p&gt;&lt;center&gt;&lt;img src=&quot;http://www.cokeandcode.com/federationtrader/images/buyscreen.png&quot;&gt;&lt;/center&gt;&lt;/p&gt;
</description>
 <category domain="http://www.cokeandcode.com/taxonomy/term/6">Code</category>
 <category domain="http://www.cokeandcode.com/taxonomy/term/7">Life</category>
 <pubDate>Tue, 08 Dec 2009 11:16:12 +0000</pubDate>
</item>
<item>
 <title>Status and Navigation Screen </title>
 <link>http://www.cokeandcode.com/node/1424</link>
 <description>&lt;p&gt;Some more progress today (lunch) and tonight. The status screen is now updated to include a customizeable avatar (built out of pieces) on the status screen:&lt;/p&gt;
&lt;p&gt;&lt;center&gt;&lt;img src=&quot;http://www.cokeandcode.com/federationtrader/images/statuscreen.png&quot;&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p&gt;Mostly today I&#039;ve worked on the navigation screen which is you&#039;ll be travelling the galaxy. It looks like this:&lt;/p&gt;
&lt;p&gt;&lt;center&gt;&lt;img src=&quot;http://www.cokeandcode.com/federationtrader/images/navscreen.png&quot;&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p&gt;I think it&#039;s just on the brink of being too complicated. Using the LCARS GUI system is nice though, it seems really obvious where things should fit together.&lt;/p&gt;
</description>
 <category domain="http://www.cokeandcode.com/taxonomy/term/6">Code</category>
 <pubDate>Thu, 26 Nov 2009 22:34:00 +0000</pubDate>
</item>
<item>
 <title>New Game, New Fun, Space - the Final Frontier</title>
 <link>http://www.cokeandcode.com/node/1423</link>
 <description>&lt;p&gt;The RPG has lost momentum, it&#039;s too complicated and I just can&#039;t get it right. I&#039;m spending so much time on other things (yesterday Slick til 2am, tonight XMLVM til 11) it&#039;s just not going anywhere.&lt;/p&gt;
&lt;p&gt;So, I have of course started a new game. It&#039;s not much yet but hopefully should be much more simple to develop since I&#039;m basing it on an couple of existing games. Strangely, the new one is space based, not something I ususally go for. It&#039;s definitely trading related but I&#039;m not sure really what makes it any different to past games - probably not very much. Still, for your viewing pleasure. A quick in game screen shot showing, well, some text:&lt;/p&gt;
&lt;p&gt;&lt;center&gt;&lt;img src=&quot;http://www.cokeandcode.com/federationtrader/images/trek_data1.png&quot;/&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p&gt;And something else I&#039;m playing with, since there will mostly like be lots of crew members to recruit I&#039;m going to need pictures of them.. so a quick avatar building tool with some random resources found online. Yay!&lt;/p&gt;
&lt;p&gt;&lt;center&gt;&lt;img src=&quot;http://www.cokeandcode.com/federationtrader/images/avatarbuilder.png&quot;/&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p&gt;Are you noticing a theme yet? Yes, I&#039;m a big fan.&lt;/p&gt;
&lt;p&gt;Fingers crossed this one will get past the prototype to see if it&#039;s fun stage!&lt;/p&gt;
</description>
 <category domain="http://www.cokeandcode.com/taxonomy/term/6">Code</category>
 <pubDate>Wed, 25 Nov 2009 01:48:53 +0000</pubDate>
</item>
<item>
 <title>Android Resolutions and Games</title>
 <link>http://www.cokeandcode.com/android-resolutions-and-games</link>
 <description>&lt;p&gt;Well, Android 2.0 is here and along with a bunch of other interesting bits and pieces it brings us multiple resolutions - previously all devices were expected to be the 320x480 resolution (G1, G2, Hero, Pulse etc). However, in the new 2.0 we have the 240x320 (HTC Tattoo) and the 480x800 (Motorola Droid). These resolutions seem great for UIs where the controls generally had plenty of space already. However, they may cause problems for games (as they did with J2ME).&lt;/p&gt;
&lt;p&gt;&lt;center&gt;&lt;a href=&quot;http://www.cokeandcode.com/images/screenres.png&quot;&gt;&lt;img src=&quot;http://www.cokeandcode.com/images/screenres.png&quot; width=&quot;240&quot;/&gt;&lt;/a&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p&gt;First, we now have to cope with multiple resolutions. While this isn&#039;t a big problem it does mean for high quality output you need to create assets for the different variants. This can be time consuming and hence costly. The alternative is to change the game layout based on the resolution (more on this in a moment). The SDK has given us some new tools to manage different sets of drawables for different screen dimensions (which is a step better than J2ME) but this really is an overhead we didn&#039;t need in small indie game development. The interesting news is that games written for the standard resoltion are apparantly running and being scaled on the new Droid handset. This is a welcome feature (if it is indeed true) but scaled sprites don&#039;t often look great.&lt;/p&gt;
&lt;p&gt;So, onto the next alternative, and the important one to me. I&#039;m writing an RPG, it&#039;s dungeon based, you might have seen it spammed over everywhere I can get to. The nicest way to adapt to the higher screen resolution would be show more of the dungeon. The game requires you to touch the tiles of the dungeon to have you characters move round. This is similar to many Android games, i.e. you have to touch reasonably small areas on the screen. However, if the resolution grows but the physical screen size doesn&#039;t (or not by much) then these touched areas are going to get physically smaller. Unless your fingers are scalable, this is going to be a problem.&lt;/p&gt;
&lt;p&gt;So.. what to do? Increase the detail on sprites for the bigger resoltions? Hope the for the best and just let it scale. I sorta wonder if this has really been thought out? The net problem seems to be:&lt;/p&gt;
&lt;p&gt;If resolution gets higher, but physical screen size stays the same then the trigger area on the screen will get smaller - and your fingers won&#039;t.&lt;/p&gt;
&lt;p&gt;EDIT: As a friend points out, another issue with these varying screen sizes is that they&#039;re all different aspect ratios. This will make auto-scaling pretty wierd looking. Thin tall dwarfs anyone?&lt;/p&gt;
</description>
 <category domain="http://www.cokeandcode.com/taxonomy/term/6">Code</category>
 <category domain="http://www.cokeandcode.com/taxonomy/term/17">Games</category>
 <pubDate>Thu, 19 Nov 2009 09:34:19 +0000</pubDate>
</item>
<item>
 <title>Yore Map</title>
 <link>http://www.cokeandcode.com/node/1421</link>
 <description>&lt;p&gt;Been working on a some random stuff tonight, not what I should have been working on really.. but a nice bit of relaxation. Yore is going to have an overall story line that leads the player through a non-linear list of quests, hence it&#039;ll need an overworld map. Here it is:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://dl.dropbox.com/u/1668516/screenshots/map.png&quot;/&gt;&lt;/p&gt;
&lt;p&gt;Normally I hell of a time generating anything that looks reasonable as a land mass. All the tools I&#039;ve found in the past have been either too complicated or a pain to work with. This time, after searching again, I ran into the &lt;a href=&quot;http://greenfish.extra.hu/downloads.php&quot;&gt;Greenfish Relief Map Generator&lt;/a&gt;. It&#039;s really a great simple tool and after a bit of GIMP editing I got basically what I was looking for.&lt;/p&gt;
</description>
 <category domain="http://www.cokeandcode.com/taxonomy/term/6">Code</category>
 <category domain="http://www.cokeandcode.com/taxonomy/term/17">Games</category>
 <pubDate>Sun, 08 Nov 2009 22:37:56 +0000</pubDate>
</item>
<item>
 <title>WIP: Yore Quest</title>
 <link>http://www.cokeandcode.com/node/1420</link>
 <description>&lt;p&gt;&lt;center&gt;&lt;img src=&quot;http://www.cokeandcode.com/rpgagain/game2/logo.png&quot;/&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p&gt;This is a little turn based RPG/Adventure I&#039;m working on for Android eventually. It also runs as an Applet. At the moment there&#039;s just a bit of combat and some small scripted pieces. I&#039;ve been trying to write this game for about 4 months now and this is the 5th iteration. Not sure if it&#039;s any better or worse but this is the first time it&#039;s felt slightly playable.&lt;/p&gt;
&lt;p&gt;&lt;center&gt;&lt;img width=&quot;240&quot; src=&quot;http://www.cokeandcode.com/rpgagain/game2/rpg-1.png&quot;/&gt; &lt;img width=&quot;240&quot; src=&quot;http://www.cokeandcode.com/rpgagain/game2/rpg-2.png&quot;/&gt; &lt;img width=&quot;240&quot; src=&quot;http://www.cokeandcode.com/rpgagain/game2/rpg-6.png&quot;/&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p&gt;For this interation there&#039;s a little level designer and some XML based scripting. I&#039;m hoping I can build the scripting into something that I can tell a nice fantasy story with. As you can tell I&#039;m not entirely sure where I&#039;m going but so far it&#039;s been good fun getting here.&lt;/p&gt;
&lt;p&gt;The game is playable &lt;a href=&quot;http://www.cokeandcode.com/rpgagain/game2/index.html&quot;&gt;online as an Applet&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It&#039;s also available for &lt;a href=&quot;http://www.cokeandcode.com/rpgagain/game2/rpg2_23.apk&quot;&gt;Android handsets&lt;/a&gt; (only support for 320x480 res).&lt;/p&gt;
&lt;p&gt;I&#039;m aware of a couple of bugs and expect a bunch of typos. However, I&#039;d really appreciate knowing it works on various browser and/or handsets. Also ideas on how to extend and improve it. Currently the turns feel a little broken up and it&#039;s easy to get your characters in situation where they&#039;re getting pounding with no support.&lt;/p&gt;
&lt;p&gt;Of course, any feedback is appreciated,&lt;/p&gt;
</description>
 <category domain="http://www.cokeandcode.com/taxonomy/term/6">Code</category>
 <category domain="http://www.cokeandcode.com/taxonomy/term/17">Games</category>
 <pubDate>Tue, 03 Nov 2009 23:36:04 +0000</pubDate>
</item>
<item>
 <title>Meg is Three!</title>
 <link>http://www.cokeandcode.com/node/1419</link>
 <description>&lt;p&gt;My little monkey/girl Megan is three today! It doesn&#039;t seem like that long ago we were in the states worrying about how the health care works and hoping that we&#039;d be able to cope. She&#039;s grown into a lovely little girl with bags of energy and personality. Friday she had her birthday at Nursery, Yesterday we went to Bristol Zoo, and today is a birthday tea! Next week, off to Grandma&#039;s for another one. One very lucky little monkey:&lt;/p&gt;
&lt;p&gt;&lt;center&gt;&lt;img src=&quot;http://www.cokeandcode.com/images/megisthree.jpg&quot; width=&quot;500&quot;&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p&gt;Having a blog is a wonderful thing at times like this, especially one that existed before she did. Looking back over her life we have:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.cokeandcode.com/node/453&quot;&gt;When she was just a scan&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.cokeandcode.com/node/1110&quot;&gt;The one when she was one&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.cokeandcode.com/node/1322&quot;&gt;Then she reached two&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For those who have been reading all that time, thanks! And sorry if you&#039;re getting a bit bored by now ;) On, for another lovely year with my little star.&lt;/p&gt;
</description>
 <category domain="http://www.cokeandcode.com/taxonomy/term/31">BabyBlog</category>
 <category domain="http://www.cokeandcode.com/taxonomy/term/7">Life</category>
 <pubDate>Sun, 11 Oct 2009 10:16:30 +0000</pubDate>
</item>
<item>
 <title>More evolution attempts</title>
 <link>http://www.cokeandcode.com/moreevolution</link>
 <description>&lt;p&gt;A couple more variants..&lt;/p&gt;
&lt;p&gt;&lt;center&gt;&lt;br /&gt;
&lt;img src=&quot;http://pics.brizzly.com/thumb_lg_6SZ.jpg&quot;/&gt;&lt;br /&gt;
&lt;b&gt;If you use just rectangles, it doesn&#039;t work out well&lt;/b&gt;&lt;br/&gt;&lt;br /&gt;
&lt;img src=&quot;http://pics.brizzly.com/thumb_lg_6U2.jpg&quot;/&gt;&lt;br /&gt;
&lt;b&gt;Mixing ellipses, rectangles and polygons gives the best results yet at only 500k generations.&lt;/b&gt;&lt;br/&gt;&lt;br /&gt;
&lt;/center&gt;&lt;/p&gt;
</description>
 <category domain="http://www.cokeandcode.com/taxonomy/term/6">Code</category>
 <category domain="http://www.cokeandcode.com/taxonomy/term/10">Geek</category>
 <category domain="http://www.cokeandcode.com/taxonomy/term/51">Java2D</category>
 <category domain="http://www.cokeandcode.com/taxonomy/term/39">Random</category>
 <pubDate>Fri, 02 Oct 2009 20:57:35 +0000</pubDate>
</item>
<item>
 <title>Evolution, what if we used ellipses instead?</title>
 <link>http://www.cokeandcode.com/ellipseevolution</link>
 <description>&lt;p&gt;Shannon commented on the last post, why don&#039;t we use circles instead of polygons on the generation stuff. What a fantastic idea? I swapped Ellipses for Cirlces (to leave more room for mutation) and update the tool, results:&lt;/p&gt;
&lt;p&gt;&lt;center&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://pics.brizzly.com/thumb_lg_6QK.jpg&quot;/&gt;&lt;br /&gt;
&lt;b&gt;Original&lt;/b&gt;&lt;br/&gt;&lt;br /&gt;
&lt;img src=&quot;http://pics.brizzly.com/thumb_lg_69R.jpg&quot;/&gt;&lt;br /&gt;
&lt;b&gt;1 million generations with Polygons (approx 4 hours)&lt;/b&gt;&lt;br/&gt;&lt;br /&gt;
&lt;img src=&quot;http://pics.brizzly.com/thumb_lg_6QL.jpg&quot;/&gt;&lt;br /&gt;
&lt;b&gt;400k generations with Ellipses (approx 2.5 hours)&lt;/b&gt;&lt;br/&gt;&lt;br /&gt;
&lt;/center&gt;&lt;/p&gt;
&lt;p&gt;How cool is that? Now I&#039;m starting to wonder what about mixing the shapes and allowing shapes to mutate between each other? What other shapes are there to reduce data, rectangles next?&lt;/p&gt;
&lt;p&gt;What a fantastic comment and idea!&lt;/p&gt;
</description>
 <category domain="http://www.cokeandcode.com/taxonomy/term/6">Code</category>
 <category domain="http://www.cokeandcode.com/taxonomy/term/10">Geek</category>
 <category domain="http://www.cokeandcode.com/taxonomy/term/39">Random</category>
 <pubDate>Fri, 02 Oct 2009 15:41:28 +0000</pubDate>
</item>
<item>
 <title>Evolution of Polygon Images </title>
 <link>http://www.cokeandcode.com/polygonevolution</link>
 <description>&lt;p&gt;&lt;center&gt;&lt;img src=&quot;http://www.cokeandcode.com/downloads/evoimage/test.gif&quot;&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p&gt;I&#039;ve been out of the loop again! Apparantly &lt;a href=&quot;http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mona-lisa/&quot;&gt;this very cool stuff by Roger Alsing&lt;/a&gt; was posted on Slashdot last year. Well I didn&#039;t see it, if I had I would have jumped to trying to implement the same thing - it&#039;s just so cool. I&#039;m not sure there are any practical uses for it (maybe some texture compression stuff for games?) but it&#039;s just such a cool idea.&lt;/p&gt;
&lt;p&gt;So, given that I saw it posted on JGO a few days ago, I ran at it and tried to implement the process. A few painful bugs later and I had a command line tool. Since I had the day off I spent some time tidying the whole lot into a GUI based application. &lt;/p&gt;
&lt;p&gt;Whats happening here then? First we generate a set of polygons. Next we mutate the polygons (move them about, add some, remove some, change colours). Compare the first set and the new set of polygons to the original image. Choose the one that is closest and mutate again. Repeat. Alot.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Update: Couple more examples using 150 polygons&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;center&gt;&lt;img src=&quot;http://www.cokeandcode.com/downloads/evoimage/toaddual.png&quot;&gt;&lt;/center&gt;&lt;br /&gt;
&lt;center&gt;&lt;img src=&quot;http://www.cokeandcode.com/downloads/evoimage/megdual.png&quot;&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p&gt;You can get some pretty cool results with a bit of time. The image above was captured over 2 hours. My version of the GUI tool looks like this:&lt;/p&gt;
&lt;p&gt;&lt;center&gt;&lt;a href=&quot;http://www.cokeandcode.com/downloads/evoimage/evo1.png&quot;&gt;&lt;img src=&quot;http://www.cokeandcode.com/downloads/evoimage/evo1.png&quot; width=&quot;400&quot;&gt;&lt;/a&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p&gt;The tool is available as &lt;a href=&quot;http://www.cokeandcode.com/downloads/evoimage/breederui.jar&quot;&gt;an executable jar&lt;/a&gt; (i.e. you&#039;ll need java installed)&lt;/a&gt;. The source code is also available here in an &lt;a href=&quot;http://www.cokeandcode.com/downloads/evoimage/evoimage.zip&quot;&gt;Eclipse project&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There will of course be bugs and improvements to be done. I might find some time but even if not, a very enjoyable distraction!&lt;/p&gt;
</description>
 <category domain="http://www.cokeandcode.com/taxonomy/term/6">Code</category>
 <category domain="http://www.cokeandcode.com/taxonomy/term/10">Geek</category>
 <category domain="http://www.cokeandcode.com/taxonomy/term/7">Life</category>
 <category domain="http://www.cokeandcode.com/taxonomy/term/39">Random</category>
 <pubDate>Wed, 30 Sep 2009 16:07:39 +0000</pubDate>
</item>
<item>
 <title>Software Rendering in Java with JPCT - A Racing Demo</title>
 <link>http://www.cokeandcode.com/node/1415</link>
 <description>&lt;p&gt;Something I&#039;ve been meaning to look at for a while is &lt;a href=&quot;http://www.jpct.net&quot;&gt;JPCT&lt;/a&gt;, a software 3D renderer written in Java thats been around for years. I&#039;ve seen it around lots of times but I&#039;ve never had quite enough time to sit down and have a play with it.&lt;/p&gt;
&lt;p&gt;I found time over the last week or so to spend a few evenings hacking away with JPCT so I&#039;d have an idea how good, fast and useful it was - and I&#039;ve had a pleasant reception. The API is tidy and simple. It&#039;s not as ornate as some of the scenegraphs out there, but has some slight oddities (like having to add a node to a parent and the world). In general you&#039;ll find it easy to work with.&lt;/p&gt;
&lt;p&gt;Productivity-wise it&#039;s astounding. I found myself having a demo up and running within a hour or so. Collision is built in and took less than an hour more to add. There&#039;s some simple model loaders (3DS, OBJ and MD2) which cover just enough to get your game playable. Since it has a software renderer demo-ing it to other people as an Applet is a piece of cake and the thought that there is a hardware renderer (either JOGL or LWJGL) is very comforting for future proofing the demo. &lt;/p&gt;
&lt;p&gt;Support is good, I popped along to the forums to ask about performance and potentially multithreading the software rendering process (something I&#039;ve always found facinating). Within a day Egon (the owner and main developer) has a version working which boosted the performance on my local machine by 66% (1 -&gt; 2 cores). The documentation is limited, but is enough to get started. The forums seem friendly if a little quiet.&lt;/p&gt;
&lt;p&gt;Overall.. &lt;a href=&quot;http://www.jpct.net&quot;&gt;JPCT&lt;/a&gt; is really rather good and sadly seems to be overlooked in favor of the more giant &lt;a href=&quot;http://www.jmonkeyengine.com&quot;&gt;JME&lt;/a&gt;, &lt;a href=&quot;http://www.xith.org&quot;&gt;Xith&lt;/a&gt; and now &lt;a href=&quot;http://www.ardor3d.com&quot;&gt;Ardor3D&lt;/a&gt;. If you&#039;re just wanting to get something running and you don&#039;t need the massively beautiful effects then JPCT is just the ticket. Thats not to say JPCT can&#039;t do the beauty but it&#039;s focus seems to primarily be on getting things done.&lt;/p&gt;
&lt;p&gt;Ok.. and here&#039;s the demo I built while trying the library out:&lt;/p&gt;
&lt;p&gt;&lt;center&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.cokeandcode.com/applets/jpct&quot;&gt;&lt;img src=&quot;http://www.cokeandcode.com/applets/jpct/jpct1.png&quot;&gt;&lt;br /&gt;
Click Here&lt;br /&gt;
&lt;/a&gt;&lt;br /&gt;
&lt;/center&gt;&lt;/p&gt;
</description>
 <category domain="http://www.cokeandcode.com/taxonomy/term/6">Code</category>
 <pubDate>Tue, 29 Sep 2009 21:51:33 +0000</pubDate>
</item>
</channel>
</rss>
