mtm2.com MTM2.COM
Log in
The Monster Truck Madness Guild
mtm2.com / mtmg / traxx
Track Making 3 ▸
Basic Traxx 6 ▸
Working Area 3 ▸
Starting Out 3 ▸
Textures 7 ▸
Terrain 4 ▸
Models 8 ▸
Ground Boxes 3 ▸
Circuits & Rallies 6 ▸
Rumbles 2 ▸
Arenas 6 ▸
Wrapping Up 6 ▸
Tips 8 ▸
Downloads 1 ▸
Traxx · Modern Traxx

Lighting (New)

Special → Lighting now lets you put the sun anywhere in the sky, not just in one of five places, and shows you what the ground and a test cube will look like as you drag it. This page replaces the old Lighting page.

What changed

The old Lighting page had Sun Pos radio buttons (N, E, S, W, Noon) and four sliders: Dark, Bright, Alt. Bias and Shadow. None of those controls exist any more. In their place there are two things the game itself uses: where the sun is, and how much ambient light there is.

Note: if you re-light an old track with a preset, the ground will look different from how old Traxx lit it. Traxx now bakes the ground's light and shade with the game's own formula, so what you see here is what the game will do.

Step 1 — Open the dialog

Choose Special → Lighting. The Lighting window opens, and you can resize it. The pad, the preview squares and the cube all grow with it.

The Lighting window. Drag the sun on the pad and set its height with the slider beside it; the exact X, Y, Z and Ambient values are below. The middle square previews the track’s own ground, lit — nearly blank here, on a flat test track — and the cube shows the shadow the sun casts.

Step 2 — Move the sun

Step 3 — Set the ambient

The Ambient box and slider set how bright the shade is, from 0 up to 65535, with a percentage beside it. Less ambient makes darker shadows and a more dramatic track. More makes it flat and soft.

Step 4 — Try a preset if you like

The Sun preset buttons N, E, S, W and Noon are only starting points. If the sun is not already exactly on that preset, Traxx asks first: "Reset the sun position to the W preset?" Answer Yes to replace it. The ambient is never changed by a preset. A preset button is ticked only when the sun is exactly on it.

Step 5 — Read the previews

The terrain square shows your own track's ground as Traxx will bake it. The cube shows a cube on the ground with the sun's light on each face and its shadow. The cube is labelled "Indicative — not the engine's GPU shadow", and it is: use it to judge direction and length, not exact darkness.

Press OK to keep the new sun and re-light the ground. Cancel changes nothing.

A worked example — a long evening shadow from the west

We want the track lit by a low sun in the west, so every post and fence throws a long shadow across the road.

  1. Open Special → Lighting. Leave Keep strength ticked.
  2. Click W, and answer Yes if Traxx asks to replace the sun.
  3. Drag the yellow dot out toward the W edge of the pad. Watch the readout: aim for about elev 20° to 25°. As a guide, X of about 60000 with Y of about -26000 and Z of 0 gives a sun just under 24 degrees up.
  4. Drop Ambient a little, to around 40% of the slider, so the shaded side stays dark.
  5. Press OK.

Tip: a low sun also makes the ground's fine detail relief stand out more, if the track has a detail map. A sun at noon makes it nearly vanish.

Seeing the sun in the 3D view

In the OpenGL view, View → Visual Helpers → Show Sun (on by default) draws two markers:

They are not in the same place, so use the ring when you are judging shadows. Terrain in front of the disc hides it, and it is not drawn when the sun is at or below the horizon. The sky behind it needs the Game folder set; see Setting Up.

Checks and warnings

A track that has never had its lighting set carries Traxx's own default sun and ambient, and shipping those is the commonest reason a track looks flat. So the dialog shows "Warning: sun and ambient equal Traxx's defaults, not values from this track" at the bottom while that is true. Write POD asks about it too: "Write the POD anyway?" Answer No, fix the lighting, and write again. Once you answer Yes, it does not ask again until you next open the track.

Note: in the game, Night, Dusk and Pitch black change the sun's strength and set their own ambient, so set this dialog for daytime.

Note: opening a .SIT or .SI2 file used to throw away its sun and ambient and put Traxx's defaults in their place. It keeps them now.

See also: the old page, Weather Mask, Writing the Pod.

<< Waterfalls << >> Lights >>
Downloads Tracks Trucks Utilities C-Pod26 VectorSlope Podzip MTM 1 Tracks More Help MTMG Forum Partners Track Shots