Tue, 11/16/2004 - 13:48
Forums:
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
Fri, 04/08/2005 - 23:35
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