ParallelGraphics Forums
SDK
You are here: [Forums]::[General]::[SDK]

Registration 
Registration
Forgot your password?

Help 
Help
Support

Quick search 

Subscribe to newsletters 

Install Cortona VRML Client for FREE!
Outline 3D
Try RobinZone!
email:  password:
   General - SDK

Subject: Re: IndexedFaceSet Texture
Sender: mutafchiev@gmx.de 15.06.07 06:31

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

 


IndexedFaceSet Texture / mutafchiev@gmx.de / 15.06.07 04:22
     Re: IndexedFaceSet Texture / mutafchiev@gmx.de / 15.06.07 06:31
         Re: IndexedFaceSet Texture / nalex@parallelgraphics.com / 15.06.07 06:34
     Re: IndexedFaceSet Texture / mutafchiev@gmx.de / 15.06.07 06:30
     Re: IndexedFaceSet Texture / nalex@parallelgraphics.com / 15.06.07 05:42
         Re: IndexedFaceSet Texture / mutafchiev@gmx.de / 15.06.07 08:45
             Re: IndexedFaceSet Texture / nalex@parallelgraphics.com / 15.06.07 10:26
                 Re: IndexedFaceSet Texture / mutafchiev@gmx.de / 18.06.07 08:30
                 Re: IndexedFaceSet Texture / mutafchiev@gmx.de / 15.06.07 13:21

Messages in thread: 9


© 1998-2007 ParallelGraphics. All rights reserved. Terms of use.