Author Topic: OBJ to BRF collision model converter.  (Read 3229 times)

0 Members and 1 Guest are viewing this topic.

fisheye

  • Guest
OBJ to BRF collision model converter.
« on: January 22, 2006, 02:22:57 PM »
Python script takes an OBJ file and outputs a BRF collision manifold based on the mesh in the OBJ.

Python File
Batch (executable) File

Usage: Edit mesh2manifold.bat, change the meshname variable to whatever you like (e.g. foobar). Also change Native to whatever your mod is called.

Code: [Select]

set meshname=foobar


Input file: foobar_colli.obj
Output file: bo_foobar.brf
Collision object name: bo_foobar

Usage of collision object:
Code: [Select]

  ("my_funky_scene",0,"my_visual_meshname", "bo_foobar", (-100,-100),(100,100),-100,"0", [],[]),

Janus

  • *spicy* *camper*
  • Administrator
  • *
    • View Profile
    • Mount&Blade Unofficial File Repository
  • Faction: Rhodok
  • M&BWB
OBJ to BRF collision model converter.
« Reply #1 on: January 22, 2006, 02:56:34 PM »
Wow, cool stuff. So this means you've got the manifold format completely figured out?
Tomas asked Dolgan, "What place is this?"
The dwarf puffed on his pipe. "It is a glory hole, laddie. When my people mined this area, we fashioned many such areas."
     - Raymond E. Feist, Magician: Apprentice  (Riftwar Saga)

Thorgrim

  • Cartographic Conquistador
  • Knight at Arms
  • *
    • View Profile
OBJ to BRF collision model converter.
« Reply #2 on: January 22, 2006, 03:27:09 PM »
Great job fisheye, this is going to be great fun to play with :)

fisheye

  • Guest
OBJ to BRF collision model converter.
« Reply #3 on: January 22, 2006, 04:03:01 PM »
Quote from: Janus
Wow, cool stuff. So this means you've got the manifold format completely figured out?


Ah, not completely. There's two mystery fields that I can't figure out, but plonking default values in there seems to work fine...

Solja Sheep

  • Recruit
  • *
    • View Profile
  • Faction: Swadian
OBJ to BRF collision model converter.
« Reply #4 on: January 22, 2006, 04:31:55 PM »
umm..what exactly does this do?
If guns are outlawed, can we use swords?

Janus

  • *spicy* *camper*
  • Administrator
  • *
    • View Profile
    • Mount&Blade Unofficial File Repository
  • Faction: Rhodok
  • M&BWB
OBJ to BRF collision model converter.
« Reply #5 on: January 22, 2006, 05:34:16 PM »
This is for creating collision meshes to make objects solid (whether scene meshes, like a cave for instance, or for solid decorations in a scene, like a table) so you can't walk/fall through them.
Quote from: fisheye
Quote from: Janus
Wow, cool stuff. So this means you've got the manifold format completely figured out?

Ah, not completely. There's two mystery fields that I can't figure out, but plonking default values in there seems to work fine...

Well, close enough. As long as it works, eh? Good job. :)
Tomas asked Dolgan, "What place is this?"
The dwarf puffed on his pipe. "It is a glory hole, laddie. When my people mined this area, we fashioned many such areas."
     - Raymond E. Feist, Magician: Apprentice  (Riftwar Saga)

Dread_AUS

  • Recruit
  • *
    • View Profile
OBJ to BRF collision model converter.
« Reply #6 on: January 22, 2006, 06:47:41 PM »
Which means our model/texture people can create a whole heap of new items, buildings, trees etc for us to place into our scenes????

jik

  • Knight
  • *
    • View Profile
  • Faction: Neutral
OBJ to BRF collision model converter.
« Reply #7 on: January 22, 2006, 08:50:56 PM »
yes it does.

Dread_AUS

  • Recruit
  • *
    • View Profile
OBJ to BRF collision model converter.
« Reply #8 on: January 23, 2006, 01:40:22 AM »
Oh WOOT!

Wootalicious even......


When can we start making requests - LOL!!!

Looks like modellers/texture/mesh people just became even more valuable :)

Dreadus

  • Regular
  • *
    • View Profile
  • Faction: Neutral
OBJ to BRF collision model converter.
« Reply #9 on: January 23, 2006, 02:56:16 AM »
DAMMIT your name is almost exactly mine, and were both Australian!
you bastard!

but hey, i want to find out about making new scenes... where the hell is the tutorial?

Dread_AUS

  • Recruit
  • *
    • View Profile
OBJ to BRF collision model converter.
« Reply #10 on: January 23, 2006, 03:18:59 AM »
I noticed that....you name stealer you!

I was here first.......by 12 days.....

Lu Bu

  • Veteran
  • *
  • Permanently Banned
  • The legendary God!
    • View Profile
    • Bow before your GOD, worm!
OBJ to BRF collision model converter.
« Reply #11 on: January 23, 2006, 03:31:30 AM »
Battle it out in the arena!

Oh and i look forward to this thing and the things this thing will produce.  8)

I am your legendary and almighty GOD!
Better than you since the universe exists! Oh and probably before too!

Dreadus

  • Regular
  • *
    • View Profile
  • Faction: Neutral
OBJ to BRF collision model converter.
« Reply #12 on: January 23, 2006, 04:02:21 AM »
Quote from: Dreadus
where the hell is the tutorial?


...

fisheye

  • Guest
OBJ to BRF collision model converter.
« Reply #13 on: January 23, 2006, 04:06:28 AM »
Quote from: Dreadus
Quote from: Dreadus
where the hell is the tutorial?


...


No tutorial for you!  :evil: Go stand in the the back of the line!

--Fisheye, Tutorial Nazi


Just kidding. No tutorial necessary. Instructions are in the post; if you don't understand them, you don't have enough M&B modding experience; I recommend reading Lurb's or Janus' tutorials and making some items first, and making some new scenes using my Newbie Modder's tutorial.

Dreadus

  • Regular
  • *
    • View Profile
  • Faction: Neutral
OBJ to BRF collision model converter.
« Reply #14 on: January 23, 2006, 04:14:19 AM »
i dont mean that
i mean like, I want to create an entirely new scene, but i dont want to just hack into it without knowing what im doing and how the game handles it.