Blender S3O Import/Export + BOS Export Plugin v0.6
Moderators: MR.D, Moderators
- thesleepless
- Posts: 417
- Joined: 24 Oct 2007, 04:49
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
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
-
- Posts: 823
- Joined: 21 Oct 2008, 02:54
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
Blender 2.5 alpha version is out. The next stable release is 2.6
- thesleepless
- Posts: 417
- Joined: 24 Oct 2007, 04:49
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
yep, i have the alpha, although it's not really ready for production use, i'll work on porting the importer/exporter
-
- Posts: 823
- Joined: 21 Oct 2008, 02:54
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
Woot! Be sure to add support for 3do import please :Dthesleepless wrote:yep, i have the alpha, although it's not really ready for production use, i'll work on porting the importer/exporter
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
I'm working in it, 2.5 is looking realy GREAT. The oficial alpha release looks stable, but i'm only modeling.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 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/
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
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)
(I attached the blend file, the textures, and ingame screenshot)
- Attachments
-
- cube.7z
- (183.24 KiB) Downloaded 77 times
- thesleepless
- Posts: 417
- Joined: 24 Oct 2007, 04:49
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
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
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
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
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 84 times
-
- Posts: 31
- Joined: 25 Jun 2010, 20:16
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
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 »
I use Blender 2.49b on ubuntu 10.4, can anyone help me ?
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'
-
- Posts: 31
- Joined: 25 Jun 2010, 20:16
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
When I tried with suzane (blender's monkey mesh), it works :
With my own mesh, it not working. I get this message :
I need help, I don't understand what that mean...
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
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
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
Hey,
Great tool :)
Any updates on the UV problem ?
I don't want to "mark sharp" 300 edges...
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
Great tool :)
Any updates on the UV problem ?
I don't want to "mark sharp" 300 edges...
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
-
- Posts: 823
- Joined: 21 Oct 2008, 02:54
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
The next stable version of spring will support the .obj model format.Cremuss wrote:Hey,
Great tool :)
Any updates on the UV problem ?
I don't want to "mark sharp" 300 edges...
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
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
Oh, that's great news thanks !
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
any chance this can be made to export to the newfangled Lua animation system thingamajig?
apparently BOS is oldsauce
apparently BOS is oldsauce
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
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.
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 70 times
- thesleepless
- Posts: 417
- Joined: 24 Oct 2007, 04:49
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
> I don't want to "mark sharp" 300 edges...
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.
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.
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
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:
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
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)
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)
Re: Blender S3O Import/Export + BOS Export Plugin v0.6
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...