[DONE] Grimrock Model Tookit

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

[DONE] Grimrock Model Tookit

Post by JohnWordsworth »

Hi Guys, I just wanted to share some screenshots of an application that I spent much of today developing for toying with the Grimrock Models. At the moment, it has the current features:
  • Read and Write the Grimrock .model format. While at the moment, there isn't much you can actually do with the data, I've written the code to write the models back to disk.
  • Preview any model in the model window (no textures yet).
  • Alter the Material name on any Mesh Segment. Here's where (1) comes in handy, as it obviously means you can save a clone of a given model with different materials (which are then linked to actual texture files in the Lua scripts for a mod).
Screenshots all link to full-sized versions to keep the forum tidy. No download available yet I'm afraid - it's almost 3am at the moment and there's more stuff I would like to add before releasing it (textured preview to start with - and then 3DS or another common file format for import/export).

Image Image Image Image

Update (24 Sep 2012): I have made a preliminary version of the application available for download from my blog. I've hurriedly put together a page on my blog to host the application too, but I expect I'll be posting here more than there about it as the forums seem like a better place to have a chat about features / bugs etc. While the new version has buttons for OBJ import/export - they don't work properly yet. I'm releasing this version for re-texturing purposes only (which it works fine for).

Legend of Grimrock Model Toolkit

Note: I originally wrote my grimrock 3d library in Python, and got it to the state where it could replace Materials on the command line, but decided that it would be better as a desktop application so that users didn't have to remember an arcane list of commands. If anyone is interested in the Python source code, just PM me - you're more than welcome to use my grim3d module to read/write Grimlock .model files in Python (might be useful in writing a Blender importer?).
Last edited by JohnWordsworth on Mon Feb 10, 2014 1:38 am, edited 3 times in total.
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
Lmaoboat
Posts: 359
Joined: Wed Apr 11, 2012 8:55 pm

Re: [WIP] Grimrock Model Tookit

Post by Lmaoboat »

Does this mean you could make that thing that lets people convert models into Grimrock-compatible ones? Because last I heard, somebody still needs to do that before we can get custom tile sets.
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: [WIP] Grimrock Model Tookit

Post by cromcrom »

JohnWordsWorth, it's GREAT ! I can see plenty of nice items coming along. A modder's dream :mrgreen: It would be so nice to release this :-)
A trip of a thousand leagues starts with a step.
User avatar
Bek
Posts: 39
Joined: Fri Apr 13, 2012 3:39 am

Re: [WIP] Grimrock Model Tookit

Post by Bek »

This looks great, but if you're going to add file formats for input (for conversion to .model) please please please don't use .3ds, but a common file format like .obj or .fbx. That's what we really need to get our stuff from max/modo/maya/blender etc to grimrock.
User avatar
Phitt
Posts: 442
Joined: Tue Aug 14, 2012 9:43 am

Re: [WIP] Grimrock Model Tookit

Post by Phitt »

That's fantastic! Finally someone is working on something like this.
Bek wrote:This looks great, but if you're going to add file formats for input (for conversion to .model) please please please don't use .3ds, but a common file format like .obj or .fbx. That's what we really need to get our stuff from max/modo/maya/blender etc to grimrock.
Isn't it possible to export as 3ds from Blender? At least there is an option for it in the export menu.
User avatar
Tomm
Posts: 36
Joined: Sat Apr 14, 2012 2:15 pm

Re: [WIP] Grimrock Model Tookit

Post by Tomm »

looking good! but as said above, use .obj or .fbx if possible and it's gold!
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: [WIP] Grimrock Model Tookit

Post by JohnWordsworth »

Thanks for the comments / suggestions - I'll hopefully get some time today to add OBJ import / export and possibly even get some textures on the model preview. Whatever happens, I'll post a binary later on this evening (UK time) for people to play with as its quite cool even just changing the textures at the moment.
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
User avatar
Komag
Posts: 3654
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: [WIP] Grimrock Model Tookit

Post by Komag »

very nice to read this, and THANK YOU for your effort, this will be really helpful to everyone! 8-) :D
Finished Dungeons - complete mods to play
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: [WIP] Grimrock Model Tookit

Post by Neikun »

You're the man now, dog!
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: [WIP] Grimrock Model Tookit

Post by JohnWordsworth »

Just a quick update.

1. I've made a very early build available on my website. Specifically, on a very hastily put together Grimrock Model Toolkit page. Please note that I've not really got my head around how to distribute C# applications, as I've only ever used it for XNA and Web deployment before - so if the installer chokes, accept my apologies. It can theoretically do fancy stuff like auto-inform you of updates etc, but it doesn't do anything like that yet!

2. The preliminary version should work for simple re-texturing of models. In order to do this, open a .model file (either by going to File->Open or double clicking on it), then to go Tools -> Material Find / Replace. Select the name of an existing material from the drop down and enter a new material name. Then save the model with a new filename and simply define a new material in materials.lua with the new material name. Last but not least, you will have to create a new item in items.lua, which is likely to be a clone of the original object with a new model reference. Remember that your model file will be a .model file, but you need to reference it as a .fbx file in the lua. Equally, textures are .dds files but should be referenced as .tga files.

3. The preliminary version does not work properly for importing/exporting OBJ files. The exporting seems to be ok - I've loaded the long_sword into Blender via the OBJ file format, but the opposite does not seem to work. While the OBJ files appear in the editor, they do not appear in the game. :cry: It could, however, just be a size issue or something strange - so if anyone with export 3D experience has time to play, please feel free!

I've got a crazy busy week ahead I'm afraid. A few days of heavy work and play commitments followed by a trip to London for the Eurogamer Expo on Thursday. You almost certainly don't care about my social life, but I'm posting this to let everyone know that I will unlikely be able to make updates until next week now. Unless I get to sneak a few hours in here and there. Hence my posting the link to the binary even though it's an early build.
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
Post Reply