Blender importer/exporter [1.7.1]

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
User avatar
7Soul
Posts: 209
Joined: Sun Oct 19, 2014 1:56 am
Location: Brazil

Re: Blender importer/exporter [1.6.1]

Post by 7Soul »

I tried it out in Blender 3.4 and then 4.0 and I get this error:

Image
Join the LoG discord server: https://discord.gg/ArgAgNN :D

My Mods
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: Blender importer/exporter [1.7.0]

Post by minmay »

That's fixed in version 1.7.0 of the plugin, which I uploaded a few days before your post but forgot to change the topic title ;p
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
MS-Max
Posts: 2
Joined: Mon Nov 04, 2024 8:04 pm

Re: Blender importer/exporter [1.7.1]

Post by MS-Max »

Hello,
I have a problem that I haven't found anything about here yet. I am using Blender 4.0 and the Importer/Exporter 1.7.1.
When I import the undead.model into Blender and then try to export it again, even without changing it, the export fails.
The error message I get is :

ValueError: Matrix.invert(ed): matrix does not have an inverse
:?:
Can anyone help me?
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: Blender importer/exporter [1.7.1]

Post by minmay »

The jaw bone in undead.model has a bizarre singular model-to-bone-space matrix that was probably a mistake by the developers:

Code: Select all

<Matrix 4x3 (-0.0000,  1.0000, -0.0047, -1.8348)
            (-1.0000, -0.0000, -0.0000,  0.0007)
            (-0.0000,  0.0047,  1.0000, -0.0092)>
Grimrock is able to tolerate this matrix, and the plugin will dutifully import it, but can't export it. As I cannot think of any situation where you'd actually want to export a singular matrix, I don't plan to ever change this; getting an error message is much better.
If you want to modify undead.model, move the tail of that bone to wherever you think it should be.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
MS-Max
Posts: 2
Joined: Mon Nov 04, 2024 8:04 pm

Re: Blender importer/exporter [1.7.1]

Post by MS-Max »

Thank you very much for your quick reply.
I have moved the tail of that bone and can now export the model. The animation of the jaw is no longer visible as it now protrudes into the head. But I think I can still fix that.
Thanks again, the answer has helped me. :)
Post Reply