On 30/01/2015 at 14:27, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 15
Platform: Windows ;
Language(s) : C++ ;
---------
Hi Plugin-Cafe,
in a custom material plugin I have a TEXTURE as an element in a channel. When I select a texture from my disk, the image gets loaded and is displayed as a small thumbnail, like this:
_<_img src="https://dl.dropboxusercontent.com/u/15216944/c4dforum/texturememory.png" height="159" width="600" border="0" /_>_
Is it possible to access the memory of the texture within C4D? So, for example, if I load a texture with 512x512x24 (like in the image above) I would like to get some form of representation in C++. In this case a pointer of type uchar8* and the info that this texture has 3 channels. Another form like a VPBuffer or BaseBitmap would be fine as well (actually even better!).
For clarification, this is the resource file:
GROUP MY_MATERIALGROUP { TEXTURE MY_MATERIAL_TEXTURE { OPEN; } }
If it is possible to access the image memory, is this image already gamma corrected, if I select "linear workflow" in C4D?
Thanks,
Andreas