Jump to content
The Dark Mod Forums

Rendering in Mafia 2


Recommended Posts

Someone brought up the idea of computers eventually being powerful enough to render the world and since i had been watching a Mafia 2 walkthrough and being blown away by the rendering performance and attention to detail by the dev's, I thought i'd post a video of it for those that might be interested. A drive through the city. Starts at about 1:00. Theres not many people on the streets either, since its night time. During the day, the city there are tons of walking NPC's.


FTR: The guy is hilariously terrible at driving in Mafia 2 86% of the time.

Link to comment
Share on other sites

Actually there's TONS of pop-up/fade-in going on there - you can see cars fade in at only about one block away, street lamps only light below themselves about two lamps out, a whole fence just appears out of nowhere at about 3:04, etc etc etc. So it's the same as any other game, LOD and pop-up/fade-in optimizations. I agree that it's done somewhat well I suppose, but one of my pet peeves is pop-up.


I would far prefer lesser polygon/detail combined with further out pop-up or virtually no-pop up. Basically, my personal tolerance for pop-up is much lower than the average gamer audience that designers are making games for, whereas my tolerance for lower polygon and other details is higher.

shadowdark50.gif keep50.gif
Link to comment
Share on other sites

Many of the newer games are very aggressive with LOD because they blur the hell out of the distant objects with DOF. It was much better when fog was used for this purpose.


Some designers and engines are better with hiding LOD transitions than others, it comes down to whether they care about what the game looks like in action verses screen-shots to sell the game.


Of course, having more play-field opens up some nice game-play possibilities so sometimes these artifacts are just a deal with the devil to make certain game styles possible. (Certain game genres, like forest dwelling RPG's, MMO's (Oblivian) absolutely depend on LOD ).



Please visit TDM's IndieDB site and help promote the mod:




(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

Mafia 2 is pretty cool. But yeah it does look like GTA, so much so that it could pass up as a mod. :P


Did anyone else notice how the police in games like that and GTA 4 just simple stopped caring about how the player drives? :laugh:

Or maybe GTA 4 still had aggressive police? Don't remember.


I remember back in the day with the Driver (Driver 2 I think) games they absolutely went haywire just for bumping into a curb or something.

Edited by GameDevGoro
Link to comment
Share on other sites

"The Mafia 2 police still cares a little."


OK. That's kinda cool then. GTA 4 does not, though, I did a lil' research. :P


But anyhow. The rendering is pretty cool actually, but nothing one hasn't seen before. Many people tend to forget that the reason why any game looks better or worse is because of the artists that worked on it, some know how to use their tools, some do not.

But I personally think his coat, which looks to be simulated by some physics engine or similar (maybe not fully simulated but definitely around there), is cool. And the artifact-lacking, perspective shadow-mapping from the streetlights looks great.


Oh, the lockpicking system displayed in the video pretty early on, for the locked car was unexpected and pretty awesome. xD

Link to comment
Share on other sites

Driving in NYC in the 30s, and right by my former apartment. :wub:

Not like the pseudo-NYC in GTA4 ... though the GTA influence is almost laughably transparent. (I don't like the consolisms either. Always a turn off for me.)


I've been watching videos on the open-source Unity Engine for a while, and they also have some massive open worlds, with LOD definitely contributing ... interesting just because it's open-source & they're homemade games. One demo I saw had a guy driving through the streets of Moscow for 10 minutes (I can't find it now).

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recent Status Updates

    • STiFU

      Be honest: Who of you have actually finished Cuphead? This game is freaking tough! It might even be harder than Sekiro. Dark Souls is a joke in comparison to Cuphead! :-D 
      · 8 replies
    • duzenko

      Please, can we finally group the missions by year in the game menu?
      · 6 replies
    • duzenko

      I vaguely recall someone recently complained about two-sided materials (curtains?) not getting lighting from both sides
      I just found a piece of code that's supposed to do just that
      Where was that discussed? (@nbohr1more?)
      · 9 replies
    • Xolvix

      I still play classic Doom (albeit with user-made mods and maps rather than the original campaign) on a regular basis. A game from the early 90's which has still got a healthy following in 2022. Pretty amazing.
      · 3 replies
    • Nort

      I'm beginning to understand why people who aren't into social clubbing "don't last long" on this project, and why it's so full of holes. When moderators are siding with bullies, by closing down threads that they derail, then I start to wonder if I should support the platform to begin with.
      I'm sure that the core development is solid, but when you're constantly tone policed and bullied, and moderators are playing into it too, then the project will just drive away talent, and replace it with socialites instead. ...and without talent, you only end up with a small skeleton crew trying to do everything themselves.
      ...so Dragofer and Airship Ballet, and all you other socialites, you win. From now on I'll just keep to myself. You'll never be able to do my work, but at least you'll be happy together, and that's what matters to you.
      Actually, I have to revise my statement:
      I actually messaged greebo - the top dog, I gather - about nbohr1more's outburst of insanity below, and since I haven't even heard back from him, I just have to assume that there's not a single core programmer here, who's not backing nbohr's threats. ...and that's bad.
      ...so if you're a newbie reading this, or an honest soul like ZergRush, then just slowly back out of these forums, run, and don't look back. This is nothing more than a cult posing as a game development project, using Thief and IDTech4 to sucker hopefuls in, to do work for them, while trying to cajole them into something going on behind the scenes, which apparently - according to nbohr - is something that should be hidden from the state. These people aren't programmers - they don't even understand things like how to fix the simplest bugs. All they have, is an engine, and an IP, and some sort of fascist social cult. There was some other project I saw being made in the Unreal Engine. Try joining that project. ...or start a project of your own. Anything but this asylum.
      Hopefully that was "divisive" enough for a final post, because at this point I really want people to leave this place. This project is, on a management level, just awful garbage, run by garbage people, apparently from the top down, and I'm just glad that they have a garbage place to stay, together, and hopefully forever.
      · 16 replies
  • Create New...