Hi!
I try write rendering Add-on (use reference Rendering DevKit) for ArchiCAD 11.
But I can't solve one problem:
When i create wrapper for
MaterialDialogInterfaceImp interface, in event
UpdatePreview I can't get material's texture.
Material->GetTextureIndex() always return zero.
bool AMMaterialDialogInterface::UpdatePreview (GSModeler::Material* material,
void* previewData,
long previewDataSize,
const GSModeler::DrawingContext& drawingContext,
GSModeler::PixelMap* pixelMap)
{
Report("AMMaterialDialogInterface::UpdatePreview: texture index=%d\n", material->GetTextureIndex());
...
During thus time,
material->GetTextureName(...) return correct texture name.
Whats wrong?
Sorry my english.