[DONE] Grimrock Model Tookit
Re: [WIP] Grimrock Model Tookit
Hi
I've got this weird issue going on with a model I did in Blender. On the smaller editor view the model looks okay, but if I switch to the fullscreen mode the model tears apart. Any ideas what might be causing this?
Here's a link to a pic
I've got this weird issue going on with a model I did in Blender. On the smaller editor view the model looks okay, but if I switch to the fullscreen mode the model tears apart. Any ideas what might be causing this?
Here's a link to a pic
Re: [WIP] Grimrock Model Tookit
Most likely the same problem described by me and Leki. There seems to be a problem when exporting to model format, you'll have to wait until John finds out what causes it and how to fix it.tomimt wrote:Hi
I've got this weird issue going on with a model I did in Blender. On the smaller editor view the model looks okay, but if I switch to the fullscreen mode the model tears apart. Any ideas what might be causing this?
Here's a link to a pic
- JohnWordsworth
- Posts: 1397
- Joined: Fri Sep 14, 2012 4:19 pm
- Location: Devon, United Kingdom
- Contact:
Re: [WIP] Grimrock Model Tookit
*Does a little happy dance* I think I've found it . Fix incoming!
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
- JohnWordsworth
- Posts: 1397
- Joined: Fri Sep 14, 2012 4:19 pm
- Location: Devon, United Kingdom
- Contact:
Re: [WIP] Grimrock Model Tookit
Ok, there's some good news and some bad news I'm afraid. First of all - I'm pretty confident that I've fixed the .model save issues. After a couple of hours with a hex-editor, I realised that I had mis-read the .model format specification, a MeshSegment has an 'FirstIndex' and a 'Count', but that Count isn't the number of indices, but the number of triangles.
The bad news is that any/all models that have been imported using an earlier version will have this problem. Any re-skinned models should be fine (as I just use the values from the original file), but all meshes imported using GMT to date will have this problem.
Please check and feedback - there is always the possibility that there are other problems in saving .model files, but I've imported @Phitt's OBJ files, and while there is still a problem with the normals - the dungeon always renders fine now (no garbage triangles being rendered) . I've deleted all previous versions of the GMT from my site and upgraded the version number to reflect that this version should be used from now onwards.
Oh, I've also added group export to OBJ files, so mesh entities with multiple segments should now export as multiple 'OBJ Groups' so that they can be edited separately in Blender. This also means that when you round-trip a model, they retain their material name.
GMT Home Page Direct Download
The bad news is that any/all models that have been imported using an earlier version will have this problem. Any re-skinned models should be fine (as I just use the values from the original file), but all meshes imported using GMT to date will have this problem.
Please check and feedback - there is always the possibility that there are other problems in saving .model files, but I've imported @Phitt's OBJ files, and while there is still a problem with the normals - the dungeon always renders fine now (no garbage triangles being rendered) . I've deleted all previous versions of the GMT from my site and upgraded the version number to reflect that this version should be used from now onwards.
Oh, I've also added group export to OBJ files, so mesh entities with multiple segments should now export as multiple 'OBJ Groups' so that they can be edited separately in Blender. This also means that when you round-trip a model, they retain their material name.
GMT Home Page Direct Download
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
Re: [WIP] Grimrock Model Tookit
I gave it a quick spin and it seems to work correctly now.
Re: [WIP] Grimrock Model Tookit
This is great news.
Re: [WIP] Grimrock Model Tookit
John,
bad news - I opened some models and got 3 results:
bad news - I opened some models and got 3 results:
SpoilerShow
I'm the Gate I'm the Key.
Dawn of Lore
Dawn of Lore
Re: [WIP] Grimrock Model Tookit
Hum. I just tried this today to see if I could manage to resize the sack_full model in Blender and turn it into my very own coin_pouch. So far so good:
Except that's exactly what it looks like in-game too
I've got the item defined:
and custom materials for it (just using the original sack textures):
I know it's not the material entry that's wrong - I tried changing the "name" field to "flask" and got myself a nicely leather-coloured flask model. The item.lua entry is also correct since, well, it shows up in-game:
Not sure what exactly I'm doing wrong here. :-/ I'm a bit of a noob when it comes to 3D-modelling, so I suppose I might have screwed something up somewhere, but...well. I don't know?
SpoilerShow
I've got the item defined:
Code: Select all
defineObject{
name = "coin_pouch",
class = "Item",
uiName = "Coin Pouch",
model = "mod_assets/models/coinsack.fbx",
gfxIndex = 81,
weight = 0.1,
container = false,
stackable = true,
}
Code: Select all
defineMaterial{
name = "coin_pouch",
diffuseMap = "mod_assets/textures/sack_full_dif.tga",
specularMap = "assets/textures/common/black.tga",
doubleSided = false,
lighting = true,
alphaTest = false,
blendMode = "Opaque",
textureAddressMode = "Wrap",
glossiness = 20,
depthBias = 0,
}
SpoilerShow
Try my Mordor: Depths of Dejenol LoG-ification. Feedback much appreciated!
- JohnWordsworth
- Posts: 1397
- Joined: Fri Sep 14, 2012 4:19 pm
- Location: Devon, United Kingdom
- Contact:
Re: [WIP] Grimrock Model Tookit
Oh bugger, there appears to be a problem with exporting meshes that have multiple mesh segments. Imports should still be ok from Blender models, but I think the OBJ outputs for meshes with >1 segments is not quite right. Build this morning was a bit of a rush - got a Pathfinder RPG game to run in 10 minutes and had to write the story! Will upload a fix after the game this evening!
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.