Hello.
I've got two problems regarding the generating of object buffers in picture viewer for my VideoPostData.
1) I create a scene with object buffers enabled and I allocate them in my VideoPostData using
render->AllocateBuffer(VPBUFFER_MAT_NORMAL, 0, 8, true);
render->AllocateBuffer(VPBUFFER_SHADOW, 0, 8, true);
render->AllocateBuffer(VPBUFFER_OBJECTBUFFER, 1, 8, true);
render->AllocateBuffer(VPBUFFER_OBJECTBUFFER, 2, 8, true);
The first time I render the scene, everything appears great, but if I render again without changing anything, the object buffers appear black.
2) SetLine require differnt format in their void* data depending on their VPBUFFER_.
For example, if I use VPBUFFER_OBJECTBUFFER, it requires a greyscale buffer. For instance, if the image is 16 x 16, each line (void data) has to be 16 bytes.
If I SetLine to VPBUFFER_RGBA, each line has to be 16 * 4 bytes. Is this how it is supposed to be ?
Thank you very much for your time !