I have a scene with the new 2024.4 particles, like a default Basic Emitter for instance.
I clone the scene and then call RenderDocument()
with the NODOCUMENTCLONE
flag on a thread, however that does not render the particles.
BaseDocument* renderDocument = static_cast<BaseDocument*>(myDocument->GetClone(COPYFLAGS_DOCUMENT, nullptr));
...
RenderDocument(renderDocument, renderSettings, nullptr, nullptr, bitmap, RENDERFLAGS_EXTERNAL | RENDERFLAGS_BATCHRENDER | RENDERFLAGS_NODOCUMENTCLONE, this->Get());
If RenderDocument()
is called without the NODOCUMENTCLONE
flag, then the particles are rendered fine.
I assume when RenderDocument clones the scene, it also triggers the particles to be simulated. Can you help me with what's missing to achieve the same behavior?
Have to note, no issue, if the particles are cached.