THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/06/2003 at 20:17, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C.O.F.F.E.E ; C++ ;
---------
Hi all.
I want my material plugin to act like the c4d standard material about UVW Coordinates,But there is a problem about a TexData.
TexData is not influenced by TextureTag, Even if I get it from vd->GetTexData().
Please tell me what I should do for this.
void CelMaterial::CalcSurface(PluginMaterial *mat, VolumeData *vd)
{
/* Although vd->tex->lenx and ox changes by TextureTag's Projection setting, It does not change by some TextureTag's Length and Offset value.*/
Vector col;
vd->ProjectPoint( vd->tex, vd->lhit, vd->p, vd->n, &uv) );
col = MyBaseChannel->Sample( vd, &vd->uvw, vd->delta, &vd->n,
vd->time, vd->tex->texflag, 0.0, 0.0 );
vd->col = col;
return;
}