Dx9 Mesh tutorial problems :(

  • Thread starter Thread starter mutant
  • Start date Start date
M

mutant

Guest
Hi.
When im trying to put my own mesh into that tutorial i keep getting an error on this line:
Code:
meshTextures(i) = TextureLoader.FromFile(dev, materials(i).TextureFilename)
It says that path cannot be null.
I have my own texture too. This happens both in VB and C++.Do I need to change any paramters in that function so it loads my mesh?
Thanks in advance!
 
From the error message, I presume that one or both of your variables (dev, materials(i).texturefilename) are null.

Do you know how to inspect variables?
 
None of them are null, they are the same a with the original mesh,the only thing i change is mesh name and it doesnt work. That line woks perfectly with the mesh that is used originally with the tutorial.
 
I had to use a hardcoded path of the texture for it to work, im gonna work from that.
 
Back
Top