Gourmet Carmageddon

The Finest Carmageddon 1 Pack! (also home of the C2 Mini-Pack)
  • Home
  • Archives

To content | To menu | To search

CUSTOM LIGHTING SETTINGS FOR MATERIALS aka. FULL LIT TRICK

This is the key to a lot of visual design tricks and creativity.

In a C2 track the lighting is usualy set at the the very start of the track text file. It only lets you specify the directional and ambiant light that will be applied on every material. Which is not much at all considering all the lighting settings that you can set in Plaything 2.
Without using the FULL LIT TRICK the game will only use the ambiant and directional lighting specified in the text file and the diffuse color. If you use the trick the game will follow the settings you set in Plaything2 for each material! This means diffuse color, ambiant/directional lighting, specular & specular force. Spending some time on the material settings can make a lot of difference ingame (visually). Lights become real lights because they are full lit now (logical you say). Chromey stuff, pipes and shiny things can be shiney now (high specular). It is possible to combine env mapping with diffuse lighting and special material settings to achieve very precise visual concepts. You can make different types of material react differently to the ambiant light or the directional light. Or create color schemes and work on the atmosphere of your track to give it more life or constitency in your track concept! (what I did with the last TDR Arena revamp for example)

So! How to make use of this trick you ask?
Well ages ago, people (probably Cesm/C2S/ChevyII) noticed there's one thing that isn't affected by the global lighting: the powerup materials. Then the easiest way is simply to create a single dummy powerup which you'll place totaly out of the track (usualy far under the track). It is needed to make it unreachable because all the "special" materials would be back to default if the powerup was activated. It can ofcourse be used as a trick too, activating a powerup would turn off all the lights in a track for example. Anyway back to the dummy itself: it must not be an empty dummy as we'll apply every "special material" to a triangle of the fake powerup. Have a look at this, this is what I use to easily sort them out and see which material is already activated via the full lit trick, it is a simple plan which I estimates the number of subdivisions based on the amount of needed "special materials" (easy to do in Max):



And here's an example (above). You can see most of the exterior materials are shady etc. and the corridor is full lit.
The FULL LIT TRICK might theoricaly also allow the use of textures with baked lighting and shadows. Making them full lit (read shadingless) would prevent the highlighted parts in a texture to be darkened or darker parts to be highlighted ingame. One can imagine a room in the nuclear silo where the light is green and is diffused in a very particular manner. Just get rid of the normal lighting by using the full lit trick and bake the green lighting you want in the textures. 3D programs like 3dsMax can bake shading and highlights into textures directly.
Another use is making hard shadows. No need to duplicate textures and make one darker. Just duplicate the material and use the lighting settings to make one darker (no specular, high specular force and low a/d lighting) then apply it to the triangles defining the shadow and to one triangle of the fake powerup. It can be done without the full lit trick by using diffuse color (cold/warm black/dark grey) but the global lighting would still be applied on it and it might look weird at times: addition of the black diffused color and the global lighting shady area (shadows aren't supposed to be additive), while in the case of the full lit trick there's no addition of shadows or anything, just a specific lighting set to define a shadow.

Unfortunately, applying a funk on one of the materials using the full lit trick will disable it.
By the way it is a good idea to place the dummy powerup apart from the rest of the powerups and even at the root of your track hierarchy just to access it easily and not be confused with something else. You can even rename it into a powerup just before the preprocessing.

To resume the idea of this trick: using the FULL LIT TRICK lets you specify a specific lighting for any material instead of the global lighting.

  • By Toshiba-3 | Sunday, June 28 2009 | 16:56
    |Plus
  • CategoryCarmageddon 2

« FORCING AN OBJECT TO ALWAYS FACE THE CAMERA Recommended settings for Zeckensack's glidewrapper »

Links

DOWNLOADS

  • The MELD PACK v1.3.4
  • VANILLA C2 MINI-PACK v1b

More From Me

  • On Twitter
  • Road Reaction | RR2000
  • CWA and devWAM msgboards

Related Resources

  • QTZ' Carma corner
  • hifi's Carmageddon tools
  • Carmageddon.com
  • Carma Foro Forético

RSS feeds

  • Entries feed

My Twitter

  • 19 Feb
    ᴛosʜiʙᴀᶜᵒʳᵉ @toshiba_3
    Did @Stainless_Games design more than just the GUI? 🤔 twitter.com/Dragons_Sushi/…
  • 18 Feb
    ᴛosʜiʙᴀᶜᵒʳᵉ @toshiba_3
    RT @farbodsaraf: This footage of a drone following a race looks like its from a video game pic.twitter.com/hPwkPsxjcB
  • 17 Feb
    ᴛosʜiʙᴀᶜᵒʳᵉ @toshiba_3
    @dimeao @nikobud95 Tu as sûrement trouvé depuis, c'est le Zieuteur Omni Boost 😄 pour acheter des bonus/powerups débloqués.
  • 17 Feb
    ᴛosʜiʙᴀᶜᵒʳᵉ @toshiba_3
    RT @AlexTsekot: @FearFactory never gets old. I will forever associate it with #Carmageddon :) Its a shame that a full video would probably…
  • 17 Feb
    ᴛosʜiʙᴀᶜᵒʳᵉ @toshiba_3
    RT @AlexTsekot: So awesome what you can do in real time renders these days :D Thank you @marmosetco I love me some #toolbag3! #3D #Substanc…
  • 9 Feb
    ᴛosʜiʙᴀᶜᵒʳᵉ @toshiba_3
    #screenshotsaturday #carmageddon x #halflife 2, x hard truck apocalypse, x #GTA 2, x #flatout 2, x #painkiller. All… twitter.com/i/web/status/1…
  • 8 Feb
    ᴛosʜiʙᴀᶜᵒʳᵉ @toshiba_3
    RT @STShotgun: Fuck this game pic.twitter.com/MjXB40Mq6g
  • 7 Feb
    ᴛosʜiʙᴀᶜᵒʳᵉ @toshiba_3
    Remember when Bleak City was Bright City? Me neither. early #carmageddon stuff pic.twitter.com/pQ8s0KBX4o
  • 6 Feb
    ᴛosʜiʙᴀᶜᵒʳᵉ @toshiba_3
    @Colonthreee @chetfaliszek So obvious it didn't cross my mind! 😄
  • 6 Feb
    ᴛosʜiʙᴀᶜᵒʳᵉ @toshiba_3
    RT @toshiba_3: @chetfaliszek Katamari #Carmageddon 2, almost there pic.twitter.com/yTOarSM8UD

Powered by Dotclear - Freshy theme Julien de Luca adapted from Wordpress