Another tut in 10 screenshots, My3d crashcourse for 3dsmax

A forum to store posts deemed exceptionally wise and useful

Postby belfegor » Sun Sep 24, 2006 11:19 pm

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.
User avatar
belfegor
 
Posts: 383
Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia

Postby Terrachild » Mon Sep 25, 2006 5:58 am

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

Postby belfegor » Mon Sep 25, 2006 6:07 am

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.
User avatar
belfegor
 
Posts: 383
Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia

Postby sgt_pinky » Sun Oct 22, 2006 3:42 am

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
User avatar
sgt_pinky
 
Posts: 149
Joined: Sat Oct 14, 2006 11:20 am
Location: Melbourne, Australia

Postby afecelis » Sun Oct 22, 2006 3:50 am

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

and recompile it using the max8 sdk.
afecelis
Admin
 
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia

Postby sgt_pinky » Mon Oct 23, 2006 2:46 am

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
User avatar
sgt_pinky
 
Posts: 149
Joined: Sat Oct 14, 2006 11:20 am
Location: Melbourne, Australia

Postby Masterhawk » Sat Jan 06, 2007 9:46 pm

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

Postby afecelis » Wed Jan 10, 2007 4:15 pm

Just re uploaded them! :wink:
afecelis
Admin
 
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia

Postby raven_coda » Thu Jun 28, 2007 3:32 am

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.
User avatar
raven_coda
 
Posts: 89
Joined: Thu Aug 17, 2006 8:11 pm
Location: Salt Lake City, UT, USA

Postby dejai » Thu Jun 28, 2007 11:09 am

Confusing yet interesting..
Programming Blog: http://www.uberwolf.com
dejai
 
Posts: 519
Joined: Sat Apr 21, 2007 9:00 am

Previous

Return to FAQs, Tutorials, Howtos, and external tool lists

Who is online

Users browsing this forum: No registered users and 0 guests