Jump to content

COD4 lighting


Belgarion
 Share

Recommended Posts

  • 1 month later...

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? :-D

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

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 ;)

Link to comment
Share on other sites

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 ;)

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 :P )

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 ?!

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

 Share

  • MapCore on Discord

  • Our picks

    • Post in Yanzl's Source Emporium
      Two new asset releases!

      First up is Basalt. Sadly I can't release all of the assets as some of the nature stuff is from Megascans and can't be redistributed. Also only includes the assets I've made.


      https://www.dropbox.com/s/e86kdqwpvhhs5x6/Basalt.zip?dl=0

      Second one is assets I've made for Pitstop. A small release that includes some road and concrete trim textures, a bunch of sponsors and some skybox buildings that might be useful.


      https://www.dropbox.com/s/x6tn3b6nfo2u77d/Pitstop.zip?dl=0

      As always, free for non-commercial use with attribution. 
×
×
  • Create New...