THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/10/2009 at 00:50, xxxxxxxx wrote:
User Information:
Cinema 4D Version: r11
Platform: Windows ;
Language(s) : C++ ;
---------
Hi there,
in a shader plugin i am trying to get the position of all objects in a scene, to do some further calculations. I am doing it this way:
> `
\> if (volumeData)
\> {
\> RayObject *parent = volumeData->op;
\> if (parent)
\> {
\> oC = volumeData->GetObjCount()-1;
\> for (int i=0;i<oC;i++)
\> {
\> rObj = volumeData->GetObj(i);
\> p1 = rObj->mp;
\> p2 = parent->mp;
\> //using p2 works and gives some colors, but p1 returns black
\> value += p2/10000;
\> }
\> return value;
\> }
\> }
\>
`
any ideas what i am doing wrong ? Thanks in advance for your input
cheers,
Ello