Author Topic: Download link and main info! [latest ver 0.0.79 -- 1 Aug 2012]  (Read 127224 times)

0 Members and 1 Guest are viewing this topic.

mtarini

  • Resource Wrangler
  • Moderator
  • *
  • [TLD] and [OpenBRF]
    • View Profile
    • [home]
  • Faction: Neutral
Re: Open-BRF (a new brfEdit) [updated 12 Ago 2009]
« Reply #45 on: August 12, 2009, 10:52:35 PM »
Thanks! Fixed. (re-download the exec)

With such a detailed bug report, it was easy to replicate and kill the bug.
If you could confirm...

cdvader

  • Guest
Re: Open-BRF (a new brfEdit) [updated 12 Ago 2009]
« Reply #46 on: August 12, 2009, 11:04:47 PM »
Confirmed! It works perfectly now. Thanks! I wish I would know C++ better (so far I can only create very simple programs like basic calculator, fahrenheit to celsius converters etc. Not huge and awesome stuff like this..)

cdvader

cdvader

  • Guest
Re: Open-BRF (a new brfEdit) [updated 12 Ago 2009]
« Reply #47 on: August 13, 2009, 12:10:02 AM »
I've encountered a new (fun) bug. Basically, open uni_strikes.brf . Select the second choice, should be "strikes3_head". Now don't press anywhere and go to File > Open and open uni_strikes3.brf . And now, look at the render screen. Fun, huh? If you do the same exact thing but select the third choice, then three meshes appear.

In one-word: restrict the "choice" only to one at a time. Hope I was clear enough. :)
cdvader

EDIT: Can also someone please re-send me "ani_death.brf" ? :P Seems that I messed that up, too, when I was using the old version.
« Last Edit: August 13, 2009, 01:09:01 AM by cdvader »

amade

  • Grandmaster Knight
  • *
  • Own up and take it like a man
    • View Profile
    • Studio Wossname
  • Faction: Neutral
Re: Open-BRF (a new brfEdit) [updated 12 Ago 2009]
« Reply #48 on: August 13, 2009, 03:08:05 AM »
amade: the new version should load the rigged mesh correctly. The "problem" was just a scaling problem that BrfEdit added
for some reason on export. Anyway, now I add it too, so OpenBrf will happily inherit SMD rigged meshes left by BrfEdit.
Niiiiice rigged armor, btw. Impressive!  And thanks for the test data.

Thanks for the compliment :D
Import works fine now for all SMDs of various sources (except for one case, see bug report below), but export is still mostly wonky.


BUG REPORT

I tried to export skeletons to make new animations and got this:
(click to show/hide)

Going back to the rigged mesh SMDs:
(click to show/hide)
This was exported from a rigged mesh that was already in a BRF (I'm following the same test as I did with ver 0.0.7) - the scale is right, I checked with old SMDs, but the bones are still pointing the wrong way in Blender. To further test this SMD, I moved some vertices around and re-exported it from Blender into SMD and then import it back into openBRF. Blender's export works fine so I expected it to still work alright by unmessing the bones like in the previous version but it gave me a new error when I tried to import:
(click to show/hide)
So I reimported the SMD back into Blender to see if I can still open it but Blender gave me this error instead:
(click to show/hide)
Weird... since when was there a named bone? All bones were numbered instead of named. So I checked the SMD I exported out using openBRF in Blender again and found out that all the bones have been renamed:
(click to show/hide)
As you can see in the weight paint mode, the verts are all still properly rigged but the bones and vertex group names have been renamed. I don't know if this is the cause of the problem.

I tried to import openBRF's exported SMD using BRFedit, it imports fine but it looks like this:
(click to show/hide)
As expected from how the bones are shown pointing the wrong way in Blender.

There's still an import problem related to exporting. I can import an SMD into BRF but when I try to export it out I get this error:
(click to show/hide)
SMDs I tested included native's, blender's, and openBRF's own exported SMD (ver 0.0.8 ).

One more exporting issue: It seems that it changes the SMD's material name to "material_name"? This gave me quite a bit of headache when I needed to import into Blender with textures (usually I import without textures but I need to import with textures to preserve the UV info), but it's an import script related problem which I managed to solve by copying a DDS file and renaming it as "material_name" and placed it in the same directory as the SMD. Though it'd be nice if in the future openBRF exports with the material reference given in the BRF, I wouldn't have known what the problem was if the import script didn't tell me what to look for!

Quote
Tul: problem with the import of rigged mesh "kind of" fixed. It was related to that >4 bones per vertex. But, even if now it load them, it is a bad idea to allow >4 bone per vertices as M&B will not use them. Thanks for the data!
Good info, I'll keep that in mind.

...

Whew!

Sorry for the long winded bug report, took me about a couple of hours to write it up with countless edits so hopefully it isn't confusing. There's bound to be some contextual errors I left in it. At any rate, great progress so far. At the very least I can still use this to import rigged SMDs+vertex animation (now I can import those female armors, yeehaw!)*. Keep up the great work!

*I just found out the Blender export script I use can't export animation sequences, I found another export script that can but need to test it thoroughly first.
« Last Edit: August 13, 2009, 09:42:22 AM by amade »

Don't you just love herding cattle?
*end.transmission - Studio Wossname*
___________________________________________________________________________________________________________________________

   .

cdvader

  • Guest
Re: Open-BRF (a new brfEdit) [updated 12 Aug 2009]
« Reply #49 on: August 13, 2009, 10:03:04 AM »
Yeah, I forgot to mention it, too. Exporting with BRFEdit, the skeleton was "numbered". This time it's named. Did you add that feature, mtarini?

cdvader

EDIT: If you look in skeleton_bodies.xml in Mount&Blade/Data, you can see they're named there, as well.
« Last Edit: August 13, 2009, 10:14:07 AM by cdvader »

Dain Ironfoot

  • Grandmaster Knight
  • *
  • No sex please, we're dwarves
    • View Profile
  • Faction: Neutral
Re: Open-BRF (a new brfEdit) [updated 12 Aug 2009]
« Reply #50 on: August 13, 2009, 10:44:24 AM »
*does a little dance*

pretty much works perfectly now. I'll work on polishing these animations up.
Ry'n ni yma o hyd

Swyter

  • Master Knight
  • *
  • »Star Wars Conquest Dev Team Leader
    • View Profile
    • [my tiny homepage]
  • Faction: Swadian
  • MP nick: Sareth | Swyter
  • M&BWBWF&S
Re: Open-BRF (a new brfEdit) [updated 12 Aug 2009]
« Reply #51 on: August 13, 2009, 12:39:06 PM »
 :D WOW Today is a remarkable date in the M&B history  :wink:, an Open B... R... F... editor (oh my mum :P) thats cool. And with skeletal anim support...  :o :o :o. Youre a crack (Really a good soft) I have waiting for this a lot of time ago...

PD: Thanx to releasing the code, I will modify it. What license type have the software  :)  GNU... 8-) CC... post it... and you are a genius, guy.

mtarini

  • Resource Wrangler
  • Moderator
  • *
  • [TLD] and [OpenBRF]
    • View Profile
    • [home]
  • Faction: Neutral
Re: Open-BRF (a new brfEdit) [updated 12 Aug 2009]
« Reply #52 on: August 13, 2009, 12:53:50 PM »
Thanks for the very detailed report, will be very useful!



Part one:
   [skeleton: OpenBrf => Blender]   causes wrong looking bones.

(that is, the skeleton as exported by OpenBrf reimported by Blender)
(first image on your report). I thnk I understood what geos wrong...

But, help me understand (I'm not familiar with blender):
it is that the bold segments (with a larger point at the end) should be oriented differently, right?...
If so, I try to fix that.
It is not the fact that bones are diamond shaped, right? If so: they are just random 3D shapes I put there.
(If you prefer to have a skin (collection of rigged mesh) to cover the skeleton, there is an option to do that).




Part two:
  [rigged mesh: OpenBrf => Blender (edit) => OpenBrf ] = assertion failed (crash)
  [rigged mesh: OpenBrf => Blender (edit) => Blender ] = "error: invalid literal"

I understand that blender was not able to understand its own output either.
If so, it seems a problem with Blender export.
By looking at the error messages of both appliation, I think blender is mistakenly putting bone names instead of bone numeric-ID in the exported rigged meshes.

Old M&B skeleton format did not have bone names, so old BRFedit assigned to the bone number 0 the name "0", and the problem did not arise.
But the new skeleton format in M&B intedoduced bone names (I guess it was for ragdolling), so now blender cannot get away
with that error. (btw openBRF can read old format Brf skeletons).

As a fix, I could make BrfEdit export skeletons with numeric names as before, but losing original name information would be bad in other scenarios. I'll have to put it as an option. Unless, your new blender script stays clear from that porblem... let me know

Can I have the SMD file that was exported by blender to check this hypotesis?


Part 3:
  [Rigged mesh: BrfEdit => OpenBrf ] = ghost looking animation.

I would need the SMD data to see how it works..


Part 4:
  [Rigged mesh: anyApply => OpenBrf => ... ] 
   including:
  [Rigged mesh: OpenBrf => OpenBrf => ...  ] 
  casuse assertion failed on the second "=>"

Good find. I can replicate this on my own, right?


Part 5:
  Material names... good to know. W
  ould you prefer to have the material name there, or the texture name? If the latter, with or without the ".dds"?


amade

  • Grandmaster Knight
  • *
  • Own up and take it like a man
    • View Profile
    • Studio Wossname
  • Faction: Neutral
Re: Open-BRF (a new brfEdit) [updated 12 Aug 2009]
« Reply #53 on: August 13, 2009, 01:51:54 PM »
Part one:
Sorry 'bout that, here's a clearer image using octahedron bones:
(click to show/hide)
Yep, it's the bold points in the image from the earlier post. For reference, the model is supposed to be facing us (along +y axis - the green arrow in the image).

Part two:
I don't think it's worth fixing this for openBRF if it only affects this particular script, especially since the script can't export animation sequences. The script's output still works well with BRFedit. If you're interested, the script is available here: http://forums.taleworlds.net/index.php/topic,53186.msg1462302.html#msg1462302
Looking at the code may or may not shed some light on the problem. I don't have the SMD that gave the error in the previous post but another reoutputted SMD with the same problem is available here:
http://amade-wossname.com/tmp/mnb/BRF_openBRFexport_blenderImport_blenderExport.smd
(the naming convention here is the order in which the SMD went through before it's in its final output)
I think you're right that the problem is more with the script. Also, I think I prefer named bones better than numbered ones.

Part 3:
This one you can replicate yourself actually, the SMD (any valid model) has to be exported from any existing BRF using openBRF. Then, if you import it into a BRF using BRFedit you get the error:
(click to show/hide)
I guess it's related to the problem in Part 1. BRFedit reads it the same way as Blender did: bones rotated the wrong way. Sorry if I wasn't clear before.

Part 4:
Yeah, I reckon you should be able to replicate it yourself. As a summary of my error, as long as the SMD has been imported by openBRF (regardless of its original source), openBRF won't export it back out.

Part 5:
Hard to say... the import script is quite old, I think it was back before Blender can natively read DDS files. The error for the missing material varies with SMDs of various sources but I sometimes get an error which tells me that a ***.DDS file was missing and when I put it in the same directory as the SMD the import script works fine and I can even see the texture in Blender. So I think when openBRF exports the SMD it should give the material name according to the texture file's full name (includes the DDS extension). I'm not sure how other program's importer would work so it's best to take a sounding on this before you make any changes and break it for them ;')

Another bug I just noticed while looking through Revenge of the Berserk's BRF was that sometimes the texture does not show up although the material and texture reference was correct (and the DDS is present in its folder).
(click to show/hide)
Viewing the same BRF in BRFedit shows the textures correctly for both models.
« Last Edit: August 13, 2009, 01:55:56 PM by amade »

Don't you just love herding cattle?
*end.transmission - Studio Wossname*
___________________________________________________________________________________________________________________________

   .

Dain Ironfoot

  • Grandmaster Knight
  • *
  • No sex please, we're dwarves
    • View Profile
  • Faction: Neutral
Re: Open-BRF (a new brfEdit) [updated 12 Aug 2009]
« Reply #54 on: August 13, 2009, 02:08:31 PM »
Can I just request you warn us if you make alterations to fit blender in? Because import/export are working perfectly for me atm
Ry'n ni yma o hyd

cdvader

  • Guest
Re: Open-BRF (a new brfEdit) [updated 12 Aug 2009]
« Reply #55 on: August 13, 2009, 02:16:45 PM »
Can I just request you warn us if you make alterations to fit blender in? Because import/export are working perfectly for me atm

Really? What program are you using?

mtarini

  • Resource Wrangler
  • Moderator
  • *
  • [TLD] and [OpenBRF]
    • View Profile
    • [home]
  • Faction: Neutral
Re: Open-BRF (a new brfEdit) [updated 12 Aug 2009]
« Reply #56 on: August 13, 2009, 02:44:25 PM »
Can I just request you warn us if you make alterations to fit blender in? Because import/export are working perfectly for me atm

Of course I will!
At worst, I'll make differentiated import/export procedures, but I don't think that will be needed.
If everything goes as I expect, the new ways should make everybody happy, and could fix the other problem with root bone positioning too.

cdvader

  • Guest
Re: Open-BRF (a new brfEdit) [updated 12 Aug 2009]
« Reply #57 on: August 13, 2009, 05:09:09 PM »
mtarini, I've found an extremely big bug. On the main page it says "version 0.0.8 Alpha" but in OpenBRF it says "version 0.0.9 Alpha".

 :lol: cdvader.

EDIT: Ok, on a more serious note, it seems that OpenBRF displays animations "flipped". Basically, the sword is in the left hand and the shield is in the right. The perfect example of this is the animation "right_swing" in "uni_swings.brf" . It's supposed to swing with the right hand, but instead, it's all flipped and swings with the left.

It's just like how BRFEdit seemed to flip textures.
« Last Edit: August 13, 2009, 05:19:03 PM by cdvader »

Dain Ironfoot

  • Grandmaster Knight
  • *
  • No sex please, we're dwarves
    • View Profile
  • Faction: Neutral
Re: Open-BRF (a new brfEdit) [updated 12 Aug 2009]
« Reply #58 on: August 13, 2009, 05:22:33 PM »
BRF edit did similar in terms of mirroring meshes I recall.
Ry'n ni yma o hyd

amade

  • Grandmaster Knight
  • *
  • Own up and take it like a man
    • View Profile
    • Studio Wossname
  • Faction: Neutral
Re: Open-BRF (a new brfEdit) [updated 12 Aug 2009]
« Reply #59 on: August 13, 2009, 05:51:16 PM »
Yep, BRFedit mirrors the mesh. Not the textures, they just get mirrored along with the mesh.
So the anim we see in openBRF is "correct" as we'll see it mirrored in game.

mtarini, I've found an extremely big bug. On the main page it says "version 0.0.8 Alpha" but in OpenBRF it says "version 0.0.9 Alpha".

:lol: didn't notice that one!

Don't you just love herding cattle?
*end.transmission - Studio Wossname*
___________________________________________________________________________________________________________________________

   .