MegaGlest Forum

Modding and game content creation => Tools => Topic started by: titi on 31 August 2012, 19:41:24

Title: how to import g3d with current blender 2.63?
Post by: titi on 31 August 2012, 19:41:24
How can I import a g3d-file with current blender? I tried to import it ( after installing the g3d_suppport.py ) but nothing happens :( .
Anyone has a hint for me?
Title: Re: how to import g3d with current blender 2.63?
Post by: Omega on 31 August 2012, 20:04:17
How can I import a g3d-file with current blender? I tried to import it ( after installing the g3d_suppport.py ) but nothing happens :( .
Anyone has a hint for me?
Works fine for me. Make sure you've installed the script to the right place (I'm afraid I have no idea how linux's folder structure looks, but it's probably in a scripts folder in the installation directory or a personal directory). Also make sure that you've activated the script inside of blender's user preferences (ctrl + alt + u > Addons tab > tick the box next to "import-export G3D mesh import/export" > save the settings with ctrl + u). The G3D import option should now appear in the File > Import menu.
Title: Re: how to import g3d with current blender 2.63?
Post by: titi on 31 August 2012, 20:25:46
No it does not work ...... you must use blender 2.62 ...

http://www.blender.org/documentation/blender_python_api_2_62_2/info_gotcha.html#upgrading-importers-from-2-62

 >:( >:(
I think they are currently make some kind of contest to get rid of as many importers/exporters as possible or something like this grrrrrrr >:( >:(

( am am already working on a fix and I can import the mesh now again. Still having trouble with the UV-mapping .... )

@Omega if you are online and have time ( and maybe a tiny little bit knowledge of blender ) come to the irc chat now
Title: Re: how to import g3d with current blender 2.63?
Post by: titi on 1 September 2012, 00:12:30
OK I have some thing sworking now. Here is my current result:

Code: [Select]
http://pastebin.com/MPfwFnq0
I think the flag "non-selectable" still does not work the way its meant. Maybe Yggdrasil can have a look for it ?
Title: Re: how to import g3d with current blender 2.63?
Post by: Yggdrasil on 1 September 2012, 01:53:14
Oops, i fixed that already a month ago, but for some unknown reason i haven't pushed the commit. I did it now. It's in git master, source/glexemel/g3d_support.py or just use this link:
Code: [Select]
http://glestae.git.sourceforge.net/git/gitweb.cgi?p=glestae/glestae;a=blob_plain;f=source/glexemel/g3d_support.py;hb=HEAD(Right-click 'Save As', name it g3d_support.py, in blender: File->User Preferences -> Addons -> Install Addon (bottom), pick the downloaded file, enable it)

I'm very lazy at fixing the importer as nobody seems to use it anyway.
Btw, before you ask: Animation isn't imported. You only get some shape keys.

I think they are currently make some kind of contest to get rid of as many importers/exporters as possible or something like this grrrrrrr >:( >:(
Welcome to the world of API changes. That's not the first time nor will it be the last.
Title: Re: how to import g3d with current blender 2.63?
Post by: Coldfusionstorm on 1 September 2012, 17:06:28
I also have problems with this, importing is broken for me, tried averything.
Title: Re: how to import g3d with current blender 2.63?
Post by: Omega on 1 September 2012, 19:47:44
I also have problems with this, importing is broken for me, tried averything.
Are you sure about that? I can confirm that Yggdrasil's script works fine. When testing with Titi yesterday, I noticed that when I first updated the script, it hadn't updated correctly because somehow, it ended up with two copies of the script. Can you ensure you're using Yggdrasil's updated version?
Title: Re: how to import g3d with current blender 2.63?
Post by: titi on 1 September 2012, 21:24:03
Everything works like a charm now and MG(svn) is also ready to use it!