Monday, 9 February 2009

Low prim, high fidelity architecture for Second Life - The Heretic Pixies store

This is the first in a series of posts about the design and contruction of our new Heretic Pixies store.

For most people starting out with a building in Second Life, prim limits (the number of building blocks you can permanently place on a piece of land) are probably one of the most limiting factors. With an unlimited number of prims it would be easy to create an attrctive building, but when you may only have 30 or so, your options are fairly limited. Contents is always a factor in this - you want to have enough prims left to be able to put something inside your building.

At Pale Heretic we use a process that allows us to produce high fidelity buildings by pre-rendering things like complex shadows into the textures themselves. One of our products is a single room that has less than 30 prims, but the interior conveys a sense of light and space you wouldn't normally find in a small environemnt (the box measures 10m x 20m). You can see another example of this that we are constructing at the moment - our new Heretic Pixies store.

The Heretic Pixies store is constructed from 16 prims (for the floor, ceiling and walls) and measures 20m x 15m. It's going to be our store for a new character based range of products and we want to make it look as plush as possible on a low prim budget. The first part of this is making the interior itself look as good as possible and to do that we are using baked interior textures. Doing this allows us to both get realistic graduated lighting and shadows on the interior walls, but also allows us to put murals on the walls and for them to look like they are on the wall, rather than floating in front of it.

To do this we build a replica prim-for-prim in an opensource 3D application called Blender (www.blender.org). We then pick the faces that we wish to bake textures for and they are individually textured. The textures we use for these surfaces are sourced from photographs. The key is to avoid obvious tiling of textures. Seeing a regular repeated pattern in a wall or floor will break the illusion of reality. For example, the concrete texture for the walls in the Heretic Pixies store is created from a number of unique photos, layered and mixed to create a 2048 x 1024 texture that can be used to span the longest single wall with out any repeats. Onto this we add logos and other graphic elements, then bake out the textures, so that the local lighting and shadows are precomputed into the textures and we do this so that we get a good match with the lighting that we add in Second Life.



Generally, we will create a single 1024 x 1024 pixel texture for each 10m x 10m face. This increases your texture upload costs because you need a unique texture for every face (16 for the interior of the store) but then, that's still less than one US dollar. Using high resolution textures like this, while having some impact on older graphics cards, does allow the use of text and graphics directly into the wall texture without the need for additional prims and textures for signage.

The design and build for the Heretic Pixies store has so-far taken about 5 hours, since we already had the images and photographs that were used to create the textures. Over the next few days we'll be adding more to the store interior and exterior. If you would like to take a look, you can get there from http://slurl.com/secondlife/Dangun/176/77/143/ or by searching for 'Heretic Pixies'.

No comments: