THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/01/2007 at 14:25, xxxxxxxx wrote:
Cinema 4D Version: 9.52
Platform: Mac OSX ;
Language(s) : C++ ;
I am trying to access the VolumeData from within a VideoPost plugin. The SDK says that the VolumeData should be available with the VP_RENDER message.
Well, the VolumeData seems to be there (I can read out the camera position for instance), but using raytracing commands such as TraceGeometry doesn't work. I have to use VP_INNER to make thes commands work with the VolumeData.
Is this correct?
This would be quite odd as I try to calculate some data within the videopost plugin and hand it over to a shader plugin. Unfortunately during the VP_INNER routine the shaders are already initialized.
On 14/01/2007 at 14:40, xxxxxxxx wrote:
hmm, according to the docs there shouldn´t be any problem with these commands. As long as the volumedata is available and the document is there, they should work (at least I cannot see anything in the docs that tell otherwise).
At least TraceGeometry should be available (TraceColor probably not, because it cannot sample the shaders etc. correctly without them being initialised).
On 14/01/2007 at 14:51, xxxxxxxx wrote:
that's what I thought, too, but TraceGeometry just doesn't report any hits while in VP_RENDER mode. VP_INNER works fine.
On 14/01/2007 at 15:07, xxxxxxxx wrote:
Sounds weird. Sorry, cannot help then. Hopefully the support can.
On 17/01/2007 at 01:56, xxxxxxxx wrote:
It seems that the VolumeData is not completly filled at VP_RENDER. I noticed this some time ago when I tried to use ProjectPoint and GetPointUVW from within VP_RENDER. It worked fine from within VP_INNER. I have to check if this is an error in the documentation.
On 17/01/2007 at 03:38, xxxxxxxx wrote:
Thanks for checking Matthias.
That would be a little be odd if only a part of the VolumeDate would be filled
Please let me know if the developers have any ideas about a work around.
Btw. how does a Radiosity Prepass work then. Also within the VP_INNER part?
On 24/01/2007 at 03:53, xxxxxxxx wrote:
Got some answers fromthe developers. The VolumeData is indeed not yet fully initialized during VP_RENDER. Between VP_RENDER and VP_INNER displacement, mesh setup and normal initializing will be done. Radiosity prepass is done after VP_INNER.
sorry I don't know a workaround yet.
On 24/01/2007 at 04:00, xxxxxxxx wrote:
Thanks a lot for clearing this up.
So I have to find another solution.