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

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
Nezumi
Posts: 15
Joined: Fri Sep 30, 2005 9:42 pm

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

Post 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 ?
RapchikProgrammer
Posts: 279
Joined: Fri Dec 24, 2004 6:37 pm

Post by RapchikProgrammer »

Please explain your question as it is not understandable what you are asking right now!
HantaCore
Posts: 21
Joined: Wed Mar 22, 2006 4:38 pm

Post 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
Currently working on a C# MMORPG using Irrlicht.NET
Locked