Page 3 of 11

Re: Blender 2.71 - Model Importer

Posted: Sun Nov 16, 2014 2:41 am
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

Re: Blender 2.71 - Model Importer

Posted: Sun Nov 16, 2014 4:55 am
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 :)

Re: Blender 2.71 - Model Importer

Posted: Sun Nov 16, 2014 5:07 am
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

Re: Blender 2.71 - Importer / Exporter

Posted: Sun Nov 16, 2014 6:25 am
by Batty
Textures! Thanks bitcpy! :)

Re: Blender 2.71 - Importer / Exporter

Posted: Sun Nov 16, 2014 12:02 pm
by Doridion
Expoooooorting ! Yip yip yip yip ! Thanks man !

Re: Blender 2.71 - Importer / Exporter

Posted: Sun Nov 16, 2014 2:30 pm
by Doridion
Euh ... yups, little bug when registering the module :

Image

Re: Blender 2.71 - Importer / Exporter

Posted: Sun Nov 16, 2014 3:32 pm
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. :) :?

Re: Blender 2.71 - Importer / Exporter

Posted: Sun Nov 16, 2014 3:32 pm
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

Re: Blender 2.71 - Importer / Exporter

Posted: Sun Nov 16, 2014 3:42 pm
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 :)

Re: Blender 2.71 - Importer / Exporter

Posted: Sun Nov 16, 2014 3:49 pm
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 ;)