Hi, I’m coding a game for a class that must be able to run on all (or a large percentage) of my schools computers. 99% of these computers only have Intel GMA 900 or 950s, none of which have any hardware T&L or shader support (from what I gather from wikipedia). I was still hoping to put shadows in my game, and I was wondering if it is possible to do so without using a shader.
Specifically, I’m making an RTS style game, using GeoMipTerrain for my map. I was wondering if it is possible for the units to cast shadows on the ground, on trees, rocks, each other, etc.
strange. i’m pretty sure the intel gma 900 series already HAS shadermodel 2.0 including dx9 and opengl 1.4 support. vertexshaders semms to be implemented on the cpu,thought.
but shadows via shaders should be no problem at all.
I tried using ShaderDemo.py, however I couldn’t get it to work on my geoMipTerrain.
I used this code
def setupShadows(self):
# Initiate the shadows
print self.dlnp
print [unit.model for unit in self.allUnits]
self.shadows = [ShadowCaster(self.dlnp, unit.model, 0.5,0.5) for unit in self.allUnits]
there should pixelshader but no vertexshader (those are still available but they are computed on the cpu afaik, same witih T&L)
but for shadows that should be just enough. depending on the implementation of the shadows