I didn't need to for Irrlicht to display the .3ds file I created with the same cube and texture.
When Irrlicht tries to load the .my3d file it prints out in the console:
"Could not open file of texture: " (heart symbol) "chris512.bmp"
The path in the "debug.ase" file says:
*BITMAP "C:\Documents and Settings\Christopher\My Documents\My Pictures\Chris Cartoon\chris512.bmp"
If irrlicht can't find the file, it doesn't look for it in the same directory as the .my3d file, the way it does with a .3ds file?
Not sure what to do.
Update:
I went into the "bin" folder where VB.NET creates the .exe file and started the program from there, instead of starting the program with "Start Debugging" in the IDE. Now the texture displays properly.
Final Update:
This is really quirky.
If I create a folder in the "bin" folder where the .exe is, and move the .my3d file and the texture file into it, then change the path
from:
mesh = device.SceneManager.GetMesh("chris.my3d")
to:
mesh = device.SceneManager.GetMesh("my3d scenes\chris.my3d")
both the .exe, and the IDE find the texture.
Why is this?
First put your texture in folder where your exe will be produced(in my case Debug folder(created it manualy)) and then in 3dsMAX load and aply that texture to mesh(use UVW modifier (if needed) to correct anomalies),
export mesh to the same folder and it will work.
It is working now, but there is still a quirk in the way VB.NET and maybe other 2004 .NET IDE's find files while debugging.
Even if I do as you suggest and put the texture file in a folder with the .exe, the path that 3DSmax creates in the .my3d file will be fine for me, but not for distribution. I guess it doesn't matter though, Irrlicht finds it if you follow the rules. I just don't know all the rules yet.
I had this working fine with Max 6. Now I have Max 8 (I just used the my3d Max 7 version) - it sort of works. Most things are lightmapped, but my ground is completely black.
Any chance of a Max 8 version of the exporter
Cheers,
Pinky
Intellectuals solve problems - geniuses prevent them. -- Einstein
#irrlicht on irc.freenode.net
I thought I replied to this post, but it doesn't seem to have saved.
Anyway, what I said was thanks afecelis. My problem was not with the my3d exporter after all - I forgot to turn on shadow casting for the light sources! The my3d exporter compiled for Max 7 works fine for Max 8 - at least for all the steps in your tutorial.
Cheers,
Pinky
Intellectuals solve problems - geniuses prevent them. -- Einstein
#irrlicht on irc.freenode.net
Can someone repost the tutorial pics or better explain the data folder to me. When I try I get the following errors
Could not open file of texture: ÀGwood.jpg
Could not open file of texture: ÀGposter.jpg
Could not open file of texture: ÀGallstarg.jpg
Loaded mesh: room.my3d
the ÀG crap worries me. I hoping it's just me not understanding the whole data folder thing.
Definition of an Upgrade: Take old bugs out, put new ones in.