Page 1 of 1

Detail map... doesn't work in Irrlicht.Net ?

Posted: Tue Apr 11, 2006 6:54 am
by Nezumi

Code: Select all

//Terrain
ITerrainSceneNode m_terrain = m_manager.AddTerrainSceneNode(pathMedia+"/Maps/Hmap0.jpg",node,-1,new Vector3D(-20000,-1000,-20000),new Vector3D(200,20,200),new Color());
ITexture detail = m_video.GetTexture(pathMedia+"/Maps/Dmap0.jpg");
ITexture terrain = m_video.GetTexture(pathMedia+"/Maps/Dmap0.jpg");
m_terrain.SetMaterialTexture(0,terrain);
m_terrain.SetMaterialTexture(1,detail);
m_terrain.ScaleTexture(45.0f,45.0f);
m_terrain.SetMaterialFlag(MaterialFlag.NORMALIZE_NORMALS,true);
m_terrain.SetMaterialType(MaterialType.DETAIL_MAP);
m_terrain.SetMaterialFlag(MaterialFlag.FOG_ENABLE,true);
//#End Terrain


Why the detail texture is calling as the terrain texture ?

Posted: Tue Apr 11, 2006 3:31 pm
by RapchikProgrammer
Please explain your question as it is not understandable what you are asking right now!

Posted: Wed Apr 12, 2006 7:02 am
by HantaCore
I have had the same problem, but with the recompiled version it works... Actually the problem was on the ScaleTexture, I was using a standard SceneNode...

Be sure to use a TerrainSceneNode