32bit Graphics Development

From OpenTTD

Jump to: navigation, search

« Back to Graphics Development

32bit Graphics Documentation: Standards and Suggestions for Artists

Camera position, Lighting and More

We have custom template files with among other things camera position and lighting specs preset available for Blender, 3D Studio Max and Lightwave. Ben Robbins has made a 3DSMax template and Aracirion a Lightwave template. You can pm them for details on each. For Blender, download version F, the new contrast version. Before using them, please read through the short blurbs below.

The template files contains correct lighting, camera position, resolution etc. 1 Blender Unit equals 1 metre. There are templates for different sizes of buildings. If you need more sizes, or if anything is not clear or you want to comment on anything, please join the discussion in the "new lighting for buildings" thread on tt-forums.

Sizes

In maximum zoom level one square equals 12,5 m x 12,5 m equals 64px across. This is the basic unit for railway tracks and roads. As the buildings in the original Transport Tycoon look as if they are about 25 m x 25 m per square, many new buildings will occupy 2 x 2 new 12,5 m squares. For scale comparison Ben Robbins modelled Ottis, a real-size human.

The sizes for a single square building.
The sizes for a single square building.

If you work with 3D Studio Max, you have a semi-transparent square grid on the ground in the Perspective viewport. It is 140x140 units big on its default settings. Using these measurements, if we assume this ground raster to represent one Transport Tycoon square, we can assume that a human being of two meters tall would take up 22,4 units. Use this to scale your building, prop or vehicle. If you create a 2x2 building, just divide the appropriate figures by 2. This way, when all buildings will come together, one large building will not look like a miniature when compared to a supposedly small building. If you want the home grid to have a different size, go to Customize, and in the Grid and Snap Settings dialogue, go to Home Grid tab.

Materials

For every material you create, in the shaders tab, you are advised to change the Amb parameter (0.5 by default) to match the Ref parameter (1 by default). You always have to modify Ref and Amb together. It has been decided that Amb should always have the same value as Ref, because a material should reflect light from the sun or other light sources the same way it reflects light from the environment (ambient light). Hence, for maximum realism, the values should be the same. Naturally this is not a strict rule, you do have artistic freedom to deviate from this.

The template file archive contains a file named official_materials.blend. It contains some materials which you will need often, and which should look the same in different objects, like pavement for example. Put this file in a location where it can stay. When you have built a model and want to use an official material, link the material rather than just append it. For additional instructions, see Using Official Materials.

Minimize render time

Rendering can be quite slow. To reduce time it takes to render for previews, reduce the Samples value under Ambient Occlusion.

Resources

PNGCodec
Information about the tool you need to codec the PNG's for use in the game
Standardised materials (New Graphics)
For now, this page contains some image maps. Eventually, it should contain blender materials.
Props (New Graphics)
This page contains small props like trees and cars.
Ground Sprites Automated (New Graphics)
A tutorial showing artists how to create a set of 85+ ground sprites in about 30 mins. Includes many automated files.
Ground sprites conversions list (New Graphics)
This list is helpful for those wishing to use the automated sprites in the old or new graphics format.
Tile version table (New graphics)
A table showing the required/desired versions of each object.
Rendered Angles table (New graphics)
This page has tables containing the angles of renders in relation to their render number, useful for coders.
Tile Test Tool
A useful tool for testing out new tiles.
CgTextures.com
An external texture library
stock.xchng
Huge photo library (including useful textures)
"Transport Tycoon graphics and their real counterparts" by Chris Sawyer (heavily copyrighted, for reference only)
Personal tools