On 11/08/2015 at 02:44, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform:
Language(s) :
---------
Hello guys,
I'm creating a C4D reader for my software, essentially I want to be able to load models with their textures and animation.
I just got started with the work, I'm stuck with the texture retention bit:@
Basically what I could find through the SDK so far is this
BaseTag* tag = object->GetTag(Ttexture);
BaseMaterial* assignedMat = ((TextureTag* )tag)->GetMaterial();
Int32 ColorChannel = 0;
Vector RGB = assignedMat->GetAverageColor(ColorChannel);
pGeneralMat->SetColor(RGB.x, RGB.y, RGB.z, 0); // pGeneralMat is material in my software
Now I wanna get the Normals, Bump, Alpha .. of the material on the object
the only class I could find to provide these values are in BaseMaterial Get Calculations, but all the methods require an argument (VolumeData * )
Here's my problem! I HAVE NO IDEA WHAT THAT STRUCT IS OR HOW TO INITIALIZE IT
I've been all over the internet and sdk trying to figure out how to set that parameter with no luck
Could somebody please help me figure this out, and it would be great if you could provide some code samples in C++
Thanks.