Hi,
it was wrong. I schould to create Shape Node.
In the geometry field I put the IndexedFaceSet Node.
In the appearance field I put an Appearance Node:
// create Texture Node
CComPtr<INodeObject> Appear;
if(SUCCEEDED(m_Engine->CreateNodeFromString( L"Appearance {texture ImageTexture { url \".\zoo.bmp\" } ",
&Appear)))
AfxMessageBox(L"Appearance object created");
if(FAILED(m_AppearanceNode->put_Value(Appear)))
AfxMessageBox(L"add Texture to Appearance failed");
But it does'nt work
|
|