Another tut in 10 screenshots, My3d crashcourse for 3dsmax

A forum to store posts deemed exceptionally wise and useful
belfegor
Posts: 383
Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia

Post by belfegor »

Terrachild wrote:No I didn't.

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.
Terrachild
Posts: 21
Joined: Sun Sep 03, 2006 5:58 am

Post by Terrachild »

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.

Thanks
belfegor
Posts: 383
Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia

Post by belfegor »

Terrachild wrote: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.
you must specify "working directory" in IDE-s options.or copy all files where
your main.cpp is.
Small FPS demo made using Irrlicht&NewtonDEMO
InfoHERE
Its at very early stage but i think im crazy enough to finish it all alone.
sgt_pinky
Posts: 149
Joined: Sat Oct 14, 2006 11:20 am
Location: Melbourne, Australia

Post by sgt_pinky »

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
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

You can grab the sorce of the my3d exporter here:
http://my3dproject.nm.ru/

and recompile it using the max8 sdk.
sgt_pinky
Posts: 149
Joined: Sat Oct 14, 2006 11:20 am
Location: Melbourne, Australia

Post by sgt_pinky »

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
Masterhawk
Posts: 299
Joined: Mon Nov 27, 2006 6:52 pm
Location: GERMANY
Contact:

Post by Masterhawk »

Hey afecelis,
I wanted to try your tutorial, but the pics don't exist on your server....I hope they'll come back....

Thx masterhawk
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

Just re uploaded them! :wink:
raven_coda
Posts: 89
Joined: Thu Aug 17, 2006 8:11 pm
Location: Salt Lake City, UT, USA
Contact:

Post by raven_coda »

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.
dejai
Posts: 522
Joined: Sat Apr 21, 2007 9:00 am

Post by dejai »

Confusing yet interesting..
Programming Blog: http://www.uberwolf.com
Post Reply