Page 1 of 1

The Hobbit 000, DFS file format to OBJ

Posted: Thu Jul 14, 2022 10:18 pm
by captaintoasty
Hi there!

I'm very new to the idea of converting raw binary files to something actually usable (like .obj). I'm a professional 3d modeler/tech artist and so have pretty good knowledge with Python and MAXScript, and some knowledge with C++, openGL, etc. On a technical level I'm fairly familiar with how geometry tends to be structured.

I followed some tutorials on YouTube and here and am still pretty lost. I used QuickBms to extract the .npcgeom, .rgeom, and .xbmp filetypes from the .000/.dfs files found in the game install dir. From here, using the .bms scripts I found on here and also on various sites (aluigi, ps23dformat) I think I got closer? But they still don't quite seem to work.

Any help or a step in the first direction would be appreciated! I'm interested on learning myself how to do this, not really expecting someone to necessarily do it for me.

Here's a public Google Drive link to the .000/.dfs files for one of the levels (Hobbiton), the extracted .rgeom file for the Sting sword, the extracted .xbmp (diffuse texture?) file, and the various .bms scripts I attempted to use.
https://drive.google.com/file/d/1LWNI__ ... sp=sharing

Thanks!

Re: The Hobbit 000, DFS file format to OBJ

Posted: Thu Jul 14, 2022 11:45 pm
by Durik256
captaintoasty wrote: Thu Jul 14, 2022 10:18 pm .rgeom file for the Sting sword.

Re: The Hobbit 000, DFS file format to OBJ

Posted: Thu Jul 14, 2022 11:49 pm
by captaintoasty
That was quick! Sorry, what viewer are you using for that? Also how did you determine the vertex offset, count, padding, and face offset, count and format?

Re: The Hobbit 000, DFS file format to OBJ

Posted: Thu Jul 14, 2022 11:53 pm
by Durik256
captaintoasty wrote: Thu Jul 14, 2022 11:49 pm That was quick! Sorry, what viewer are you using for that? Also how did you determine the vertex offset, count, padding, and face offset, count and format?
for PC (Advanced Mesh Reaper, ModelResearcher, Hex2Obj) or Mesh Finder (Android) + HexEditor (HxD)
post more *.rgeom
the format is simple, we can now make a plugin for Noesis :wink: (only mesh)

Re: The Hobbit 000, DFS file format to OBJ

Posted: Fri Jul 15, 2022 12:30 am
by captaintoasty
I've added some more .zips with .rgeom, .npcgeom, .charanim, .anim, .xbmp, .export filetypes.
https://drive.google.com/drive/folders/ ... sp=sharing

Thanks!

Re: The Hobbit 000, DFS file format to OBJ

Posted: Fri Jul 15, 2022 1:32 am
by Durik256
captaintoasty wrote: Fri Jul 15, 2022 12:30 am .rgeom
two files are not enough. (not the fact that it will work with everyone)
Image

Re: The Hobbit 000, DFS file format to OBJ

Posted: Fri Jul 15, 2022 2:57 am
by Durik256
captaintoasty wrote: Fri Jul 15, 2022 12:30 am .npcgeom
[*npcgeom] has several models (lods)
to switch between models press the button:
Image
to export the current model: File>Export from Prewiew
Image

Re: The Hobbit 000, DFS file format to OBJ

Posted: Fri Jul 15, 2022 7:45 pm
by captaintoasty
Sweet, thanks! I noticed when using these plugins in Noesis that there were no UVs obtained. I was playing around with ModelResearcher but was unable to find where exactly the UVs begin/what the proper values are. Any tips on how to figure that out?

Re: The Hobbit 000, DFS file format to OBJ

Posted: Fri Jul 15, 2022 8:36 pm
by Durik256
captaintoasty wrote: Fri Jul 15, 2022 7:45 pm UVs
i update plugin npcgeom, plugin rgeom its ok.
uvs.png

Re: The Hobbit 000, DFS file format to OBJ

Posted: Mon Jul 18, 2022 7:28 pm
by captaintoasty
Hi Durik! Thanks again for the help last week. I've been using Noesis and these scripts work for about half of the models, but the other half don't seem to work. I uploaded 5 of each rgeom and npcgeom.

npcgeom
https://drive.google.com/file/d/135AmIw ... sp=sharing

rgeom
https://drive.google.com/file/d/1ypsKyg ... sp=sharing

As far as I can tell, at least with rgeom, the standard structure for models which work is:

Code: Select all

name
facecount

stride
vertexsize
vertexcount

vertices

indexes
But there's some .rgeom models (which are in the linked .zip) which really don't seem to follow this format at all. Any help would be appreciated! Thanks!

Re: The Hobbit 000, DFS file format to OBJ

Posted: Tue Jul 19, 2022 3:06 pm
by Durik256
captaintoasty wrote: Mon Jul 18, 2022 7:28 pm Hi Durik! I uploaded 5 of each rgeom and npcgeom.
most likely not properly unpacked