setShadowCaster not working

Hi

When using setShadowCaster on the directional light in my program, I get this error:

:gobj(error): created-shader: uniform in unknown k_dlighttex0: invalid type for non-prefix parameter
:gobj(error): Shader encountered an error.

The program runs though, but no shadows appear.

I am using a simple scene with a car, a road, a directional and an ambient light.

Models where created in blender and exported with the EGG exporter.

What could cause this problem?

I’m attaching some of the relevant source.

		self.directionalLight = self.render.attachNewNode( DirectionalLight( "directionalLight" ) )
		self.directionalLight.setPos(0,0,999)
		self.directionalLight.node().setDirection( Vec3( 1, 1, -2 ) )
		self.directionalLight.node().setColor( Vec4( .7, .7, .7, 1 ) )
		self.directionalLight.node().setShadowCaster(True, 12, 12)
		self.ambientLight = self.render.attachNewNode( AmbientLight( "ambientLight" ) )
		self.ambientLight.node().setColor( Vec4( .2, .2, .2, 2 ) )
		self.render.setLight(self.directionalLight)
		self.render.setLight( self.ambientLight )
...
self.car.setShaderAuto()
self.track.setShaderAuto()

Version of Panda3D: CVS 20101204

Edit: OS: ArchLinux x86_64

I have the same problem…

:gobj(error): created-shader: uniform in unknown k_dlighttex0: invalid type for non-prefix parameter
:gobj(error): Shader encountered an error.

this is the first time that i have this problem…

when i used ubuntu 9.10 (karmic), everything goes nice, i mean, the shadow caster…

but now, with ubuntu 10.10 (maverick), the shadow caster don’t run correctly… i don’t know :cry: :cry: :cry:

I hope that somebody help us

P.D.: the vertion i use is 1.7.0 and 1.7.1, and both of them have the same problem with shadow caster. I tried to reinstal the cg-toolkit but… that don’t work.

P.D.2: sorry for my english :blush: :blush:

Hi

Someone else was having the same problem with their spot light, but so far looks like no solution to the problem was found.

see:[url]shadows]

I just checked in a fix to CVS.

:smiley: :smiley: :smiley: :smiley: :smiley: :smiley: :smiley:

It worked for me, i’m so happy.

Thank you so much rbd :wink: :wink:

Matthewop: try to download the last build of panda from here.