Texture environment

Hi all,

I'm trying to integrate Texture environment in an MFC View:

myView->SetSurfaceDetail(V3d_TEX_ALL);
// we include a test for using texture environment
Handle(Graphic3d_StructureManager) aStrucMana = GetDocument()->GetAISContext()->MainPrsMgr()->StructureManager();

Handle_Graphic3d_TextureEnv tmpEnv = new Graphic3d_TextureEnv(aStrucMana, "env_medit.rgb");
myView->SetTextureEnv(tmpEnv);

But I don't see a difference when starting it. Do I have to change/modify still other structures (AIS objects for example) for seeing such effects??

Regards,

Patrik

Roman Lygin's picture

Hi Patrik,

I have never delt with Graphic3d_TextureEnv but I wonder what you are trying to do eventually. Is it to set a view background ?
Roman