Esempio n. 1
0
        protected void _PrintFbxLayerContainer(FbxLayerContainer obj, TextWriter writer)
        {
            int i;

            writer.WriteLine("    LayerCount = {0}", obj.GetLayerCount());
            for (i = 0; i < obj.GetLayerCount(); i++)
            {
                FbxLayer layer = obj.GetLayer(i);
                writer.WriteLine("        #{0}", i);
                _PrintFbxLayer(layer, writer);
            }
        }
Esempio n. 2
0
        protected void AcceptLayerContainer(FbxLayerContainer layerContainer, ISet <object> visitedObjects)
        {
            AcceptNodeAttribute(layerContainer, visitedObjects);
            Visit(layerContainer);

            int j;

            for (j = 0; j < layerContainer.GetLayerCount(); j++)
            {
                FbxLayer layer = layerContainer.GetLayer(j);

                int i;
                FbxLayerElementMaterial mats = layer.GetMaterials();
                if (mats != null)
                {
                    FbxLayerElementTemplate <FbxSurfaceMaterial> _mats  = mats;
                    LayerElementArrayT <FbxSurfaceMaterial>      marray = _mats.GetDirectArray();
                    //for (i = 0; i < marray.GetCount(); i++)
                    //{
                    //    Accept(marray.GetAt(i));
                    //}
                }

                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureEmissive));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureEmissiveFactor));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureAmbient));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureAmbientFactor));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureDiffuseFactor));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureSpecular));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureNormalMap));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureSpecularFactor));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureShininess));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureBump));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureTransparency));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureTransparencyFactor));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureReflection));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureReflectionFactor));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureDisplacement));
            }
        }
Esempio n. 3
0
 public void Clone(FbxLayer pSrcLayer)
 {
     throw new NotImplementedException();
 }
Esempio n. 4
0
 protected void _PrintFbxLayer(FbxLayer obj, TextWriter writer)
 {
     // TODO
 }