Blender->Spring Feature script
Moderators: MR.D, Moderators
Re: Blender->Spring Feature script
obj >3ds thank you!
Re: Blender->Spring Feature script
your welcome. Only other format I would consider is colladasmoth wrote:obj >3ds thank you!
Re: Blender->Spring Feature script
You can use .blend in spring directly.I'm using alias wavefront obj format for the 3d files because it was the most documented and easiest to implement.
I'm currently doing a propaganda action wrt this in attempt to replace zk's buoy model (it's a fsck'ing Core Can!) with a .blend
Re: Blender->Spring Feature script
yeah I saw that when I was checking it out. however I don't believe a blend file is a good match for a distributed game file or as an interchange format. know of any other apps that can import a blend file?Anarchid wrote:You can use .blend in spring directly.I'm using alias wavefront obj format for the 3d files because it was the most documented and easiest to implement.
I'm currently doing a propaganda action wrt this in attempt to replace zk's buoy model (it's a fsck'ing Core Can!) with a .blend
OBJ is simple and the Lua files add the extra functionality. all plain text.
Re: Blender->Spring Feature script
D'oh, blender? I figure other major 3d modeling suites should also support it.know of any other apps that can import a blend file?
Though i guess doing it in .blend represents some *additional* lock-in to one already present in your script's dependance on blender.
(but then, isn't 3ds just the same?)
Re: Blender->Spring Feature script
I did mean 3d modeling and animation applications other than blender.Anarchid wrote:D'oh, blender? I figure other major 3d modeling suites should also support it.know of any other apps that can import a blend file?
Though i guess doing it in .blend represents some *additional* lock-in to one already present in your script's dependance on blender.
(but then, isn't 3ds just the same?)
I'm pragmatic, in the sense that the spring community is not very large really, and that doing difficult things on principle should be avoided, so yeah more apps should support blender, but that probably isn't going to happen much soon and even if it does it will be in the form of clean use of interchange formats like collada
3ds is the same in my opinion. which is why I said earlier the only other format I would support is collada which is a true interchange format.
But from what I've read over the years on various mailing lists, collada support is a bit iffy so I stuck with what was easy and already documented. I wanted a solution now that works and is acceptable for as many people as possible. obj is afaik so common its a no brainer until i want to do something more advanced, and then it will be collada.. but i am not there yet.
Re: Blender->Spring Feature script
Oh, i just re-read the thread and found this:
I used to do DDS textures back in the olden days on linux with gimp-dds plugin. I did have to sudo make install it, but that was it.Also, regarding DDS I haven't found any simple FLOSS tools to work with DDS textures that are available without difficulty on Linux.
Re: Blender->Spring Feature script
No, 3ds dewelds vertices breaking normals due to a busted way of handling uvmaps.Anarchid wrote:(but then, isn't 3ds just the same?)
- Pressure Line
- Posts: 2283
- Joined: 21 May 2007, 02:09
Re: Blender->Spring Feature script
I may be wrong in this, but afaik in Spring a 'feature' (like the trees in this screenshot)
has to be a single object (ie, i cant have seperate "trunk" and "leaves" objects) while units can be as many separate parts as you want (im sure there is a limit, but im also sure its huge)
and afaik Spring only loads the 'first' mesh in the hierarchy, but someone will need to clarify
has to be a single object (ie, i cant have seperate "trunk" and "leaves" objects) while units can be as many separate parts as you want (im sure there is a limit, but im also sure its huge)
and afaik Spring only loads the 'first' mesh in the hierarchy, but someone will need to clarify
Re: Blender->Spring Feature script
Used to be the case, afaik hasn't been for a while wrt feature models.
Re: Blender->Spring Feature script
not mandatory but for performance its better:afaik in Spring a 'feature' (like the trees in this screenshot) has to be a single object
http://answers.springlobby.info/questio ... any-pieces
question 5
- Pressure Line
- Posts: 2283
- Joined: 21 May 2007, 02:09
Re: Blender->Spring Feature script
I stand corrected. Although its still *pointless* to have multiple pieces for a feature, because its not like you can animate it (as you mentioned earlier knorke)
Re: Blender->Spring Feature script
Thanks all that's some useful information, and a new site to check for answers :)
If it doesn't effect performance(due to non animating) then its not an issue.
If it doesn't effect performance(due to non animating) then its not an issue.
Re: Blender->Spring Feature script
Ok, just thought of a super useful feature that I will add to my script.
* attribute presets
So say I'm making a tree.. select a tree from the pre-sets and it will make it upright, reclaimable, blocking, etc and set the metal/energy/etc from the model xyz dimensions.
I understand this will only work for extremely generic features like grass/shrubs/trees/rocks.
* attribute presets
So say I'm making a tree.. select a tree from the pre-sets and it will make it upright, reclaimable, blocking, etc and set the metal/energy/etc from the model xyz dimensions.
I understand this will only work for extremely generic features like grass/shrubs/trees/rocks.
Re: Blender->Spring Feature script
sorry,imo not that usefull: If you have already made one tree feature you can just c&p the lua file to create the next one, takes few seconds.So say I'm making a tree.. select a tree from the pre-sets and it will make it upright, reclaimable, blocking, etc and set the metal/energy/etc from the model xyz dimensions.
And if there are so many features that manually editing the files gets annoying you can use something like this:
http://springrts.com/phpbb/viewtopic.php?f=14&t=26888
Re: Blender->Spring Feature script
Have few weird issues.
First I pointed at correct .tga images in blender t1 and t2 which were tested before in spring works with transparency. Then just for test again exported same model and from both good tga's transparency was removed. Ok small issue, I bet there is no way to export image as it looks in blender? you still must edit those manually to get wanted transparency?
And this issue is weird as hell. I had exported before to .dae with same .tga images transparency isint working at all. When using obj transparency works. BUT I must first load .dae model(maybe some others too) then load .obj one then transparency works, otherwise model is blue... Also tried other formats png, tiff only with tga's I can get transparency :/ this explains why I couldnt get transparent models some time ago... maybe its public secret that you must use .obj and .tga?
First I pointed at correct .tga images in blender t1 and t2 which were tested before in spring works with transparency. Then just for test again exported same model and from both good tga's transparency was removed. Ok small issue, I bet there is no way to export image as it looks in blender? you still must edit those manually to get wanted transparency?
And this issue is weird as hell. I had exported before to .dae with same .tga images transparency isint working at all. When using obj transparency works. BUT I must first load .dae model(maybe some others too) then load .obj one then transparency works, otherwise model is blue... Also tried other formats png, tiff only with tga's I can get transparency :/ this explains why I couldnt get transparent models some time ago... maybe its public secret that you must use .obj and .tga?
Re: Blender->Spring Feature script
OMG someone has attempted to use my script.. awesome!!!wolas wrote:Have few weird issues.
First I pointed at correct .tga images in blender t1 and t2 which were tested before in spring works with transparency. Then just for test again exported same model and from both good tga's transparency was removed. Ok small issue, I bet there is no way to export image as it looks in blender? you still must edit those manually to get wanted transparency?
And this issue is weird as hell. I had exported before to .dae with same .tga images transparency isint working at all. When using obj transparency works. BUT I must first load .dae model(maybe some others too) then load .obj one then transparency works, otherwise model is blue... Also tried other formats png, tiff only with tga's I can get transparency :/ this explains why I couldnt get transparent models some time ago... maybe its public secret that you must use .obj and .tga?
anyway, so I ran into a problem with the way I was copying the image files when exporting, basically it beaks up the images when it copies them to the destination folders. just copy your originals over the top for now.
Re: Blender->Spring Feature script
https://github.com/enetheru/springrts-b ... 453219bee1
last revision which works newer ones adds spheres instead plane for radius or whatever else.
http://postimage.org/image/8id9k7guz/
When I slide to change side it adds more spheres quickly.
At first I thought I dont understand how to use it, but when really tried to do something...
EDIT:
Have no idea how it broke but reverting next e2ff29e2de8a5a0a2f2259096d06c60db4e1ed0 commit and it works again.
last revision which works newer ones adds spheres instead plane for radius or whatever else.
http://postimage.org/image/8id9k7guz/
When I slide to change side it adds more spheres quickly.
At first I thought I dont understand how to use it, but when really tried to do something...
EDIT:
Have no idea how it broke but reverting next e2ff29e2de8a5a0a2f2259096d06c60db4e1ed0 commit and it works again.
Re: Blender->Spring Feature script
[offtopic?]
Ok, maybe not the best question for this thread judging by the text inside, although the title seems right:
I wanted to ask what animation file formats would you like supported in Spring?
I've once implemented an .obj opengl viewer myself, but I've never dealt with any animation-model (do you want mesh or bone models, or perhaps something else?).
What are the popular formats, MD2, MD3, etc? And should they be implemented directly or converted to some existing Spring one, like the .s3o for models?
PS: Didn't want to make a new thread as I'm kinda busy right now so probably can't implement anything about it, and this is little more than a curiosity as I'd like to know what's so hard about doing it right now.
[/offtopic?]
Ok, maybe not the best question for this thread judging by the text inside, although the title seems right:
I wanted to ask what animation file formats would you like supported in Spring?
I've once implemented an .obj opengl viewer myself, but I've never dealt with any animation-model (do you want mesh or bone models, or perhaps something else?).
What are the popular formats, MD2, MD3, etc? And should they be implemented directly or converted to some existing Spring one, like the .s3o for models?
PS: Didn't want to make a new thread as I'm kinda busy right now so probably can't implement anything about it, and this is little more than a curiosity as I'd like to know what's so hard about doing it right now.
[/offtopic?]
Re: Blender->Spring Feature script
AFAIK, spring uses animation scripts which use the pivot points of the individual pieces. I don't think it supports loading animations from file formats you specified.gajop wrote:[offtopic?]
Ok, maybe not the best question for this thread judging by the text inside, although the title seems right:
I wanted to ask what animation file formats would you like supported in Spring?
I've once implemented an .obj opengl viewer myself, but I've never dealt with any animation-model (do you want mesh or bone models, or perhaps something else?).
What are the popular formats, MD2, MD3, etc? And should they be implemented directly or converted to some existing Spring one, like the .s3o for models?
PS: Didn't want to make a new thread as I'm kinda busy right now so probably can't implement anything about it, and this is little more than a curiosity as I'd like to know what's so hard about doing it right now.
[/offtopic?]
http://springrts.com/wiki/Animation-CobLuaDifferences