Author Topic: M&B Model importer (Alpha release)  (Read 15994 times)

0 Members and 1 Guest are viewing this topic.

Lurb

  • Recruit
  • *
    • View Profile
  • WB
M&B Model importer (Alpha release)
« on: November 22, 2005, 08:21:37 PM »
Update 23/11/05

-Added Thorgrim's DDS reading fix. Some texture saving tools work better than others. ATI The Compressonator works great for me. Thorgrim reports that PSP DDS export works OK too. I have had some problems with the DirectX SDK DDS tool and DXTBmp.
-Fixed about 80% of the memory leaks.
____________________________________________________________
It's a bit buggy, but mostly works,  I won't have time to work on it too much in the next few weeks, but after that i'll try to improve it.

The good:
It reads M&B BRF mesh files. Can show the models packed in the files. Can import/export models to and from Wavefront OBJ mesh files. Can also clone the models inside the files to make multiple versions.

The bad:
For now only "static" meshes can be properly imported. So helmets, furniture, weapons work, but body parts, horses or faces lose their bone attachment information,as the OBJ format cannot store this information. "Dinamic" meshes can be cloned though. Skeletons cannot be read yet. Quivers and bolt bags are also "special" so they aren't fully supported yet.
The material editor is a late addition, coded very fast to be able to release before the coming hiatus, so it has not been tested.

The ugly:
Is quite crude , not much user-friendliness in there. If you don't know what you are doing, it will crash.
BACKUP YOUR ORIGINAL FILES!
I don't check for input values, so the tool will crash.
I don't check for input values, so M&B will refuse to start, or will crash
so again,
BACKUP!
Only clean, pretty, kosher OBJ files will work, others will (you guessed it), crash the tool. Usual problems are relative vertex indices (not supported, use absolute if your conversion tool can do that) and missing vertex normals (LWO meshes lack them and some exporters to OBJ don't calculate and add them).

The link:
HERE

The (short) manual:
Open a brf mesh file (other brfs will crash at loading).
Click on meshes to see them.
CTRL-Mouse SHIFT-Mouse and mousewheel to move the mesh around.
Edit stuff, save your file and have fun.
Duplicated material or mesh names will crash M&B.
If you add a new material, click on the mesh reload button to update the materials on the combo box to reflect it (yes, that's crazy, but is late here).
I use mostly Wings3D for my 3D testing. Deceivingly ugly but with lots of hidden power. OBJ files exported from Wings tend to work well.

Post questions, suggestions and bug reports here, I'll read and will try to answer/implement/fix as time permits.

-GandalfTheGrey

  • ConnĂ©table
  • Squire
  • *
    • View Profile
  • Faction: Neutral
M&B Model importer (Alpha release)
« Reply #1 on: November 22, 2005, 08:38:11 PM »
You are the hero of all the mod designers. Great job!
One thing though, where do you live ? I mean, when is tonight for you ?

Thorn

  • Recruit
  • *
  • Onin no Ran Guy
    • View Profile
    • Thorned Network
M&B Model importer (Alpha release)
« Reply #2 on: November 22, 2005, 08:39:28 PM »
Lurb, can't you go for another format? Although OBJ isn't that bad, it's really basic and not very standard. IMHO Either .lwo (lightwave, as a lightwave fan. Most tools can export to this, plenty of free converters around) or .3ds (THE standard in the scene, although a bit depricated (will mesup your model if it's badly modelled))

Check out our Japanese Mount & Blade mod Onin no Ran at:
http://oninran.thorned.nl/

Thorn

  • Recruit
  • *
  • Onin no Ran Guy
    • View Profile
    • Thorned Network
M&B Model importer (Alpha release)
« Reply #3 on: November 22, 2005, 08:40:13 PM »
Quote from: Thorn
Lurb, can't you go for another format? Although OBJ isn't that bad, it's really basic and not very standard. IMHO Either .lwo (lightwave, as a lightwave fan. Most tools can export to this, plenty of free converters around) or .3ds (THE standard in the scene, although a bit depricated (will mesup your model if it's badly modelled))


I still love you though, great work :)

Check out our Japanese Mount & Blade mod Onin no Ran at:
http://oninran.thorned.nl/

Yoshiboy

  • Master baiter
  • Moderator
  • *
  • - Everything is a metaphor -
    • View Profile
    • My Website
  • Faction: Neutral
  • MP nick: irc://yoshiboy
  • M&BWB
M&B Model importer (Alpha release)
« Reply #4 on: November 22, 2005, 08:46:02 PM »
no, .obj is great :P AND widely used IMO.

Taurandhir

  • Sergeant
  • *
    • View Profile
M&B Model importer (Alpha release)
« Reply #5 on: November 22, 2005, 08:47:44 PM »
Wow, that's awesome news, I've been hoping for such a program for many months. Can you explain the structure of the BRF format, because I had almost decrypted the older RSF format and am very interested to find out how the new one works.
 
 And can you make a Blender importer/exporter?

jik

  • Knight
  • *
    • View Profile
  • Faction: Neutral
M&B Model importer (Alpha release)
« Reply #6 on: November 22, 2005, 08:54:39 PM »
Sounds awsome.  Even if you can't do the body parts yet, at least we can get the scale and work on other things.  Exellent :D

Lurb

  • Recruit
  • *
    • View Profile
  • WB
M&B Model importer (Alpha release)
« Reply #7 on: November 22, 2005, 08:57:00 PM »
OBJ is nice because it's quite simple, text based and usable with many tools. The drawback is the lack of support for "animatable" meshes.
LWO is harder to read and write, and lacks support for per-vertex normals, which are needed.
I'll start looking for a more suitable format, COLLADA maybe?, after I get some work and school stuff made, been delaying it too much.

Seff

  • This is not a Custom Title
  • Grandmaster Knight
  • *
  • Si vis pacem - para bellum.
    • View Profile
    • Minsc and Boo fansite! :D
  • Faction: Nord
  • MP nick: irc://Seff
  • M&BWB
M&B Model importer (Alpha release)
« Reply #8 on: November 22, 2005, 10:10:26 PM »
Quick questions:

Will we be able to make new armor models?

Can we give them their own texture?

and....um....thats aboot it, i think...
Catch me on IRC if you need to contact me.

Death will take you without a care for circumstance or timing; live life to the fullest without fear of death, or need to know why it chooses who it does - otherwise you are already dead.

Don't cry because it's over - smile because it happened.

[P]aradox

  • Recruit
  • *
    • View Profile
M&B Model importer (Alpha release)
« Reply #9 on: November 22, 2005, 10:21:02 PM »
Seff: no and yes. Like he said, the models with animation embedded in them are currently inaccessable. However, there will be an option to copy current models and give them new materials.
(Coming soon!)

Seff

  • This is not a Custom Title
  • Grandmaster Knight
  • *
  • Si vis pacem - para bellum.
    • View Profile
    • Minsc and Boo fansite! :D
  • Faction: Nord
  • MP nick: irc://Seff
  • M&BWB
M&B Model importer (Alpha release)
« Reply #10 on: November 22, 2005, 10:25:31 PM »
Quote from: [P]aradox
Seff: no and yes. Like he said, the models with animation embedded in them are currently inaccessable. However, there will be an option to copy current models and give them new materials.


m'kay...

*Cries!* I want more armours!!! WAAAHHHHH!!!
Catch me on IRC if you need to contact me.

Death will take you without a care for circumstance or timing; live life to the fullest without fear of death, or need to know why it chooses who it does - otherwise you are already dead.

Don't cry because it's over - smile because it happened.

Ubberdorc

  • Regular
  • *
  • The Rustiest Armorer in town!
    • View Profile
M&B Model importer (Alpha release)
« Reply #11 on: November 23, 2005, 12:38:41 AM »
So can we take an existing armor, copy it, rename it, then give it a new texture?
Rats? I hate Rats...rats drive me crazy...crazy? I was crazy once they put me in a room..a rubber room...the room was filled with rats...rats? I hate rats..rats drive me crazy....

Leodan Flamelock

  • Knight at Arms
  • *
    • View Profile
  • Faction: Neutral
M&B Model importer (Alpha release)
« Reply #12 on: November 23, 2005, 12:49:09 AM »
Interesting, well after reading all this I have one question Lurb.

Will you be my daddy?
[16:06] * TehGherkin is now known as TupacsGhost
[16:06] <TupacsGhost> WASSUP VANILLAFACE
[16:06] *Flamelock is now known as BIGG1E
[16:06] <BIGG1E> TIME TO DIE MUHFUCKA
[16:06] <TupacsGhost> OH DA **** NO

Lurb

  • Recruit
  • *
    • View Profile
  • WB
M&B Model importer (Alpha release)
« Reply #13 on: November 23, 2005, 12:59:50 AM »
Quote from: Leodan Flamelock
Interesting, well after reading all this I have one question Lurb.

Will you be my daddy?


Wait until it crashes wiping out your M&B install, then I'll be your daddy  :lol:

It's almost finished, but I added a lot of stuff in the last few hours that will be going out virtually untested.

Lurb

  • Recruit
  • *
    • View Profile
  • WB
M&B Model importer (Alpha release)
« Reply #14 on: November 23, 2005, 02:25:34 AM »
It's out. I edited the first post with the link and some basic info. Now have fun. I have to plunge into real work 'til  Xmas  :x