BlinksTale / cubior

A 3d four player platformer with 3d visuals (for 2d screens)
http://galigogames.com/cubior
5 stars 0 forks source link

Shadows #47

Closed BlinksTale closed 12 years ago

BlinksTale commented 12 years ago

OpenGL stencil shadows should be plenty for showing where Cubior and crew are in relation to goal

BlinksTale commented 12 years ago

Highest priority, number one complaint (after lag) from (netbook) IndieXChange demo

BlinksTale commented 12 years ago

Wow, seriously just did that in 36 hours.

So, learned that there are Shadow Maps and Shadow Volumes as my options for real time shadows. Maps use raster but are faster, and volumes use vector and are more precise - so of course, I ended up on vector (also meant not learning GLSL in one day). Skipped the light part and just made a depth fail system from Josh Beam's tutorial (need to personalize this more later) using tall cubes tied to my cubes as the shadow volumes. Worked really well!

Could use some efficiency cleanup (merge squares of cubes into one) for bigger (castle) levels, but other than that, I'm happy with this!