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 »

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
Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

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

Post by Super Mario »

Blender 2.5 alpha version is out. The next stable release is 2.6
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

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

Post by thesleepless »

yep, i have the alpha, although it's not really ready for production use, i'll work on porting the importer/exporter
Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

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

Post by Super Mario »

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
krychle
Posts: 46
Joined: 01 Jul 2006, 00:09

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

Post by krychle »

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/
thedude
Posts: 66
Joined: 21 Aug 2009, 12:47

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

Post by thedude »

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 65 times
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

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

Post by thesleepless »

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
thedude
Posts: 66
Joined: 21 Aug 2009, 12:47

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

Post by thedude »

Many thanks!
thedude
Posts: 66
Joined: 21 Aug 2009, 12:47

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

Post by thedude »

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 67 times
EatMyShrapnel
Posts: 31
Joined: 25 Jun 2010, 20:16

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

Post by EatMyShrapnel »

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 ?
EatMyShrapnel
Posts: 31
Joined: 25 Jun 2010, 20:16

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

Post by EatMyShrapnel »

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...
User avatar
Cremuss
Posts: 364
Joined: 28 Oct 2006, 21:38

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

Post by Cremuss »

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)
Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

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

Post by Super Mario »

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.
User avatar
Cremuss
Posts: 364
Joined: 28 Oct 2006, 21:38

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

Post by Cremuss »

Oh, that's great news thanks ! :-)
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 »

any chance this can be made to export to the newfangled Lua animation system thingamajig?
apparently BOS is oldsauce
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 »

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 53 times
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

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

Post by thesleepless »

> 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.
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 »

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:
NeOmega
Posts: 64
Joined: 15 Dec 2010, 11:06

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

Post by NeOmega »

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)
tino415
Posts: 10
Joined: 20 Feb 2013, 09:55

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

Post by tino415 »

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...
Post Reply

Return to “Modelling & Texturing Tutorials & Resources”