[feature request] MSTS .s mesh format

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
OakenheaD
Posts: 10
Joined: Fri Jun 26, 2009 10:18 am

[feature request] MSTS .s mesh format

Post by OakenheaD »

Guys, maybe i am a total noob, but:
I have a mesh in a custom format, which i want to import into Irrlicht. I more or less understand the format i want to import form, but how should i import it codewise in irrlicht:?:
The shape in question is MSTS shape file, if that helps.
Last edited by OakenheaD on Wed Jul 15, 2009 8:50 pm, edited 1 time in total.
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

Take a look at the mesh loaders that already come with irrlicht and adept them to read your custom format.
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
OakenheaD
Posts: 10
Joined: Fri Jun 26, 2009 10:18 am

Post by OakenheaD »

how do i modify them?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Usually with a text editor and good knowledge on C++ programming.
OakenheaD
Posts: 10
Joined: Fri Jun 26, 2009 10:18 am

Still losing it

Post by OakenheaD »

I have tried, but my programming skills have just failed me. Besides, VS9 wont compile the engine without DX8 SDK libraries, which are kind of hard to find.
I thought of another option - convert the file to irr format, so, where can i find it? Preferably heavily commented ;) - i am a physics student, so CG sort of escapes me :roll:
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I guess you need the irrmesh format instead, .irr only holds scenery information and refers to mesh files on the disk. You need to know 3d objects, though, but this might work without programming skills at least :wink:
Maybe you can describe some more details about the file format. What is described in the files. Do ou have specs for this file, maybe it's not too hard to write such a loader.
OakenheaD
Posts: 10
Joined: Fri Jun 26, 2009 10:18 am

Post by OakenheaD »

http://ifolder.ru/13093440
here it goes - a test shape (.s) file and a file which looks like general description. Except that theyre not commented.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Maybe you have a site which allows downloads without reading russian?
OakenheaD
Posts: 10
Joined: Fri Jun 26, 2009 10:18 am

Post by OakenheaD »

OakenheaD
Posts: 10
Joined: Fri Jun 26, 2009 10:18 am

Post by OakenheaD »

Perhaps i should change this to [feature request]
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, the data is simply structred. It is definitely possible to load at least parts of this file format into Irrlicht. I've seen that you proposed a train simulator project, and these files are also related. Do you have any use for this file loader besides loading files from the original simulator? Are there any free editors, tools which export this format, ...?!
OakenheaD
Posts: 10
Joined: Fri Jun 26, 2009 10:18 am

Post by OakenheaD »

Well, there are at least 1 editor made specifically for this format: Abacus Trainsim modeller. There also are a number of other editors which export into this format, such as [those i know] 3D canvas Pro, Google Sketchup, Gmax. It is also interesting to know, that there are a lot of professional quality freeware models n this format - having as much as 19000 polygons on lowest LOD.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Ok, that makes this format much more interesting then. I'll move the thread to the open discussion forum to keep this rolling. You may want to submit a feature request on our request tracker http://sourceforge.net/tracker/?group_i ... tid=540679
Post Reply