Yes, I've tried your solution and it works too.
Thanks!
Search found 11 matches
- Fri Mar 10, 2006 12:54 pm
- Forum: Irrlicht.NET
- Topic: Texture reference shared to all MeshSceneNode
- Replies: 8
- Views: 1775
- Fri Mar 10, 2006 8:10 am
- Forum: Irrlicht.NET
- Topic: Texture reference shared to all MeshSceneNode
- Replies: 8
- Views: 1775
- Thu Mar 09, 2006 4:29 pm
- Forum: Irrlicht.NET
- Topic: Texture reference shared to all MeshSceneNode
- Replies: 8
- Views: 1775
I read the documentation of the SetMaterialTexture method: Sets the texture of the specified layer in all materials of this scene node to the new texture. The problem is that I want to apply the texture only to one material of the mesh. Do you know if a method exists? I could create the method modif...
- Thu Mar 09, 2006 4:04 pm
- Forum: Irrlicht.NET
- Topic: Texture reference shared to all MeshSceneNode
- Replies: 8
- Views: 1775
- Thu Mar 09, 2006 3:44 pm
- Forum: Irrlicht.NET
- Topic: Texture reference shared to all MeshSceneNode
- Replies: 8
- Views: 1775
- Thu Mar 09, 2006 3:06 pm
- Forum: Irrlicht.NET
- Topic: Texture reference shared to all MeshSceneNode
- Replies: 8
- Views: 1775
Texture reference shared to all MeshSceneNode
Hi! I'm getting a reference to a texture of a mesh with this code: m_FullCardMeshNode.GetMaterial(0).Texture1 Then I replace the bitmap contained into that texture with another bitmap, but this change affects all the meshes on the screen. The other meshes are into the same SceneManager and derive fr...
- Wed Mar 08, 2006 8:03 am
- Forum: Irrlicht.NET
- Topic: bool keyboard input with c#
- Replies: 3
- Views: 2087
- Tue Mar 07, 2006 3:23 pm
- Forum: Irrlicht.NET
- Topic: Replacing a model texture at runtime
- Replies: 7
- Views: 1886
- Tue Mar 07, 2006 1:35 pm
- Forum: Irrlicht.NET
- Topic: Replacing a model texture at runtime
- Replies: 7
- Views: 1886
- Tue Mar 07, 2006 12:31 pm
- Forum: Irrlicht.NET
- Topic: Replacing a model texture at runtime
- Replies: 7
- Views: 1886
I had a look at C++ implementation, and ITexture has a virtual method ITexture::regenerateMipMapLevels(). Very interesting! I'll try to call it from my c# code. I will try to add missing method definition to ITexture and try this out later when I get home. Ok! Please, let me know the results! :D Is...
- Tue Mar 07, 2006 8:36 am
- Forum: Irrlicht.NET
- Topic: Replacing a model texture at runtime
- Replies: 7
- Views: 1886
Replacing a model texture at runtime
Hi all. I'm trying to replace the content of a texture (statically applied to the material using a 3d model tool) with the content of a bitmap, using the following code: IAnimatedMesh mesh = m_Device.SceneManager.GetMesh(@"Card.x"); m_FullCardMeshNode = m_Device.SceneManager.AddAnimatedMes...