Author Topic: how to import g3d with current blender 2.63?  (Read 3460 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
how to import g3d with current blender 2.63?
« 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?
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: how to import g3d with current blender 2.63?
« Reply #1 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.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: how to import g3d with current blender 2.63?
« Reply #2 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
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: how to import g3d with current blender 2.63?
« Reply #3 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 ?
« Last Edit: 3 April 2016, 14:00:37 by filux »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Yggdrasil

  • GAE Team
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: how to import g3d with current blender 2.63?
« Reply #4 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.
« Last Edit: 3 April 2016, 14:01:13 by filux »

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: how to import g3d with current blender 2.63?
« Reply #5 on: 1 September 2012, 17:06:28 »
I also have problems with this, importing is broken for me, tried averything.
WiP Game developer.
I do danish translations.
"i break stuff"

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: how to import g3d with current blender 2.63?
« Reply #6 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?
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: how to import g3d with current blender 2.63?
« Reply #7 on: 1 September 2012, 21:24:03 »
Everything works like a charm now and MG(svn) is also ready to use it!
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

 

anything