Laserbrain Studios

Games Forum Blog Contact

Author Topic: Shadows or no shadows?  (Read 2683 times)

Christian Knudsen

  • Administrator
  • Ace
  • *****
  • Posts: 3099
    • View Profile
Shadows or no shadows?
« on: January 25, 2012, 02:20:04 PM »

I’m currently optimizing the map drawing code for Hostile Takeover‘s isometric engine. It’s basically all about minimizing the amount of tiles and layers that the code has to loop through each frame to check for stuff to draw – and also trying to minimize the amount of texture bindings for OpenGL. Anyway, as part of this, I tried disabling the wall shadows (which I originally added to create an ambient occlusion effect) to see if they had any substantial impact on the time it takes to draw a frame. They don’t really, which didn’t surprise me much, but the test has left me with doubt as to whether or not wall shadows should even be in the game.


The image on the left is with wall shadows, the image on the right is without:


Click to enlarge   Click to enlarge


On one hand, I think the wall shadows make the structures pop a bit more and make everything feel less flat. On the other, I can’t shake the feeling that the wall shadows make it seem as if the walls are floating ever so slightly above the ground. So I can’t decide if I should keep them in or discard them. What do you think?


By the way, the shadow for the “Hensley International” sign is also missing in the right-hand image. That’s just because I completely disabled environment shadows for this test. Stuff like that sign will have shadows – that much I’ve decided on. Of course, it might just be weird if walls don’t have shadows when everything else does…



GLI

  • Guest
Shadows or no shadows?
« Reply #1 on: January 25, 2012, 02:26:27 PM »

I vote for “shadows”. Buildings looks “a little bit dirty” with them. It’s not only about “not floating” but about “non-sterile” look. Dirty… :>



Lexus

  • Guest
Shadows or no shadows?
« Reply #2 on: January 25, 2012, 02:26:27 PM »

I agree.. shadows. (To be honest, theres not a huge difference)



Christian Knudsen

  • Administrator
  • Ace
  • *****
  • Posts: 3099
    • View Profile
Shadows or no shadows?
« Reply #3 on: January 25, 2012, 02:26:27 PM »

Yeah, I think I’ll keep them. Maybe I can make the wall shadows a bit fainter to decrease the floating effect.