Aaron Posted October 24, 2012 Share Posted October 24, 2012 Hello all - as Chris mentioned in the development update, I am now the first full time employee at Goldhawk. I had previously been working on Xenonauts in my spare time for about a year as a tile artist, which is what I will talk about a little in this post. Firstly I should say a little about my background. My previous "real" job was as a software developer at an engineering software company working on fluid dynamics simulation software (I studied cybernetics at university), and prior to that I have also worked as a games/software tester at Lionhead Studios and on other less interesting projects. I am of course an avid PC gamer and also an incurable tinkerer; I started modding around 1997, eventually making some neat little mods for Operation Flashpoint and since then have been modding pretty much continuously - I worked for a long time on the Forgotten Hope mod for the Battlefield series, and also on a C&C Generals mod called Rise of the Reds. I have done pretty much everything in that time - audio, scripting, modelling, skinning, level building and game design. About this time last year I met Chris at the Eurogamer expo and got chatting to him about developing Xenonauts, and ended up doing some freelance tile art. About 6 months later I was starting to look for a new job, and Chris was talking about staffing up Xenonauts and getting an office, and so here we are. Anyway, that's plenty of rambling about me - on to the task at hand. The tools I use when creating tile art for Xenonauts are the 3D modelling package Blender and the 2D graphics package GIMP. The main advantage of both of these is of course that they are free; when I started working on Xenonauts I actually hadn't used either of these before that much, but coming from Photoshop and 3D Studio Max the transition wasn't so difficult especially given the huge number of tutorials; for Blender I particularly recommend http://www.blendtuts.com/ and, for something more advanced, the "vehicle modelling training series" from CG Cookie is well worth the money. Planning -------- So when creating a new building for a tile set, we must of course decide what it should be - we wanted the Soviet town to look distinct from the Western town set, and had decided on a slightly more run down style with some government presence. We also wanted at least one large building that can be used to build a complex centrepiece structure for a map, and for this we decided to use on a mixed use office/archive government build in a somewhat ornate style (at least compared to the buildings around it) as a multi-tier structure. After that came deciding specifically what it would look like. I already had in my mind one clear inspiration immediately, which was the Soviet archive building that featured in Goldeneye (both the film and N64 game) - it was stylistically suitable and also looked like it could be recreated in a tile-able form quite well. Additionally I poured over lots of pictures of KGB headquarters buildings from all over the Soviet Union, particularly for exterior references, as these all tend to occupy a similar style of building. After that I would normally sketch out each different type of object (windows, doors etc...) that would be needed for the building exterior, just to make sure the designs I had in mind for each individual piece would interlock with each other correctly; at this stage though I am practised enough to be able to do that in my head and combine that with the next phase, which is building the geometry. Modelling -------- Creating the geometry of each building piece is one of the simplest parts of the process. I use standard vertex modelling and just extrude, extrude, extrude until I have the shape I need. I have a standard template file for Blender (more on the reason for that later), and each different item gets one layer of this file; this keeps everything related together and means if I were to make global changes, such as changing a colour or texture, it is inherited by all similar objects automatically - this is pretty vital as even tiny mismatches between tiles will be glaringly obvious once they are in the game but are hard to detect during rendering. Here are a couple of untextured tiles: The next step is applying colour and texture. I do this entirely using procedurally generated textures in Blender, rather than the more traditional way of using static files. The reasons for this are it eliminates the need to UVW unwrap anything (a time consuming process) and it means I can make fairly significant changes to my geometry (Chris is a fiend for revisions!) and the textures will just adjust themselves accordingly and still tile nicely with other pieces. For the interior wall above I have simply applied the appropriate colour (from Goldeneye!) and then set a subtle noise effect all over to simulate slight imperfections in the painted finish - in reality you likely wouldn't see these details from a distance, but having the wall completely blank of any detail would counter-intuitively look quite jarring in the game. For the exterior, the bricks have been given a high contrast pattern of dark rendered "clouds" across them to simulate the way they collect water stains and similar marks, while the concrete between them has an even rougher pattern of rendered dark noise to simulate its pitted surface. The window frame I just left as a clean cream colour - it has enough detail on it from the geometry to not need a texture, and applying one to complicated objects at this low a resolution will simply make it look like a mess of noise. Here are some more parts from the complete set: You can see we have a couple of different variations on exterior wall colour - the idea behind this is to replicate the style many of those KGB buildings have, where the ground floor is a darker colour of brick, with floors above that clad in lighter colours. Rendering --------- Once all that is done the final step is to render all the tiles out so they can be put in the game. In theory this sounds simple, but in actual fact it is the part of the process that causes the most headaches, and it has taken me a great deal of experimentation and preparation to be able to get to the step where I can essentially "turn the key" and produce a complete set of renders for a full Blender file. The main problem is these files are small - only 128*128 pixels in resolution - and each tile needs to fit perfectly in the space between every other tile in the set. It must also always be rendered from the same position, otherwise the rendering algorithm may end up placing the edge of one face one pixel too short - this would be undetectable in the render but would show up in the game as obvious seams between each tile. Lighting must also be accurately reproduced to match the existing tiles in the game (all of which are lit more strongly from the right). On top of all that, each building has just a huge number of tiles - the basic set of tiles for the Soviet archives has 96 different tiles in it, not counting those for the roof, which is an awful lot of opportunities to make mistakes. It also consumes huge amounts of time - when I first started working on the tiles I was spending as much, if not more, time on the simple rendering and naming process than I was on the actual creation. Problem Solved -------------- My solution to this was twofold. Firstly I created a template Blender file in which both the lighting and the camera are set-up perfectly, and I then animated the light and camera so that each frame of animation corresponded to viewing the tile from a different direction. This meant rendering a tile from all 4 of the necessary direction was just a matter of advancing the frame count in Blender by one. I was also able to use this animation method to automate some of the more tedious tasks like rendering doors in their open, closed and destroyed state. This was a big improvement, but left the time consuming and error prone process of manually naming each frame into the correct format for the game; so I came up with an additional tool to fix that. I found an application called Blender++, which comes with a command line utility called "brend" that can render out Blender files automatically one frame at a time - this didn't solve the naming problem (all the different objects would come out named after the file with a numerical tag), but it did solve the problem of me needing to manually switch Blender. I then wrote a wrapper for the brend utility as a batch file, that worked as follows - you drag and drop the file you want to start rendering onto the batch, and it kicks off a brend of the first 4 frames in that Blender file and then shows you the results - at that point it asks you what the object is, so you would type "window" for example, and then it automatically names each frame with the appropriate name and facing (i.e. does it face NE, NW, SE or SW?) and moves it to a finished; it then asks you if you want to render more, and if so it moves to the next Blender layer (i.e. where the next object is stored) and repeats the rendering and naming process. This system cuts the time needed to render and name a large set of tiles from several hours to about 15 minutes, and is vastly more robust in terms of avoiding errors. Tiles produced by the process can be dropped straight into the game for set-up, and if there are any tweaks needed it is a fairly simple process to redo the renders again in such a way that the new tiles can just overwrite the old tiles with no need for re-checking the positions. The reliability of this system has also made it possible for me to do more complex building types (such as Nissen huts, which you may not have seen yet) which have curved edges that need to match absolutely perfectly between tile transitions. Once the complete set of tiles for a building like the Soviet archives is complete it gets put in the game for testing and is also passed on to our very talented 2D artist Mikael, who paints over the tiles to give them that stylised look we use for all buildings in Xenonauts; it is always an absolute pleasure to see how awesome the tiles can turn out after he gone over them. Anyway I've enjoyed rambling on about this, and hopefully it will be a bit of an interesting insight into how these kinds of old school 3D tiles are produced. As much work as all of the above may seem, I think once the results are in game they give Xenonauts a high resolution look that is fairly unique amongst modern pixel art games. Quote Link to comment Share on other sites More sharing options...
Chris Posted October 24, 2012 Share Posted October 24, 2012 I told Aaron to write this update because he's producing TOO MANY tiles for me to keep up with on top of all my other jobs. Obviously he's replaced it with producing TOO MANY words for me to keep up with. At least he's value for money. EDIT - just to clarify, the 3D tiles are generally painted over by our 2D artist Remus, who does the props and the buildings. Mikael is our other 2D artist, who paints the ground tiles and the things connected with the ground (i.e. the cliffs and rocks and mesas you'll see in the next update). Both have done very impressive work to get the game looking like it is inspired by the 1990s rather than from the 1990s. Also, reading this article does remind me of all the technical challenges we had trying to get the units set up to render in perfect isometric setup (I invented a similar system for Maya, but we use multiple cameras and batch files for unit renders rather than Aaron's animated single-camera system). It's all faintly ludicrous now I think about it, but I've been doing it for so long that our convoluted workflows just feel normal Quote Link to comment Share on other sites More sharing options...
chacineiro Posted October 24, 2012 Share Posted October 24, 2012 Impressive work indeed! Cant wait to see those in-game. Quote Link to comment Share on other sites More sharing options...
Gribbstar Posted October 24, 2012 Share Posted October 24, 2012 Enjoyable read, would like more of this Quote Link to comment Share on other sites More sharing options...
Jean-Luc Posted October 24, 2012 Share Posted October 24, 2012 Bringing 1990s into 2010s sure is complicated but well worth it I think. Quote Link to comment Share on other sites More sharing options...
Max_Caine Posted October 24, 2012 Share Posted October 24, 2012 Hi Aaron. I see the AdMech laughing man badge. You an AdMech fan? Quote Link to comment Share on other sites More sharing options...
StellarRat Posted October 24, 2012 Share Posted October 24, 2012 It sounds like someone with the proper software could add new tiles to the game in addition to new maps. Quote Link to comment Share on other sites More sharing options...
Chris Posted October 24, 2012 Share Posted October 24, 2012 StellarRat - they'd also have be be very talented 2D artists to be able to paint over their own tiles. Quote Link to comment Share on other sites More sharing options...
HWP Posted October 24, 2012 Share Posted October 24, 2012 Won't 3d rendering do it, presuming one is ready to accept reduced visual quality, or are there deeper concerns requiring it? Quote Link to comment Share on other sites More sharing options...
StellarRat Posted October 24, 2012 Share Posted October 24, 2012 StellarRat - they'd also have be be very talented 2D artists to be able to paint over their own tiles.True, I suck. But, with enough trial and error I can muck my way through, it just takes me 10x as long as someone that actually is talented. Maybe I should cut off one of my ears, hmmm... Quote Link to comment Share on other sites More sharing options...
raziel1981 Posted October 24, 2012 Share Posted October 24, 2012 Great read and happy to hear from another staff member from this amazing project. Thanks for sharing this information with us Aaron, I'm anxiously expecting to see the end product of your efforts. Quote Link to comment Share on other sites More sharing options...
Gauddlike Posted October 24, 2012 Share Posted October 24, 2012 You could easily add new tiles to the game. They would look a little odd next to the current batch unless you could do the overpaint. However if you were to do your own complete tileset that wouldn't be as big a problem. If your new tiles didn't appear alongside the overpainted ones then the differences would be harder to spot. Thanks for the write up Aaron, nice to get a bit of insight into the work you have to put in to get that Xenonauts look Quote Link to comment Share on other sites More sharing options...
Raakku Posted October 24, 2012 Share Posted October 24, 2012 So does the soviet town consist of one neo-classic governmental building and tons of identical grey concrete shoe-boxes for the happy workers? Because that would be realistic. Quote Link to comment Share on other sites More sharing options...
GoodGuyEddy Posted October 24, 2012 Share Posted October 24, 2012 So does the soviet town consist of one neo-classic governmental building and tons of identical grey concrete shoe-boxes for the happy workers? Because that would be realistic. You forgot every soviet family having a doghouse for a bear(bearhouse). And refrigirators stocked with vodka. Quote Link to comment Share on other sites More sharing options...
Gauddlike Posted October 24, 2012 Share Posted October 24, 2012 And refrigirators stocked with vodka. I resent the implication that this is reserved for stereotypical Soviets. Quote Link to comment Share on other sites More sharing options...
MasterArmadillo Posted October 24, 2012 Share Posted October 24, 2012 (edited) Thanks Aaron, I use lightwave as a hobbyist for 3d modeling and rendering because I had Imagine on my ole amiga from a magazine cover disk and a friend said why dont you try this (Lightwave 3D) and I was hooked, its very interesting to read how a pro can produce a specific set of tiles especialy as you use my favorite tool 'extrude' Nice work on the tiles so far I am looking forward to seeing them all in the final release. Edited October 24, 2012 by MasterArmadillo Quote Link to comment Share on other sites More sharing options...
kigurai Posted October 25, 2012 Share Posted October 25, 2012 NIce writup Aaron! For the naming problem, did you investigate the Blender Python API? I just did a quick check and found this function: http://www.blender.org/documentation/blender_python_api_2_64_5/bpy.ops.image.html?highlight=save#bpy.ops.image.save I have only touched Blender a few times (not an artist, which is an understatement ) and never used the API, but I believe that this kind of work is what it is intended for. I guess the community would love to have access to these templates/scripts required to produce the 3D-tiles, if possible. Any chance of that happening? Quote Link to comment Share on other sites More sharing options...
sectoid Posted October 25, 2012 Share Posted October 25, 2012 Seriously Aaron and other 2D artists are not using something like "Simcity 2000 Urban Renewal Kit" ? then Xenonauts is truly value for money! Quote Link to comment Share on other sites More sharing options...
Skvid Posted October 27, 2012 Share Posted October 27, 2012 Any plans to add russian apartment buildings that were build around cold-war era into on of the tilesets? You know the kind of blocky buildings that we see whole russian and easter europe littered with, like the ones in Chernobyl. Quote Link to comment Share on other sites More sharing options...
Chris Posted October 27, 2012 Share Posted October 27, 2012 Skvid - yes. Quote Link to comment Share on other sites More sharing options...
thothkins Posted October 27, 2012 Share Posted October 27, 2012 A fascinating post Aaron. Many thanks for that. This sort of background information about the game is always interesting. Even if Chris forced you to do it or face a stun prod. Quote Link to comment Share on other sites More sharing options...
Harmonica Posted October 29, 2012 Share Posted October 29, 2012 Very interesting to read more about the oft talked about tile creation process Quote Link to comment Share on other sites More sharing options...
xcorps Posted November 3, 2012 Share Posted November 3, 2012 Both have done very impressive work to get the game looking like it is inspired by the 1990s rather than from the 1990s. Yeah, they pretty much nailed it. Quote Link to comment Share on other sites More sharing options...
flyingdisc Posted November 6, 2012 Share Posted November 6, 2012 Thanks Aaron, its nice both to get an insight into the mapping and rendering process and also to see where you are going with the Soviet tileset. It is nice to see your thought processes in how you render the central building. A colleague of mine recent visited Ashgabat, the capital of Turkmenistan. Talking to him about it, one of the stricking aspects of Soviet planned cities is their use of wide boulevards that you find in almost all soviet cities built in that era. ZZZ1010 captures this really well in his soviet street scene in the mapping (http://www.goldhawkinteractive.com/forums/showthread.php/1301-Maps). I think this could make for very interesting game play - wide open stretches (with trees, benches, cars) bordered by buildings, much denser than the western town tileset. Anyway, it is worth checking out zzz1010's thread. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.