Hello everybody!
I had just tried to use TextureMultiPassMaterial.
When i changed my old TextureMaterial, my eyes saw beatyfull error
RangeError: Error #1125: Index 0 is out of range 0.
at away3d.materials::MaterialBase/passRendersToTexture()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/materials/MaterialBase.as:299]
at away3d.core.render::DefaultRenderer/drawRenderables()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/render/DefaultRenderer.as:184]
at away3d.core.render::DefaultRenderer/draw()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/render/DefaultRenderer.as:112]
at away3d.core.render::RendererBase/executeRender()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/render/RendererBase.as:279]
at away3d.core.render::DefaultRenderer/executeRender()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/render/DefaultRenderer.as:58]
at away3d.core.render::RendererBase/render()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/render/RendererBase.as:243]
at away3d.containers::View3D/render()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/containers/View3D.as:679]
at Project/onEnterFrame()[C:\Users\MellRebook\Adobe Flash Builder 4.6\Project\src\Project.as:188]
Code:
cubeMaterial = new TextureMultiPassMaterial(Cast.bitmapTexture(DataClassDiff));
cubeMaterial.lightPicker = lightPicker;
cubeMaterial.mipmap =false;
cubeMaterial.bothSides=true;
cubeMaterial.specularMap = Cast.bitmapTexture(DataClassSpec);
cubeMaterial.normalMap = Cast.bitmapTexture(DataClassNormals);
.
Glad for any help!