THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/06/2007 at 10:53, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.6+
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
---------
Hi All,
there is a way to get the array of VPBuffer if i set the render of each light and the array of the VPBuffer for all objects ID when i set multipass rendering?
Here some code:
LONG buffercount = 11;
VPBuffer **myVpBuffers = (VPBuffer** ) GeAlloc (buffercount * sizeof(VPBuffer* ));
for (LONG iBuf = VPBUFFER_RGBA; iBuf < VPBUFFER_ATMOSPHERE_MUL; iBuf++) {
myVpBuffers[iBuf] = render->GetBuffer(iBuf,0);
}
so myVpBufferrs _will be null if corrispondent multipass is not set.
But will be good to get the pointer to the lights and Id :)
thanks in advance
Renato