Page 1 of 1

1.3.0 and shadows?

PostPosted: Sun Mar 02, 2008 2:55 pm
by D'Lanor
I had shadows working in 1.2.1 by installing a newer version of alc_LightClasses.py over it. I think many of us got the shadow preview that way.

Now with 1.3.0 however I lost my avatar shadow again. Does anyone else have this problem?

Re: 1.3.0 and shadows?

PostPosted: Mon Mar 03, 2008 10:13 am
by boblishman
I also had a similar problem last week... I moved to a new machine, downloaded the plugin (v1.2.1) ... no avatar shadows ... so I downloaded the alc_lightclasses.py from the snv ... still no shadwows... the only way I could get then back was to copy the file from my old machine...

Re: 1.3.0 and shadows?

PostPosted: Mon Mar 03, 2008 3:25 pm
by D'Lanor
Well, for me it appears to be a different problem. There was some new code added since shadows were first implemented.

Code: Select all
        if lamp.mode & (Lamp.Modes["Sphere"]):
            self.fAttenDist = lamp.dist
        else:
            self.fAttenDist = lamp.dist * 10
        print "  Attensity distance %f" % self.fAttenDist

        self.fPower = lamp.energy
        print "  Power: %f" % self.fPower


And I think that kills my shadows because the shadow casting sunlight is at a distance of 300 and has an energy of 0.4.

Re: 1.3.0 and shadows?

PostPosted: Mon Mar 03, 2008 4:04 pm
by Nadnerb
Ahh, ok, so you were running into a more severe version of the problem I was having with my shadows, where they would be clipped past a certain distance from the avatar. It comes from having a much too ridiculously large atten dist on the shadowMaster. (which seems to start behaving irrationally due to low precision around 200) I've removed the insane multiplier from the svn version. You should be able to clean things up by just removing that block and putting "self.fAttenDist = lamp.dist" back.

Re: 1.3.0 and shadows?

PostPosted: Mon Mar 03, 2008 8:18 pm
by Chacal
Attensity?

:shock: