Rob

I spoke too soon, though the light source colour problem has been
resolved, a new fault seems to have been introduced.

The Ambient light shadow no longer lines up with the direct light
shadow - for some angles, not all.

Take a look at the attached image, it is looking down on the pole of
my Moon sphere, the ambient light is set to zero, but you can see a
wedge between the true shadow edge (from direct light) and where the
deep ambient (black in this case) shadow starts. As I say this does
not happen for all angles of rotation of the light source around the
sphere, so I suspect it is a quadrant thing for a trig function
somewhere.

http://groups.google.com/group/away3d-dev/web/misaligned_ambient.jpg

Apologies for the low contrast image, I'm playing around trying to
stop burn out in the high-lights whilst retaining some definition up
the shadow.

Regards
Mark

On Feb 3, 1:59 pm, Rob Bateman <[email protected]> wrote:
> whoops. yeah, thanx for that! trace removed
>
> glad to hear things are working for you now.
>
> Rob
>
>
>
> On Wed, Feb 3, 2010 at 1:33 PM, M Crossley <[email protected]> wrote:
> > Thanks Rob, that has fixed it. I'm most grateful.
>
> > I did notice that there seem to be some debug messages when the movie
> > runs now, I don't know if they are related to your code change:
>
> >  _szx 1
> >  _szy 0
> >  _szz -3.4450524030726903e-16
>
> > Cheers
> > Mark
>
> > On Feb 3, 10:39 am, Rob Bateman <[email protected]> wrote:
> > > Hey Mark
>
> > > had a look at your sample, and corrected a matrix calculation that should
> > > fix your problem. patch has been uploaded to the svn trunk - let us know
> > if
> > > it works!
>
> > > cheers
>
> > > Rob
>
> --
> Rob Bateman
> Flash Development & Consultancy
>
> [email protected]

Reply via email to