Hi, has anyone had a chance to have a look at this? I still have the
problem with a non-white light source.

Many thanks if you can afford the time.

Mark

On Dec 29 2009, 6:28 pm, MarkC <[email protected]> wrote:
> OK, I kicked the kids off the 'puter ;-)
>
> I have put a zip file in the Files 
> section:http://groups.google.com/group/away3d-dev/web/simple_Moon3D.zip
>
> In Moon3D.as...
>
> Lines 114,115 change the light source.
>
> I have stripped out all my extrenous code for tweening and external
> interfaces etc.
>
> Hopefully this gives you enough to go on - either a bug or error on my
> part.
>
> I took some of the code (and Asteroid normal map) from 
> here:http://blog.tartiflop.com/tag/normal-mapping/
>
> Many thanks
> Mark
>
> On Dec 29, 4:41 pm, MarkC <[email protected]> wrote:
>
>
>
> > Thanks Rob
>
> > I've combined several tutorials :) I'll strip my code down to the
> > minimum and post it in the files section along with the images etc.
>
> > It may be tomorrow before I can do this though - kids have taken over
> > my main PC (which has Flash CS4 installed on it) to play games!
>
> > Mark
>
> > On Dec 29, 1:28 pm, Rob Bateman <[email protected]> wrote:
>
> > > Hey Mark
>
> > > which tutorial code did you use to replicate the problem? would be good to
> > > get the same effect occuring here before attempting to fix the bug
>
> > > cheers
>
> > > Rob
>
> > > On Mon, Dec 28, 2009 at 2:30 PM, MarkC <[email protected]> wrote:
> > > > Also confirmed that this happens both with the Dot3BitmapMaterialF10
> > > > and Dot3BitmapMaterial materials.
> > > > Also tried using one of the tutorial normal maps to rule out mine
> > > > being 'odd' in some way - same behaviour.
>
> > > > Mark
>
> > > > On Dec 24, 11:17 am, MarkC <[email protected]> wrote:
> > > > > I should have added, that if I use a PhongMaterial then the rendering
> > > > > is correct with respect to both the shadows and the color applied to
> > > > > the Moon.
>
> > > > > Regards
> > > > > Mark
>
> > > > > On Dec 24, 10:16 am, MarkC <[email protected]> wrote:
>
> > > > > > Now I finally have my Dot3BitMapMaterial working (thanks Fabrice) I
> > > > > > have hit another problem...
>
> > > > > > I am using a DirectionalLight3D to illuminate you Moon sphere, here 
> > > > > > it
> > > > > > is with the default white light colour applied:
>
> > > > > >http://groups.google.com/group/away3d-dev/web/Capture_White.jpg
>
> > > > > > If I change the .color of the directional light (in this case I have
> > > > > > set it to 0xFF00D0 - which is a bright purple/magenta colour) then 
> > > > > > two
> > > > > > unexpected things happen. Firstly the shadow is no longer rendered
> > > > > > correctly, and secondly the colour applied seems to be the inverse 
> > > > > > of
> > > > > > light source?
>
> > > > > > Here is the render with the only change being the light source color
> > > > > > set to 0xFF00D0:
>
> > > > > >http://groups.google.com/group/away3d-dev/web/Capture_Shaded.jpg
>
> > > > > > The relevant bits of code are:
>
> > > > > >   sun = new 
> > > > > > DirectionalLight3D({color:0xFFFFFF,brightness:1.2,ambient:
> > > > > > 0.1,diffuse:0.9,specular:0});
> > > > > >   var moonMaterial:Dot3BitmapMaterialF10 = new Dot3BitmapMaterialF10
> > > > > > (Cast.bitmap(moonMap0),Cast.bitmap(normalMap));
> > > > > >   moonMaterial.shininess = 0;
> > > > > >   moonMaterial.specular = 0;
>
> > > > > > Anything obvious I am doing wrong?
>
> > > > > > Thanks
> > > > > > Mark
>
> > > --
> > > Rob Bateman
> > > Flash Development & Consultancy
>
> > > rob.bate...@gmail.comwww.infiniteturtles.co.ukwww.away3d.com-hidequoted 
> > > text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

Reply via email to