Hello,
I am trying to retrieve VRay diffuse file map name and the UV channel to which it is applied.
Actually I have:
IParamBlock2 *pblockMaps=mtl->GetParamBlockByID(VRayMtlParameters::vrayMtl_maps _id);
int diffuse_map_on = pblockMaps->GetInt(VRAYMTL_TEXMAP_ON_PARAMID(VRayMtlParameter s::SUBTEXNO_DIFFUSE), ip->GetTime());
if (diffuse_map_on)
{
Texmap *diffuse_texture = pblockMaps->GetTexmap(VRAYMTL_TEXMAP_PARAMID(VRayMtlParameter s::SUBTEXNO_DIFFUSE));
// How can I access the Diffuse file map name and map channel number to which the map is applied ?
Any help would be great !
Thanks,
Manuel
I am trying to retrieve VRay diffuse file map name and the UV channel to which it is applied.
Actually I have:
IParamBlock2 *pblockMaps=mtl->GetParamBlockByID(VRayMtlParameters::vrayMtl_maps _id);
int diffuse_map_on = pblockMaps->GetInt(VRAYMTL_TEXMAP_ON_PARAMID(VRayMtlParameter s::SUBTEXNO_DIFFUSE), ip->GetTime());
if (diffuse_map_on)
{
Texmap *diffuse_texture = pblockMaps->GetTexmap(VRAYMTL_TEXMAP_PARAMID(VRayMtlParameter s::SUBTEXNO_DIFFUSE));
// How can I access the Diffuse file map name and map channel number to which the map is applied ?
Any help would be great !
Thanks,
Manuel
Comment