Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

C++ getFaceMtlIndex API is given incorrect material index for instanced Objects

C++ getFaceMtlIndex API is given incorrect material index for instanced Objects

Anonymous
Not applicable
506 Views
1 Reply
Message 1 of 2

C++ getFaceMtlIndex API is given incorrect material index for instanced Objects

Anonymous
Not applicable

I have created the scene with following the steps,

  • Created a Sphere
  • Created Multi/Sub-Object Material using Material Editor
  • Assigned 3  standard materials with bitmap for above Multi/Sub-Object Material
  • Assigned Multi/Sub-Object Material to the Sphere
  • Separated the Sphere for UVW clusters using Flatten Mapping method
    • Unwrap UVW Modifier > Edit UVs rollout > Open UV Editor button > Edit UVWs dialog > Polygon sub-object level > Mapping menu > Flatten Mapping
  • Animated Sphere using Material Modifier with applying 3  standard materials IDs
    • Material IDs are 1, 2 and 3
  • Cloned a Sphere object using instance option

Instanced object is taken incorrect material ID for relevant time which was added in the Material Modifier animation.

Could anyone please check it and advise me to get correct material IDs for above user scenario?

 

I have attached the sample scene with above issue occurred.

0 Likes
507 Views
1 Reply
Reply (1)
Message 2 of 2

istan
Advisor
Advisor

..is this really a C++ SDK question? I don't see any code..

0 Likes