Author Topic: Using Blender 3D to create Glest model  (Read 27301 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
:-(
« Reply #25 on: 31 January 2007, 14:56:51 »
Thank you for the reply. I will have a look at the sourcecode. Probably I will find a hint what's wrong ....

But do I really have to look at the sourcecode of glest?
It's a bit tricky in this case, because there are a lot of programs involved.

1. the importscript written in perl with blendercomponents.
2. blender
3. the exportscript
4. the xml2g3d program
5. glest

I think there IS A WAY to build new models(modify old ones) with blender!

Is there anybody out there who has done it?
Can you described a little bit more detailed what you have done to get a working model. For example describe the following steps with the existing model cow_standing.g3d. (Especially all the steps in blender to prepare the model for the export-script are very interesting for me!!)

1- load the cow_standing.g3d into blender,
2- preparing the model in blender
( what did I have to do to prepare the model for the export-script ??? )
3- export it to xml
4- convert xml to g3d ( a working one !!)


please, all you glest gods, speak to me  :D
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
I have go it
« Reply #26 on: 7 February 2007, 20:53:47 »
It's working !!!

It was the bug in glexemel. I didn't thought it was still in there ( released on 2005!!). Without the two lines you get a damaged g3d and a crash of glest!

this is still needed to get a working glexemel !!!!:
You'll have to add the lines (if they aren't there) :
    #pragma pack(push, 1)
near of the beginning of the file "g3dv4.h" of glexemel and
    #pragma pack(pop)
before the #endif

I'll write a description in the wiki ( when I have some time! )
http://http://glest.wikia.com/wiki/Main_Page
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

vahron

  • Guest
(No subject)
« Reply #27 on: 27 February 2007, 21:21:33 »
I still can't manage to export any of my xml files to g3d :D
« Last Edit: 1 January 1970, 00:00:00 by vahron »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
(No subject)
« Reply #28 on: 22 March 2007, 10:41:09 »
What happens if you use glexemel? is there any .g3d-output or nothing?
you must use g2xml.exe to convert your xml-files.
The easiest way to do this is to have evreything in the same directory

glexemel and the model.xml.

to start it use a dos-box and navigate to this directory.
there you type:

example:
cd c:\dirWithEverythingInIt\
g2xml.exe myModel.xml myModel.g3d

than it should work! Also have a look at the wiki  http://http://glest.wikia.com/wiki/Main_Page "modelling with blender"
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Herr_Alien

  • Guest
patched glexemel for windows
« Reply #29 on: 2 May 2007, 11:34:58 »
Hello,

I have patched the windows version of glexemel following the instructions
from Glest Wiki:

https://docs.megaglest.org/Converter

The archive is available at:

http://h1.ripway.com/herralien2/arch/gl ... 32_0.1.zip
« Last Edit: 18 June 2016, 15:15:54 by filux »

firedeathbot

  • Draco Rider
  • *****
  • Posts: 264
    • View Profile
(No subject)
« Reply #30 on: 2 May 2007, 15:01:58 »
i folowed the installation instructions looked at the grdv4 file and it was the updated one but i'm getting a problem with the box it opens and instantly closes with no obvious effect can you help me?
« Last Edit: 1 January 1970, 00:00:00 by firedeathbot »
Back to glest after a few years inactivity.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
exportscript issue fixed
« Reply #31 on: 2 May 2007, 20:14:02 »
My first excursion in the world of Python was successful!

I fixed the blender xml-export script.
Blender v2.43 can export now!!

A new version ( version 0.1.3 ) is available on www.titusgames.de
http://http://www.titusgames.de/blender/g3d_xml_exporter_v0.1.3.zip
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Herr_Alien

  • Guest
(No subject)
« Reply #32 on: 3 May 2007, 07:27:26 »
Quote from: "firedeathbot"
i folowed the installation instructions looked at the grdv4 file and it was the updated one but i'm getting a problem with the box it opens and instantly closes with no obvious effect can you help me?


Hmm, obviously nobody likes the command line utilities.
Ok, in this case download the versions with a minimal GUI here:

http://h1.ripway.com/herralien2/arch/gl ... UI_0.1.zip

Enjoy.
« Last Edit: 1 January 1970, 00:00:00 by Herr_Alien »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
(No subject)
« Reply #33 on: 3 May 2007, 11:00:55 »
damn an error

copy and paste ...... so there is a new working version of the exporter available ( same versionnumber, please reload it again )
www.titusgames.de
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

firedeathbot

  • Draco Rider
  • *****
  • Posts: 264
    • View Profile
(No subject)
« Reply #34 on: 3 May 2007, 11:50:22 »
i put the files in C:Windows/System32 isnt that what i should do?? also there were no files in system32 only folders which one do i put it in? im on Windows ME
« Last Edit: 1 January 1970, 00:00:00 by firedeathbot »
Back to glest after a few years inactivity.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
(No subject)
« Reply #35 on: 3 May 2007, 11:57:04 »
open the file with an editor and read the comments
or have a look at the wiki:
http://http://glest.wikia.com/wiki/Exportscript
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Herr_Alien

  • Guest
(No subject)
« Reply #36 on: 3 May 2007, 12:12:04 »
Quote from: "firedeathbot"
i put the files in C:Windows/System32 isnt that what i should do?? also there were no files in system32 only folders which one do i put it in? im on Windows ME


xml2g has also a version with GUI. Double click on xml2g_gui.exe, then
open the model in xml format and then choose a name to save the .g3d format. If you use the GUI-ed version, there's no need to copy everything
in C:\Windows\System32.

Same thing for g2xml.
« Last Edit: 1 January 1970, 00:00:00 by Herr_Alien »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
the animating problem
« Reply #37 on: 3 May 2007, 20:43:45 »
As far as I know creating an animating model is no longer possible with blender. Looking at the exportscript and searching in the web gives me the reason:
With blender 2.4 there was a big change in the way blender animates!!
So the current script cannot export animations with blenderversions >= 2.4!

Details: In older blender versions after setting a frame number the object data has changes. The object was really deformed. So you could read the new vertex coordinates for this object. This is no longer possible!
you always get the same data for every frame, that's why the things are not animating anymore. If anybody knows how to fix it please let me know!
I will try my best .....

here is the critical python code:
...
        iobj: is just a counter to visit all selected objects
...
        l = range( 1 , frameCount+1 )
        for frame in l:
            Blender.Set('curframe', frame)
            fmesh = Blender.Object.GetSelected()[iobj].getData()
......
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
good animations news
« Reply #38 on: 6 May 2007, 12:33:41 »
I've got something for blender 2.34!!

It can export animations again!
I'm in contact with someone from the blender community and we get good results now. The things are still a bit unstable, but it works.
If you can't wait, contact me, otherwise I will release a new blender-xml-exporter soon which can export animations !!

( contact is:  info at titusgames )
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Aquilia

  • Guest
(No subject)
« Reply #39 on: 19 May 2007, 15:03:29 »
Quote from: "Herr_Alien"
Quote from: "firedeathbot"
i folowed the installation instructions looked at the grdv4 file and it was the updated one but i'm getting a problem with the box it opens and instantly closes with no obvious effect can you help me?

Hmm, obviously nobody likes the command line utilities.
Ok, in this case download the versions with a minimal GUI here:

http://h1.ripway.com/herralien2/arch/gl ... UI_0.1.zip

Enjoy
.


I tried it, but as output I got an empty file...
« Last Edit: 1 January 1970, 00:00:00 by Aquilia »

Herr_Alien

  • Guest
-
« Reply #40 on: 23 May 2007, 14:22:10 »
ok:
1. unpack the entire zip file somewhere on your HDD
2. doubleclick xml2g_gui.exe
3. select the xml file to convert
4. type in a name to specify the output file

and that should be it.

if it still doesn't work, please send me the xml file, I'dd like to give it a go ...
my e-mai address: garone80-^-yahoo.com
« Last Edit: 15 April 2016, 19:35:58 by filux »

Aquilia

  • Guest
(No subject)
« Reply #41 on: 24 May 2007, 15:31:25 »
someone else already tried that.
I think there is an error in the XML file
« Last Edit: 1 January 1970, 00:00:00 by Aquilia »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
new blender export script!
« Reply #42 on: 28 May 2007, 20:30:02 »
It's done!
Weedkiller and I  have made a new exportscript.
Blender can export animations for glest again.

download on www.titusgames.de:
[url]http://www.titusgames.de/blender/[g3d_xml_exporter_v0.1.4.zip/url]
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

nebuchadnezzar

  • Guest
(No subject)
« Reply #43 on: 13 October 2007, 00:45:56 »
Hey Titi thanks for the help I appreciate it but I have one question. When I open up the DOS box and navigate to the directory i type the following-
                           g2xml.exe frog.xml frog.g3d
Is this the right thing to type? It says "This program cannot be run in DOS mode" (I have a windows. Would this have anything to do with it?) I appreciate all replies. Thanks a bunch!
« Last Edit: 1 January 1970, 00:00:00 by nebuchadnezzar »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
(No subject)
« Reply #44 on: 16 October 2007, 09:39:15 »
g2xml.exe is the wrong thing, you need xml2g.exe
( in words  xml to glest
 
.\xml2g.exe frog.xml frog.g3d


( xml2gexe and the *.dtd file have to be in the current directory.)
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios