Author Topic: blender help  (Read 9043 times)

rts gamerguy

  • Guest
blender help
« on: 4 July 2008, 18:05:50 »
Okay, so i've got the import/export script for blender, but it's pretty much useless to me, as I'm having trouble getting it to work. Seeig as how I have no idea what I'm doing wrong, could someone just give me a step-by-step, idiot proof and short description on how I can load an existing model from glest into blender, then get it to be a 3dg model again? I'd also like to know If it is alright to release a modified and reskinned glest model to the glest community (for free, obviously) without some kind license, because i don't know (excuse my language) jack about licenses. Also, could I get a simple description on how to animate my model once I have it the way i want? Please don't give me any links, reading those huge guides give me a headache. even video tutorials annoy me.

If anyone ever answers any of these requests, thanks a TON in advance.
« Last Edit: 1 January 1970, 00:00:00 by rts gamerguy »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
(No subject)
« Reply #1 on: 4 July 2008, 21:54:12 »
I need to know this too. The export script wont seem to work, and the wiki isnt very descriptive. Say, can anyone send me a copy of the specific folders of blender that contain the exporter/importer? I'm sure both me and RTS Gamerdude here (plus many others) would be able to use this.

I, too, thank you in advance.

BTW, I need this so I can finish my tech tree. I cant post it online until all the models are done, you will recieve credit in the tech tree!
« Last Edit: 1 January 1970, 00:00:00 by omega »
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

ttsmj

  • Guest
(No subject)
« Reply #2 on: 4 July 2008, 22:07:11 »
omega, i think you need to compile it >:(
(ehm,this gonna be difficult..)

maybe there are binaries included in the exportscript?
« Last Edit: 1 January 1970, 00:00:00 by ttsmj »

rts gamerguy

  • Guest
(No subject)
« Reply #3 on: 5 July 2008, 20:07:09 »
oh, for my initial question, don't answer the part about importing anymore please, I've figured it out. but i would still like some help with animating and exporting...
« Last Edit: 1 January 1970, 00:00:00 by rts gamerguy »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
(No subject)
« Reply #4 on: 5 July 2008, 21:36:25 »
open the import and export script with an editor. In the comments is a discription how to install it.


the exporter:
 - Copy this Script(g3d_xml_exporter_v0.1.6.py) into your .blender\scripts directory
 - restart blender

now you can export with File->Export->G3D XML Exporter...

the importer(export doesn't work here):
 Copy this Script AND g3d_logo.png into .Blender\scripts
 directory then start inside blender Scripts window
 "Update Menus" after that this Script here is accesible
 as 'Wizards' G3d Fileformat Im/Exporter
« Last Edit: 1 January 1970, 00:00:00 by titi »
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
(No subject)
« Reply #5 on: 6 July 2008, 01:04:25 »
How do u get the converter to work? I cant convert the xmls because the program doesnt work...
« Last Edit: 1 January 1970, 00:00:00 by omega »
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
-
« Reply #6 on: 6 July 2008, 02:23:35 »
You have to prepare the model to export it! No quads are allowed only triangles for example...( there is a function to convert all quads in blender! ) , STartframe end endframe must be set to 1 ( if model is non animated) and so on:
read this:
https://docs.megaglest.org/Exportscript

you should also have a look at this:
https://docs.megaglest.org/Glest_Blender_Hints

how to use the converter:

xml2g.exe / g3d.dtd  / yourmodel.xml       must be in the same directory !!!
Open a console( cmd in windows) and change to this directory.
now type:

xml2g yourmodel.xml yourmodel.g3d

I hope it works now
« Last Edit: 18 June 2016, 19:30:31 by filux »
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
(No subject)
« Reply #7 on: 7 July 2008, 08:49:25 »
Does it work now?
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

rts gamerguy

  • Guest
(No subject)
« Reply #8 on: 7 July 2008, 15:59:49 »
works fine for me now, thanks.
« Last Edit: 1 January 1970, 00:00:00 by rts gamerguy »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
(No subject)
« Reply #9 on: 7 July 2008, 18:04:34 »
how do I change those parts? I'm new to c++ (but starting to learn) I think I need some sort of compiler, since the microsoft visual folder in my computer is empty (?)
« Last Edit: 1 January 1970, 00:00:00 by omega »
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
(No subject)
« Reply #10 on: 8 July 2008, 01:12:45 »
The instructions just say add the lines and being a header file it might not need to be compiled. Do a search for the file and use a text editor.
« Last Edit: 1 January 1970, 00:00:00 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
(No subject)
« Reply #11 on: 8 July 2008, 05:04:21 »
I opened it in notepad, but couldn't find the lines. Can someone just upoad the compiled version? I'd apreciate that. And why is the file not compiled in the downloads page in the first place?
« Last Edit: 1 January 1970, 00:00:00 by omega »
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
(No subject)
« Reply #12 on: 8 July 2008, 07:23:33 »
What files are you talking about?
Which OS? Windows?( you said notepad )


If it is glexemel ( xml2g.exe is a part of it ) you are talking about try this one:
http://www.glest.org/files/contrib/tool ... 2_0.1a.zip
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

rts gamerguy

  • Guest
(No subject)
« Reply #13 on: 8 July 2008, 16:59:20 »
um, sorry to ask for help so much, but I did another conversion recently and although I'm pretty sure I did it the same way I did before, command prompt (I'm on windows) doesn't seem to want to do the operation. Could someone just explain to me what I should type in there? here's what I typed (my model's name is giant_with_anim, in a folder named giant with anim) Now I figure my problem stems from my unfamiliarity with cmd, but here's what I typed:

C:\documents and settings\ "my username">my documents>cloud with anim>xml2g giant_with_anim.xml giant_with_anim.g3d

the c:\documents... up to "my username" bit was, of course, already typed, and please don't laugh, I know (or at least I have a feeling) that i did some really stupid mistake... what is it? thanks for your help, whoever answers
« Last Edit: 1 January 1970, 00:00:00 by rts gamerguy »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
(No subject)
« Reply #14 on: 8 July 2008, 18:01:55 »
I think you meant this:
C:\documents and settings\ "my username"\my documents\cloud with anim> xml2g giant_with_anim.xml giant_with_anim.g3d

I think this should be correct...
Did you copy  xml2g.exe and  g3d.dtd to this directory ("C:\documents and settings\ "my username"\my documents\cloud with anim") ;

what you have to type is in the dos command:
c:
cd "C:\documents and settings\ my username\my documents\cloud with anim"
xml2g.exe  giant_with_anim.xml giant_with_anim.g3d

But I think everything is ok.
Probably you had trouble with the blender exporter. Try to export it again and be shure that you  have selected the object(s) you want to export when exporting (in object mode).
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

rts gamerguy

  • Guest
(No subject)
« Reply #15 on: 9 July 2008, 13:29:34 »
oh yeah (oops!) I just checked the wiki for exporting and forgot to animate with bones (it was annoying to move all those vertices, I wonder how I forgot about bones???) thanks!
« Last Edit: 1 January 1970, 00:00:00 by rts gamerguy »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
(No subject)
« Reply #16 on: 10 July 2008, 05:05:28 »
And Titi, I downloaded that a long time ago, but I don't know what to do with it... (instructions need to be more detailed, why not include a pdf with images?)

Also Titi, could you please upload your converter? (Email or upload to a filehosting site like mediafire)

Thanks. :confused:
« Last Edit: 1 January 1970, 00:00:00 by omega »
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
(No subject)
« Reply #17 on: 10 July 2008, 07:59:50 »
I'm using linux, so I think my converter will not help you ...
But, the package you downloaded contains the files you need.
there is xml2g.exe and g3d.dtd in it.
Thats all you need.
« Last Edit: 1 January 1970, 00:00:00 by titi »
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
(No subject)
« Reply #18 on: 11 July 2008, 17:15:28 »
If you want to know what went wrong, when converting in cd, it says: error parsing xml.
« Last Edit: 1 January 1970, 00:00:00 by omega »
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
(No subject)
« Reply #19 on: 12 July 2008, 00:18:57 »
I think your xml isn't exported right!
Probably it was not prepared well to export it.
here some hints for things that can go wrong before exporting:
-Did you convert all quads to triangels?
-do you export in objectmode and  selected the object you wanted to export?
-did you set startframe and end frame?
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

rts gamerguy

  • Guest
(No subject)
« Reply #20 on: 26 July 2008, 17:27:35 »
I am having a new problem; my blender got all messed up so I downloaded 2.46, but it can only export models without textures! can anyone help me out with this?
« Last Edit: 1 January 1970, 00:00:00 by rts gamerguy »

ZaggyDad

  • Guest
(No subject)
« Reply #21 on: 28 July 2008, 21:59:30 »
Do you have a material with a image texture set to UV map input? (Sorry if this question is confusing.)

~Zaggy
« Last Edit: 1 January 1970, 00:00:00 by ZaggyDad »

rts gamerguy

  • Guest
(No subject)
« Reply #22 on: 29 July 2008, 13:49:13 »
i always make my models with a material, as for that last part, although I'm  not to sure what you mean, but my texture is loaded both through the uv thing and through the shading tab in the buttons window (and the map input is set to uv not orco) if that's what you mean. do you think it might have anything with there being no face select mode in 2.46? or is it just something I'm doing wrong? if it's the latter, I can explain everything I'm doing. thanks for the help.
« Last Edit: 1 January 1970, 00:00:00 by rts gamerguy »

ZaggyDad

  • Guest
(No subject)
« Reply #23 on: 29 July 2008, 15:26:44 »
Well, I'm sure that 2.46 has face select, but I don't think that would matter, so it must be something you're doing wrong. It took me like a month to figure out animation and how to export the stuff. :-[

~Zaggy
« Last Edit: 1 January 1970, 00:00:00 by ZaggyDad »

weedkiller

  • Draco Rider
  • *****
  • Posts: 277
    • View Profile
(No subject)
« Reply #24 on: 29 July 2008, 15:45:02 »
you could upload the blend to let us have a look
http://http://www.mediafire.com/
« Last Edit: 1 January 1970, 00:00:00 by weedkiller »