On 28/07/2017 at 13:27, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R18
Platform: Windows ; Mac ;
Language(s) : C++ ;
---------
Hello,
My shader directly samples a bitmap, which is loaded from a texture file. In TRS when "Client Get Assets
On Demand" is turned on, this texture can not be found. I've tried to use NetRenderGetFileFromServer()
but it always returns false.
I'm doing this in ShaderData::InitRender().
Filename filename = ...;
Filename tex_filename = FindTexture(doc, filename);
NetRenderDocumentContext const* ctx = doc->GetNetRenderDocumentContext();
if (ctx && ctx->_service && !tex_filename.Content()) {
Bool res = NetRenderGetFileFromServer(ctx->_service, filename, tex_filename, irs.thread);
}
However, NetRenderGetFileFromServer() always returns false.
The scene that I'm testing with was saved using "Save Project with Assets" and the filename that
is passed for the second argument matches the filename of the texture in the scene's tex/ folder.
Hints to solve this are appreciated.
Cheers,