Blender 2.71 - Importer / Exporter (1.4.4)

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
Lark
Posts: 178
Joined: Wed Sep 19, 2012 4:23 pm
Location: Springfield, MO USA

Re: Blender 2.71 - Model Importer

Post by Lark »

Doridion wrote:
Lark wrote: Thank you, thank you, thank you!! -Lark
Hum .... aaa .... Lark ? .... Germanny is, like us, using bitcpy's work ^^

If you want thanking somebody for this importer, it's ..... bitcpy :D

* run out of gunshots *
:oops: ARRRRRRRRRRRRRRGH! Now where did I put that brain! Sleep is way overrated. Can I be forgiven and start afresh? :cry:

This is simply awesome Bitcpy! Thank you! I'm having so much fun learning 3d modeling (and banging my head on trees when I finally see how obviously easy something was that I spend days finding)... but being able to import existing models and working with them wouldn't be possible (at least for me) without all of your hard work!

Well, it's true even if I can be a moron at times. Really, Bitcpy, thank you and I'm sorry I can't read, focus, or walk at times.

Thank you, thank you, thank you!! -Lark
bitcpy
Posts: 39
Joined: Tue Apr 24, 2012 7:43 pm

Re: Blender 2.71 - Model Importer

Post by bitcpy »

@Lark
Heh, don't worry. Personally I think a big thanks should go to everyone since there's alot of people that constantly keeps helping out. Biggest thanks probably goes to AH for a great game with some wonderful modding capabilities and that turned you to start modelling and modding :)
bitcpy
Posts: 39
Joined: Tue Apr 24, 2012 7:43 pm

Re: Blender 2.71 - Model Importer

Post by bitcpy »

Okay, so I updated the script a bit now.
Latest can be found here: http://pastebin.com/8d80g7AX
(Also updated initial post)

* Materials
Created and placed on the mesh properly when importing, note that the texture slots are intentionally left blank for the moment since I don't want to dig more in the .dat container than necessary.

* Export
Models now exports, though there's still things left to do, and I need to double check them properly in engine.
Only takes tris or quads, so no n-gons can be feed directly.
Bones and skinning can be exported, haven't tried it more than applying an identity animation in the GMT, so more testing is needed.
Support for tangents using Blenders calculated tangents, quad trippling does NOT use Mikkelsens method for splitting yet.
Skinned models can be exported in posed mode without bones and skinning.

Here's a test of the Warg in the game exported in a rigid posed position.
Image
Batty
Posts: 509
Joined: Sun Apr 15, 2012 7:04 pm

Re: Blender 2.71 - Importer / Exporter

Post by Batty »

Textures! Thanks bitcpy! :)
User avatar
Doridion
Posts: 256
Joined: Tue Jun 10, 2014 9:23 pm

Re: Blender 2.71 - Importer / Exporter

Post by Doridion »

Expoooooorting ! Yip yip yip yip ! Thanks man !
User avatar
Doridion
Posts: 256
Joined: Tue Jun 10, 2014 9:23 pm

Re: Blender 2.71 - Importer / Exporter

Post by Doridion »

Euh ... yups, little bug when registering the module :

Image
Batty
Posts: 509
Joined: Sun Apr 15, 2012 7:04 pm

Re: Blender 2.71 - Importer / Exporter

Post by Batty »

@Doridion, I copy/pasted the 'RAW Paste Data' at the bottom of the screen, when I copy/paste the full screen script it won't work, I think there are extra characters in it, maybe. :) :?
Last edited by Batty on Sun Nov 16, 2014 4:22 pm, edited 1 time in total.
bitcpy
Posts: 39
Joined: Tue Apr 24, 2012 7:43 pm

Re: Blender 2.71 - Importer / Exporter

Post by bitcpy »

Could be because of how you named the file and installed it into Blender.

Did you perhaps name the file with multiple periods in it, that didn't work for me and I got the same error as is shown for you.
Example,
blender_-_legend_of_grimrock_2_-_importer__exporter_1.3.py
bitcpy
Posts: 39
Joined: Tue Apr 24, 2012 7:43 pm

Re: Blender 2.71 - Importer / Exporter

Post by bitcpy »

I just tried it, and it works just fine.
I clicked the 'RAW' button on the paste-bin page, hit Cltr-A to select everything and then Ctrl-C to copy it.

Tried pasting it in both Sublime and notepad, named the two different files to
io_log2_model_anim_sublime.py
io_log2_model_anim_notepad.py

Installed one of them through 'Intall from File...' and loaded it without problems.
Unloaded the first, removed it and installed the other without problems as well.

Edit: Also be careful if you use a text editor that automatically converts spaces to tabs, script is written using 4 spaces for indentation, even though I personally prefer tabs :)
Last edited by bitcpy on Sun Nov 16, 2014 3:50 pm, edited 1 time in total.
User avatar
Doridion
Posts: 256
Joined: Tue Jun 10, 2014 9:23 pm

Re: Blender 2.71 - Importer / Exporter

Post by Doridion »

bitcpy wrote:I clicked the 'RAW' button on the paste-bin page, hit Cltr-A to select everything and then Ctrl-C to copy it.

Tried pasting it in both Sublime and notepad, named the two different files to
io_log2_model_anim_sublime.py
io_log2_model_anim_notepad.py

Installed one of them through 'Intall from File...' and loaded it without problems.
Unloaded the first, removed it and installed the other without problems as well.
This way runs well ^^ Thanks a lot ;)
Post Reply