Author Topic: Rigging Armors with Wings3d - Possible???  (Read 11593 times)

0 Members and 1 Guest are viewing this topic.

Manitas

  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Bandit
Rigging Armors with Wings3d - Possible???
« on: January 25, 2009, 04:49:56 PM »
....Yes it is.
sort of.


Introducing an utility converting .obj models to .smd, using template .smd models as lookup for rigging.
Download obj2smd (updated Apr 25)

Code: [Select]
obj to smd 3d model converter for Mount&Blade/BRFedit
-----------------------------------------------------


Usage:
Unzip the obj2smd.exe somewhere.
type in command line:

"obj2smd [insmd] [inobj] [outsmd]"

[insmd] - (optional) filename containing .smd template model (or concatenation of them) exported from BRFedit, default is "in.smd"
[inobj] - (optional) filename containing an .obj model to be rigged, default is "in.obj"
[outsmd]- (optional) name of the output smd file, default is "out.smd"

For convenience, it's best to put all the files in the same folder as obj2smd.exe (saves typing in filename paths), or to name the files the default names, then you can just doubleclick the obj2smd.exe


Remarks:
--------

1). Maintain the default BRFedit model orientation, that is:
- obj: Y+ is up, facing Z+, scale 1x (Y values in range [0,2])
- smd: Z+ is up, facing Y+, scale 10x
the script will reorient the obj automaticly.

2). When importing the model to BRFedit, uncheck the "Y/Z axis swap" box.

3). As a smd template, use a model of similar type and size as your obj model.
For best results, several smd models can be concatenated in one in.smd file 

Let me know if there are any problems.

Yoshiboy

  • Master baiter
  • Moderator
  • *
  • - Everything is a metaphor -
    • View Profile
    • My Website
  • Faction: Neutral
  • MP nick: irc://yoshiboy
  • M&BWB
Re: Rigging Armors with Wings3d - Possible???
« Reply #1 on: January 25, 2009, 10:58:05 PM »
Awesome, nice work.

Llew2

  • Cheap ass bum
  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Vaegir
  • MP nick: nK_Llew
  • M&BWB
Re: Rigging Armors with Wings3d - Possible???
« Reply #2 on: January 26, 2009, 12:30:51 AM »
Woah, if I'm getting this right, this is epic!   :D

Ruthven

  • Revs lil' helper
  • Grandmaster Knight
  • *
  • The root word in "Funeral" is "Fun"
    • View Profile
  • Faction: Neutral
  • MP nick: irc://Ruthven
Re: Rigging Armors with Wings3d - Possible???
« Reply #3 on: January 26, 2009, 12:35:41 AM »
Wait wait wait, you mean I could rig models with wings3d?

Nice!


Ibanez

  • Knight at Arms
  • *
  • Poets And Madmen rulz\m/
    • View Profile
  • Faction: Bandit
  • MP nick: CoR_Ibanez
  • M&BWB
Re: Rigging Armors with Wings3d - Possible???
« Reply #4 on: January 26, 2009, 12:54:45 PM »
Working perfect. I tried to rig my wolf with courser.smd I used blender. And I didn't make the wolf x1 scale or y+ up or z+ face. Because blender exporting options are different. Just import a native horse or armor obj to blender with your armor or horse mesh. And then, line up them well. Export your armor or horse mesh. And start the program. I have to say. Program works great!

Screenshot;
(click to show/hide)

A RTS Mod Is In Progress Don't Steal My Idea Please:D
An Open-Source Rain Effects Thingy Is In Progress Too^^

Njiekovic

  • Sergeant Knight
  • *
  • www.deathmetalbaboon.com
    • View Profile
    • deathmetalbaboon.com
  • Faction: Neutral
Re: Rigging Armors with Wings3d - Possible???
« Reply #5 on: January 26, 2009, 03:52:51 PM »
Great tool Manitas! This will save many people loads of time and trouble!
Thanks!

HokieBT

  • Grandmaster Knight
  • *
  • may the force be with you
    • View Profile
  • Faction: Neutral
Re: Rigging Armors with Wings3d - Possible???
« Reply #6 on: January 26, 2009, 06:06:32 PM »

I'll have to try this out, this sounds very cool!
 

saregona

  • Sergeant at Arms
  • *
  • The "Better Horses" Blondie
    • View Profile
    • My dA
  • Faction: Vaegir
  • MP nick: KoS_Saregona
Re: Rigging Armors with Wings3d - Possible???
« Reply #7 on: January 28, 2009, 03:45:16 AM »
*tears of joy*

Wow, thankyou, this should make my mod so much easier to finish! I had a massive problem with rigging my custom horse meshes... I hope this works for them! Thank you so much!! *love* :D

Pali Gap

  • Knight
  • *
  • Permanently Banned
    • View Profile
  • Faction: Neutral
Re: Rigging Armors with Wings3d - Possible???
« Reply #8 on: January 28, 2009, 05:16:41 AM »
This has inspired the Mongol team to create many camels!

Manitas

  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Bandit
Re: Rigging Armors with Wings3d - Possible???
« Reply #9 on: January 29, 2009, 12:02:10 AM »
Working perfect. I tried to rig my wolf with courser.smd I used blender.

Nice wolf,
To be honest, I didnt expect it would work well, cause wolf mesh is not very similar to horse's.

saregona

  • Sergeant at Arms
  • *
  • The "Better Horses" Blondie
    • View Profile
    • My dA
  • Faction: Vaegir
  • MP nick: KoS_Saregona
Re: Rigging Armors with Wings3d - Possible???
« Reply #10 on: January 29, 2009, 12:43:16 PM »
Grrr and humbug and more grrr... I can't do it...  :(

When I run the native horse SMD exported from brfedit (named in.smd) with my obj horse mesh (in.obj) it returns THIS:

Code: [Select]
Processing in.smd .....
 Processing in.obj .....
 Riggin' .....
 Assembling output smd.....
Traceback (most recent call last):
  File "obj2smd.py", line '162', in <module>
TypeError: 'NoneType' object does not support item assignment

So am I just doing it completely wrong or am I missing something or what? Could I have some detailed step by step instructions on how to do this please? Halp!

Sarrie

Manitas

  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Bandit
Re: Rigging Armors with Wings3d - Possible???
« Reply #11 on: January 29, 2009, 10:45:13 PM »
The .obj must have texture coords. (kinda obvious, but I should have mentioned)
UVmap it, reexport and retry.

Zaro

  • italiano stallion-o
  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Neutral
Re: Rigging Armors with Wings3d - Possible???
« Reply #12 on: January 29, 2009, 10:49:49 PM »
Awesome, I'll have to try this out.

saregona

  • Sergeant at Arms
  • *
  • The "Better Horses" Blondie
    • View Profile
    • My dA
  • Faction: Vaegir
  • MP nick: KoS_Saregona
Re: Rigging Armors with Wings3d - Possible???
« Reply #13 on: January 30, 2009, 04:42:28 AM »
*face palms*

Oh, der me, that's so obvious... I feel stupid now :( Thank you for the response, I'll map and try again :P

Manitas

  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Bandit
Re: Rigging Armors with Wings3d - Possible???
« Reply #14 on: January 30, 2009, 03:56:22 PM »
*face palms*
Oh, der me, that's so obvious... I feel stupid now :( Thank you for the response, I'll map and try again :P
Not at all. Actually, anybody can happen to forget about UVmapping a model or just some vertices.

I added some more validations and error handling, so now you'll get a message saying what's wrong.
Link updated.