Posted in Art Hidden Asset Programming

Shadows or no shadows?

September 21st, 2011 - 11: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…

Comments

GLI

September 22nd, 2011 11:04 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

September 22nd, 2011 11:04 pm

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

Christian Knudsen

September 25th, 2011 11:04 pm

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

Leave Comment

You must be logged in to post a comment.