THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/01/2005 at 11:25, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;
---------
I'm here:
ch = ((TextureTag * ) tag)->GetMaterial()->GetChannel(CHANNEL_COLOR);
When i do
cont = ch->GetData();
name = cont.GetString(BASECHANNEL_TEXTURE);
GePrint("Color texture name: " + name);
i get the correct texture name so it's alright.
But now i have to get the texture bitmap. I tried
ch->GetBitmap() and i got NULL pointer. So i tried ch->GetShader()->InitRender() before with a InitRenderStruct created by me and nothing again.
And tried
ch->GetShader()->GetBitmap()
after
ch->GetShader()->InitRender()
and nothing :/
First: when a texture image lies on the PluginShader?
Second: plz, help me, i can't make it work :/
thx!!