Page 1 of 1
I need help to export from blender to spring
Posted: 27 Jun 2010, 21:28
by EatMyShrapnel
Hello there,
I try to export a model from blender to spring. Everytime my texture in spring is black :

I tried with differents formats, differents colors for tex_1 and for tex_2, but everytime I get something wrong. I using blender 2.49b with
blender_spring_plugins-0.6.zip
can someone help me?
Re: I need help to export from blender to spring
Posted: 28 Jun 2010, 00:12
by rattle
You've got no alpha channel on texture 1 thus the alpha value defaults to 1 which results in the entire model having team color, assuming that black is your team color.
Re: I need help to export from blender to spring
Posted: 28 Jun 2010, 02:34
by AF
I wonder if the default could be changed by spring...
Re: I need help to export from blender to spring
Posted: 28 Jun 2010, 10:55
by EatMyShrapnel
ok ok... for gimp Alpha = 0 means transparent and for spring means opaque
thx
Re: I need help to export from blender to spring
Posted: 30 Jun 2010, 01:25
by rattle
these are 24 bit RLE compressed (as in zipped) TGAs, they got no alpha channel
Re: I need help to export from blender to spring
Posted: 02 Jul 2010, 13:58
by EatMyShrapnel
rattle wrote:these are 24 bit RLE compressed (as in zipped) TGAs, they got no alpha channel
right!
After your first answer I make a texture version with alpha channel, and I saw that 0 means opaque for spring
Re: I need help to export from blender to spring
Posted: 02 Jul 2010, 21:44
by MidKnight
Well, alpha channel in spring actually represents teamcolor, which helps you identify which team the unit belongs to ingame. For example, the orange in this picture:
full opacity (255, ff, whatever you want to call it) means 100% teamcolor, so a flat color (in your case, flat black).
0% (fully transparent) means no teamcolor, so it's the texture.
Anything in between (semitransparent) causes the testure to be mixed with the teamcolor.
Keep in mind that this is only true in the texture1. In the texture2, the alpha channel has a different effect, and is actually unit transparency, and you can mess some things up and come up with invisible units by making the teture2 transparent.
Hope that helped, and happy modeling!

Re: I need help to export from blender to spring
Posted: 13 Jul 2010, 13:27
by EatMyShrapnel
thx