THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/05/2005 at 09:13, xxxxxxxx wrote:
Hi,
I still have a problem here. The RayObject pointers of primitives and/or deformed objects in InitRender don´t seem to match the ones during rendering.
Anybody an idea how to retrieve the correct rayobject for a primitive or deformed object for a baselink object?
dorig = (BaseObject* )data->GetObjectLink(INST_MASTER,is->doc); if(!dorig) return LOAD_OK;
orig = NULL;
if(is->vd)
{
VolumeData* vd = is->vd;
for(LONG i=0;i<vd->GetObjCount();++i)
{
//Get RayObject
RayObject* temp = vd->GetObj(i);
if(temp->link==dorig)
{
/*there are 3 objs in the scene and this condition is never true, which is quite impossible as it´s an object from within this scene. :) */
orig = temp;
break;
}
}
}