3D objects' shadows on other 3D objects

this is what I have to introduce lights/shadow mapping:

#__Lights___________________
        slight = Spotlight('slight')
        slight.setColor(VBase4(1, 1, 1, 1))
        slight.setShadowCaster (True, 512,512)
        lens = PerspectiveLens()
        slight.setLens(lens)
        slnp = render.attachNewNode(slight)
        slnp.setPos(0, 0, 20)
        slight.getLens().setFov(25)
        slight.getLens().setNearFar(10,18)
        slight.getLens().setFilmSize(50,50)
        slnp.lookAt(0,0,0)
        slight.showFrustum()
        render.setLight(slnp)

        alight = AmbientLight('alight')
        alight.setColor(VBase4(0.2, 0.2, 0.2, 0.5))
        alnp = render.attachNewNode(alight)
        render.setLight(alnp)
        render.setShaderAuto()

Which results in this (notice the lack of the cubes casting shadows on each other or the floor)

I’ve tried a lot of stuff, including creating dummy spotlights, using directional lights, playing with nearfar and fov

IF THE DEFAULT SHADOW MAPPING is only for shading object sides and not shadow casting, please let me know.

Also, if that is the case, I would greatly appreciate help with a shader that allowed me to keep my tiled textures. The demo program (shadowmapping-advanced) uses a shader that achieves the desired results with shadows, but stretches the texture out over the entire surface… I would fix it, but I am NOT familiar with C++ and really dont know whats going on in those .sha files at all.
[/code]

Is this with 1.7.1? I believe some shadow-related bugs were fixed in 1.7.1.

Nope. its with 1.7.0

something to do tomorrow.

hopefully that resolves it. I really dont think i need a shader for something this simple.

Now just to apply collisions and physics to the blocks.

        alight = AmbientLight('alight')
        alight.setColor(Vec4(0.2, 0.2, 0.2, 1))
        alnp = render.attachNewNode(alight)
        render.setLight(alnp)
        
        OverLight=Spotlight('OverLight')
        OverLight.setColor(Vec4(0,1,0,1))
        lens = PerspectiveLens()
        OverLight.setLens(lens)
        OverLight.getLens().setFov(15)
        OverLight.getLens().setNearFar(2,18)
        OverLight.showFrustum()
        OLnp = render.attachNewNode(OverLight)
        OLnp.setPos(0,-5,15)
        OLnp.lookAt(0,0,0)
        render.setLight(OLnp)
        
        render.setShaderAuto()

sooo now i dont even get the “spotlight effect” of a circular highlight on the floor…

[/u]

getting this error in the cmd window? could it be my video card? what does this mean?

Did you update your video card drivers? Does your video card support shaders?

it should.

Updated my drivers on my laptop and my pc, still neither runs it…

I have a nvidia geforce 9500 on my pc.

Ignorance is present here. If it can handle new games, it should handle this, right?

Wait, so this is a different error? Hmm… I wonder if it’s a new bug now that appeared new in 1.7.1.

Ill check the actual error when i get home to my desktop, but i think i remember it being the same as the above screencap