1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Discussions
  3. Level Design

COD4 lighting

  • Belgarion
  • January 21, 2008 at 7:14 AM
  • Belgarion
    • January 21, 2008 at 7:14 AM
    • #1

    Does anyone know how the COD4 engine renders? I checked the COD4 wiki page, but the info on the engine is fairly skimpy. Is it all real-time lighting or are there lightmaps involved? Just curious.

  • e-freak
    • January 21, 2008 at 3:09 PM
    • #2

    AFAIK lightmaps and the system is fairly close to the source lighting (have to ask a friend of mine who did some research on the subject lately)

  • Sentura
    • January 21, 2008 at 7:37 PM
    • #3

    yeah i'd reckon so as well since it is a heavily modified q3 engine

  • Pongles
    • January 29, 2008 at 11:55 AM
    • #4

    actually, it's not strictly Q3. for COD4 they have written their own. however, it's likely that they followed in the same path as Q3.

  • Frittz
    • March 21, 2008 at 1:09 AM
    • #5

    Definately Lightmaps. There is some realtime lighting but mainly in single player levels.

  • Erratic
    • March 27, 2008 at 3:36 PM
    • #6

    The majority of the shadows in the environments looked like shadowmaps to me, considering they have a level of detail on them, making them dynamic. I don't recall seeing a lot of baked in lighting anywhere at all. But that's just my observation, there's a few guys from IW around here who could confirm this, no?

  • Belgarion
    • March 27, 2008 at 6:10 PM
    • #7

    Yeah. People from IW, give me an answer!

  • mjens
    • March 29, 2008 at 3:30 PM
    • #8

    I was looking at some shadows on multiplayer levels and I think these are shadowmaps (nice res., works with HDR). Also it's still old and good COD4Rad.exe (older Q3Rad).

  • Belgarion
    • March 29, 2008 at 8:07 PM
    • #9

    I've been looking around, but I haven't found an *easy* to read explanation of how shadowmapping works. Anyone care to explain or link me?

  • mjens
    • March 29, 2008 at 10:32 PM
    • #10

    http://en.wikipedia.org/wiki/Shadow_map

    Easy explanation:

    A guy from IW wrote some haxor code which makes some crazy counts. It checks where is the main light (sun) on the level and generates info about shadows form that light. Engine is rendering it with cool filters The rest of the lights are dynamic (the shadow is raytraced dynamicly) or some static included to radiocity count on level compilation stage. Not sure about it but it's seems easy

  • Warby
    • April 5, 2008 at 5:16 PM
    • #11
    Quote from seir

    http://en.wikipedia.org/wiki/Shadow_mapEasy explanation:

    A guy from IW wrote some haxor code which makes some crazy counts. It checks where is the main light (sun) on the level and generates info about shadows form that light. Engine is rendering it with cool filters The rest of the lights are dynamic (the shadow is raytraced dynamicly) or some static included to radiocity count on level compilation stage. Not sure about it but it's seems easy

    that is only how it is APPLIED to the world the shadow map itself is all precalculated you can tell by the lack of flickering on the edges !

    there is no dynamic ray tracing going on here or in any engine for the next at least 5 or probably 10 years ( yeah yeah ... i have seen that raytrace quake 3 and quake 4 video still wont happen any time soon )

    all i am wondering is how they handle THE INSANE resolution of those shadows memory wise ... i guess they can store some bytes by making it all 1 bit color depth but would that really cut it ?!

  • mjens
    • April 10, 2008 at 12:13 PM
    • #12

    Yep, raytraced shadows aren't used - too much 3DSMax and I call all dynamic shadows as raytraced :x

    I asked few guys how it can be done and the only thing that is most possible is to save these to hi-res shadowmap from polys which are on shadow edges and store info about fully shadowed polys... I'll tell you more when I'll show that shadows to few more guys who can know what it is...

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login
Discord

The Mapcore Discord is our lively IRC channel of the 2000s reborn. Chat about level design, gaming, and more.

Latest Posts

  1. Tangerine

    Harry Poster
    July 18, 2026 at 11:10 AM
  2. Any of the old guard still around? D:

    Warby
    July 12, 2026 at 8:23 PM
  3. About our archived forums

    Thrik
    June 30, 2026 at 2:12 PM
  4. Mapcore Discord

    mason_fan123
    June 24, 2026 at 8:52 PM
  5. [CS2] Valley

    Serialmapper
    June 22, 2026 at 11:56 AM
  6. Free Music / SFX Resource - Over 2500 Tracks

    Eric Matyas
    June 18, 2026 at 12:32 PM
  7. Pango [WIP]

    Elowen
    June 11, 2026 at 10:13 AM
  8. [CS2] Dvina

    Jeremy Rivera
    June 11, 2026 at 10:03 AM
  9. Bridges 2.0 by NEXSIDE, MAP SHOWCASE. ( Steam Workshop )

    MrTrane18
    June 1, 2026 at 7:46 PM
  10. Classic Maps Reborn For CS2

    SillySpaceCat
    May 31, 2026 at 10:33 PM

Users Viewing This Thread

  • 1 Guest
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™