Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Download Outerra Tech Demo. Unofficial Outerra Discord server, MicroProse Discord server for OWS.

Author Topic: fbx export from blender with python scripts  (Read 19692 times)

fly77

  • Outerra Master Modder
  • Hero Member
  • *****
  • Posts: 1761
fbx export from blender with python scripts
« on: September 21, 2019, 04:39:17 am »

I noticed that with the new version when trying to import a fbx file from blender into outerra the following warning appears:
WARNING: The imported FBX file was created by Blender FBX exporter which may have some issues. Please, use OT modified FBX exporter. You can find it in Outerra_instalation_path/tools/blender/io_scene_fbx or https://github.com/Outerra/anteworld/tree/master/blender/io_scene_fbx
Indeed in some models I get artifacts.

How is this done ? there are lots of scripts in the https://github.com/Outerra/anteworld/tree/master/blender/io_scene_fbx folder. I guess for exporting fbx I should use the  export_fbx.py script or export_fbx_bin.py

I copied the the the  "export_fbx.py" script to the blender python editor and run the script with my scene open, but nothing happens.

Admittedly I don't know how these python files are used as I have never used any in blender. How are these files supposed to be used ? just running the whole script or after running the script (kind of "compiling") calling "something" in the python console ? I guess the latter but what is this "something" to call ? Do the scripts add any new export button ?    Or do I need to copy all scripts and run all of them ?


« Last Edit: September 21, 2019, 10:38:46 am by fly77 »
Logged

cyrilgramblicka

  • Outerra Developer
  • Newbie
  • *****
  • Posts: 4
Re: fbx export from blender with python scripts
« Reply #1 on: September 23, 2019, 04:21:50 am »

You just have to replace old FBX importer folder with ours. It should be placed in "Program Files\Blender Foundation\Blender\2.xx\scripts\addons" (or wherever your blender is installed). There is a folder "io_scene_fbx" which should be replaced. But it is working only for version lesser then 2.80. In the 2.80 version there are some API changes that are not implemented yet in our version.
Logged

fly77

  • Outerra Master Modder
  • Hero Member
  • *****
  • Posts: 1761
Re: fbx export from blender with python scripts
« Reply #2 on: September 23, 2019, 01:07:26 pm »

Thank you very much !
Logged

aWac9

  • Hero Member
  • *****
  • Posts: 2601
  • newbie
Re: fbx export from blender with python scripts
« Reply #3 on: June 23, 2020, 06:15:34 pm »

Logged

fly77

  • Outerra Master Modder
  • Hero Member
  • *****
  • Posts: 1761
Re: fbx export from blender with python scripts
« Reply #4 on: June 24, 2020, 11:54:56 am »

nice...but I have the impression we can't import such stuff into outerra    :(
Logged

tex

  • Newbie
  • Posts: 4
Re: fbx export from blender with python scripts
« Reply #5 on: October 27, 2021, 07:47:46 pm »

Is there an updated plugin for Blender 2.8+
Logged

fly77

  • Outerra Master Modder
  • Hero Member
  • *****
  • Posts: 1761
Re: fbx export from blender with python scripts
« Reply #6 on: October 28, 2021, 03:06:28 am »

Is there an updated plugin for Blender 2.8+

There is a plugin for blender 2.8+

https://github.com/Outerra/anteworld/tree/master/blender
Logged

tex

  • Newbie
  • Posts: 4
Re: fbx export from blender with python scripts
« Reply #7 on: October 28, 2021, 03:09:40 am »

I tried that already; and the option for export to FBX didnt even show up in menu anymore.
Worked fine on 2.79b but no go on the current 2.93.
Logged

KW71

  • Outerra Developer
  • Hero Member
  • *****
  • Posts: 763
  • Love OT!
Re: fbx export from blender with python scripts
« Reply #8 on: November 01, 2021, 06:12:13 pm »

The option to export to .fbx is included in Blender by default. Try to export from 2.8+ without any script installed; should work.

« Last Edit: November 02, 2021, 01:02:50 pm by KW71 »
Logged
"A man who is contented with what he has done, will never become famous for what he will do".