Load a 3ds Modle with Texture
Posted: Fri Aug 04, 2006 9:18 am
Hello,
i need help with loading a 3ds modle and his texture.
http://www.gerf.org/~nixon/gunboat.zip
My source is in VB.net Syntax:
with this code my Modle is in the game white.
Where is the error?
i need help with loading a 3ds modle and his texture.
http://www.gerf.org/~nixon/gunboat.zip
My source is in VB.net Syntax:
Code: Select all
Dim Model As Irrlicht.Scene.IAnimatedMesh
Dim Node As Irrlicht.Scene.IAnimatedMeshSceneNode
Dim ColAnim As Irrlicht.Scene.ISceneNodeAnimator
Dim Selector As Irrlicht.Scene.ITriangleSelector
Dim Tex As Irrlicht.Video.ITexture
Public Sub LoadModel(ByVal Path As String)
Model = Device.SceneManager.GetMesh(Path)
Node = Device.SceneManager.AddAnimatedMeshSceneNode(Model, Nothing, -1)
Node.SetMaterialFlag(MaterialFlag.LIGHTING, False)
Node.SetMaterialType(MaterialType.DETAIL_MAP)
End Sub
Sub SetTexture(ByVal Texture As String)
Tex = Device.VideoDriver.GetTexture(Texture)
Node.SetMaterialTexture(0, Tex)
End Sub
Where is the error?