I need help to export from blender to spring

I need help to export from blender to spring

Share and discuss visual creations and creation practices like texturing, modelling and musing on the meaning of life.

Moderators: MR.D, Moderators

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

I need help to export from blender to spring

Post by EatMyShrapnel »

Hello there,

I try to export a model from blender to spring. Everytime my texture in spring is black :
Image
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?
Attachments
TEST.7z
TEST.blend TEST.png TEST.s3o tex_1.tga tex_2.tga
(251.25 KiB) Downloaded 12 times
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Re: I need help to export from blender to spring

Post 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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: I need help to export from blender to spring

Post by AF »

I wonder if the default could be changed by spring...
EatMyShrapnel
Posts: 31
Joined: 25 Jun 2010, 20:16

Re: I need help to export from blender to spring

Post by EatMyShrapnel »

ok ok... for gimp Alpha = 0 means transparent and for spring means opaque Image

thx
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Re: I need help to export from blender to spring

Post by rattle »

these are 24 bit RLE compressed (as in zipped) TGAs, they got no alpha channel
EatMyShrapnel
Posts: 31
Joined: 25 Jun 2010, 20:16

Re: I need help to export from blender to spring

Post 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
User avatar
MidKnight
Posts: 2652
Joined: 10 Sep 2008, 03:11

Re: I need help to export from blender to spring

Post 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:
Image

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

Re: I need help to export from blender to spring

Post by EatMyShrapnel »

thx
Post Reply

Return to “Art & Modelling”