Blender S3O Import/Export + BOS Export Plugin v0.6 - Page 4

Blender S3O Import/Export + BOS Export Plugin v0.6

Tutorials & Resources For Modellers & Skinners

Moderators: MR.D, Moderators

User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by thesleepless » 07 Aug 2009, 09:56

sorry i don't have it anymore, i'm going to leave the BOS exporter until blender 2.5 is done with its new animation system then port it over
0 x

Super Mario
Posts: 814
Joined: 21 Oct 2008, 02:54

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by Super Mario » 30 Nov 2009, 22:57

Blender 2.5 alpha version is out. The next stable release is 2.6
0 x

User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by thesleepless » 30 Nov 2009, 23:03

yep, i have the alpha, although it's not really ready for production use, i'll work on porting the importer/exporter
0 x

Super Mario
Posts: 814
Joined: 21 Oct 2008, 02:54

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by Super Mario » 30 Nov 2009, 23:05

thesleepless wrote:yep, i have the alpha, although it's not really ready for production use, i'll work on porting the importer/exporter
Woot! Be sure to add support for 3do import please :D
0 x

krychle
Posts: 46
Joined: 01 Jul 2006, 00:09

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by krychle » 30 Nov 2009, 23:15

thesleepless wrote:yep, i have the alpha, although it's not really ready for production use, i'll work on porting the importer/exporter
I'm working in it, 2.5 is looking realy GREAT. The oficial alpha release looks stable, but i'm only modeling.

I think python API should be freezed before first beta (2)... I don't know where I read it :)

http://www.blender.org/development/rele ... ender-250/
0 x

thedude
Posts: 66
Joined: 21 Aug 2009, 12:47

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by thedude » 20 Dec 2009, 11:34

When I try to use my exported model in Spring the texture is only at some faces correct but the others seems to be broken. I don't know why cause in Blender it looks ok.
(I attached the blend file, the textures, and ingame screenshot)
Attachments
cube.7z
(183.24 KiB) Downloaded 55 times
0 x

User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by thesleepless » 20 Dec 2009, 11:44

sorry, this is a problem with the exporter as discussed earlier, you'll need to split the edges where the texture is split.

the easiest way to do this is probably to mark the edges where the texture splits as sharp, then apply the EdgeSplit modifier (From Marked As Sharp)

i'll try to figure out a more automatic solution, but that's a workaround for the moment
0 x

thedude
Posts: 66
Joined: 21 Aug 2009, 12:47

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by thedude » 21 Dec 2009, 19:58

Many thanks!
0 x

thedude
Posts: 66
Joined: 21 Aug 2009, 12:47

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by thedude » 27 Jan 2010, 18:04

This time I try to export a "model" (just more cubes) to s3o but after importing it to Upspring it looks very crazy. I guess I tried to apply everything (like: scale, rotate, ...) but it does not help. When I do "Alt+P -> Clear Parent Inverse" the model looks the same way like after importing to Upspring. I modeled from scratch (did not import a s3o). I use Blender 2.49b.
Attachments
new1.7z
(32.63 KiB) Downloaded 56 times
0 x

EatMyShrapnel
Posts: 31
Joined: 25 Jun 2010, 20:16

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by EatMyShrapnel » 25 Jun 2010, 20:24

Hello there!

I imported in blender a s30 model and tried to exported it, but didn't work. I get a message « Python script error : check the console »

Code: Select all

loading /home/user/.spring/mods/damned/objects3d/orc_wall1.s3o
loaded header
loading texture 'orc_wall1.tga' ...
loading piece 'orc_wall'
loading 0 verts
loaded 0 faces
finished loading piece 'orc_wall'
loading 1 children
loading piece 'base'
loading 204 verts
loaded 68 faces
finished loading piece 'base'
constructing mesh...
done
Traceback (most recent call last):
  File "/home/user/.blender/scripts/s3o_export.py", line 231, in save_s3o_file
    header.texture2 = os.path.basename(textures[1].tex.image.getFilename())
AttributeError: 'NoneType' object has no attribute 'tex'
I use Blender 2.49b on ubuntu 10.4, can anyone help me ?
0 x

EatMyShrapnel
Posts: 31
Joined: 25 Jun 2010, 20:16

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by EatMyShrapnel » 27 Jun 2010, 12:48

When I tried with suzane (blender's monkey mesh), it works :

Code: Select all

texture1: tex_1.png
texture2: tex_2.png
exporting [Suzanne]
exported 507 verts
Root = [Suzanne]
Root = [Suzanne]
Root = [Suzanne]
saving object [Suzanne]
saving 0 children
done [Suzanne]
Export Complete
With my own mesh, it not working. I get this message :

Code: Select all

texture1: tex_1.png
texture2: tex_2.png
Traceback (most recent call last):
  File "/home/user/.blender/scripts/s3o_export.py", line 304, in save_s3o_file
    pieces.append(piece)
UnboundLocalError: local variable 'piece' referenced before assignment
I need help, I don't understand what that mean...
0 x

User avatar
Cremuss
Posts: 364
Joined: 28 Oct 2006, 21:38

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by Cremuss » 03 Aug 2010, 23:21

Hey,

Great tool :)

Any updates on the UV problem ?
I don't want to "mark sharp" 300 edges... :mrgreen:

Blender 2.53 beta is done now, it's the "ready for documentation" release so I guess you can port you exporter to 2.5 now :-) 8)
0 x

Super Mario
Posts: 814
Joined: 21 Oct 2008, 02:54

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by Super Mario » 04 Aug 2010, 01:51

Cremuss wrote:Hey,

Great tool :)

Any updates on the UV problem ?
I don't want to "mark sharp" 300 edges... :mrgreen:

Blender 2.53 beta is done now, it's the "ready for documentation" release so I guess you can port you exporter to 2.5 now :-) 8)
The next stable version of spring will support the .obj model format.
0 x

User avatar
Cremuss
Posts: 364
Joined: 28 Oct 2006, 21:38

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by Cremuss » 04 Aug 2010, 14:45

Oh, that's great news thanks ! :-)
0 x

User avatar
Wartender
Conflict Terra Developer
Posts: 300
Joined: 17 Jan 2009, 22:37

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by Wartender » 30 Sep 2010, 02:03

any chance this can be made to export to the newfangled Lua animation system thingamajig?
apparently BOS is oldsauce
0 x

User avatar
Wartender
Conflict Terra Developer
Posts: 300
Joined: 17 Jan 2009, 22:37

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by Wartender » 05 Oct 2010, 02:14

So, with the power of my experience in python (never having written a single line of code of it), my experience with animating spring units (never even attempted to), i modified the script to output lua instead, using as a guideline car's BOS-to-LUA converter.

It works, the difference between the two scripts is what you get passing BOS through car's script. will it animate a unit? i don't know. i don't know how to animate units.

edit: i also forgot to mention i don't know any Lua or BOS.
Attachments
lua_export.7z
needless to say, use at your own risk.
(1.78 KiB) Downloaded 45 times
0 x

User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by thesleepless » 05 Oct 2010, 03:15

> I don't want to "mark sharp" 300 edges... :mrgreen:

Yeah, it's not fun... I haven't figured out a way to do this automatically yet.

But yes, since new spring will support .obj i don't really see the point on working on the s3o exporter further.

the animation exporter will need to be reworked with blender's new animation system. I may look into this soon, adapting it for lua should be no problem.
0 x

User avatar
Wartender
Conflict Terra Developer
Posts: 300
Joined: 17 Jan 2009, 22:37

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by Wartender » 09 Oct 2010, 21:21

what's the chances of this being done soon? would adapting the current one to export to lua (better than mine) be too much work? i don't use the new blender anyway, the UI is confusing and new D:
0 x

NeOmega
Posts: 62
Joined: 15 Dec 2010, 11:06

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by NeOmega » 17 Dec 2010, 04:54

line 23 in <module>
import BPyMessages
Import error: No Module Named BPyMessages

:?

I have the latest python installed, or at least the one that was recent when this script was posted.

Blender 249.2 (I think 2.49b)
0 x

tino415
Posts: 10
Joined: 20 Feb 2013, 09:55

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Post by tino415 » 24 Feb 2013, 12:54

I downloaded, extracted to script/addons directory, twice restart blender, set access level of that files to very public, restart blender, nothing...., I use blender 6.5, also a small suggestion... export to lua script...
0 x

Post Reply

Return to “Modelling & Texturing Tutorials & Resources”