MaterialData, CalcTransparency, CalcAlpha

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 22/05/2007 at 01:23, xxxxxxxx wrote:

User Information:
Cinema 4D Version:    
Platform:      
Language(s) :

---------
How to use those methods:
virtual void CalcTransparency(PluginMaterial* mat, VolumeData* vd);
virtual void CalcAlpha(PluginMaterial* mat, VolumeData* vd);

even if i set information about what my plugin requires from the raytracer, like this:

LONG ParticleVolume::GetRenderInfo(PluginMaterial *mat)
{
     return SHADER_TRANSPARENCY|SHADER_VOLUMETRIC|SHADER_ALPHA;
}

program never enter to this method. Only CalcVolumetric and CalSurface work.

It is easy to check with ParticleVolume from sdk.
Just write
     GePrint("CalcTransprarency"); in ParticleVolume::CalcTransparency <--- it never apper in console window.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 22/05/2007 at 02:17, xxxxxxxx wrote:

it will be called, but you the shaded objects have to be in a shadowed area. check this example file with the ParticleVolume example from the SDk. CalcTransparency will be called.

example file
trans.c4d

cheers,
Matthias