there are no erro throw,
I chane dot3Bitmap's bitmapdata,and re set the Dot3BitmapMaterial
but no dot3Bitmap include render.only have normal map render ,the
model look very darkness
when I change the code like this ,it can work.
if (torsoNormalMaterial)
{
torsoNormalMaterial.bitmap=dot3Bitmap;
return torsoNormalMaterial;
}
by the way ,I have another question ...
Dot3BitmapMaterial have no bitmap Property
and I want to change bitmap in Dot3BitmapMateria,also I want to
repeat bitmap,but there no function in current version engine. how can
I do it ?
because it Looks like Dot3BitmapMaterialFP10 just the normalmap effect
by the light ,I want to use Dot3BitmapMateria instead
Dot3BitmapMateriaFP10;
thank you
On 8月31日, 上午3时01分, Fabrice3D <[email protected]> wrote:
> can you post the errors?
>
> Fabrice
> On Aug 30, 2009, at 1:04 PM, vkt wrote:
>
>
>
> > and my skin. get normalMap such like
>
> > ////////////////////////////////////////////////////////////////////////////
>
> > public function get normalMap():Dot3BitmapMaterialF10
> > {
>
> > var dot3:Dot3BitmapMaterialF10=new Dot3BitmapMaterialF10
> > (dot3Bitmap, dot3NormalMap, {manual:true});
>
> > //torsoNormalMaterial.shininess=100;
> > dot3.specular=0.2;
> > return dot3;
>
> > }
> > ////////////////
> > On 8月30日, 下午7时03分, vkt <[email protected]> wrote:
> >> hi,all
> >> I have a problem when I re set mesh.material=skin.normalMap;
> >> the material won't work?
> >> why?
> >> here is my code piece.
>
> >> mesh.outline=null;
> >> mesh.material=skin.normalMap;//can work nice..
>
> >> after view render compelete.
> >> and I swich another type of material
> >> ////////////////////////////////////////////////////////////////////////////////////////////
>
> >> mesh.outline=new WireframeMaterial("yellow");
> >> mesh.material=new ColorMaterial(0,{alpha:.1});//can work nice..
>
> >> ////////////////////////////////////////////////////////////////////
>
> >> after view render compelete.
> >> and I reset it
>
> >> mesh.outline=null;
> >> mesh.material=skin.normalMap;//won't work so bad...
>
> >> ///
> >> and my away3d verson is 3.4
>
> >> anybody could tell me why?
> >> thanks.