no alpha used in <Cockpit front="sprite.spr">

Thinking about improving the Artwork in Vega Strike, or making your own Mod? Submit your question and ideas in this forum.

Moderator: pyramid

Post Reply
pheldens
Bounty Hunter
Bounty Hunter
Posts: 178
Joined: Mon Sep 26, 2005 1:15 am

no alpha used in <Cockpit front="sprite.spr">

Post by pheldens »

Hi, is there a way to use the alpha channel in sprites defined in cockpit views? <Cockpit front="sprite.spr">

It doesnt seem to work, like with normal sprites for spec, jump, etc.

I have
sprite.spr wrote: cockpit/sprite.png cockpit/sprite.png
1 1
0 0

And only it's hard colors are shown, not the 50% transparant sections.
the same .spr works fine on other places in the hud.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Post by klauss »

It's a config issue, actually.
Find the high_quality_sprites variable, which must be on false, and set it to true. That will enable 50% transparency zones, if your png has them.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
pheldens
Bounty Hunter
Bounty Hunter
Posts: 178
Joined: Mon Sep 26, 2005 1:15 am

Post by pheldens »

Thanks, but I had that enabled already myself.

Other sprites render 50% alpha fine, it's just the cockpit sprite that doesnt.
I'm now using a 'hack' with the crosshair sprite that does handle it. ;p
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Post by klauss »

I'll check that... it should allow translucency.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
pheldens
Bounty Hunter
Bounty Hunter
Posts: 178
Joined: Mon Sep 26, 2005 1:15 am

Post by pheldens »

Quit message alpha. With and without on screen vector graphics. (Target Selector on Atlantis)

Image
Image
Halleck
Elite
Elite
Posts: 1832
Joined: Sat Jan 15, 2005 10:21 pm
Location: State of Denial
Contact:

Post by Halleck »

Interesting, perhaps make it a little bit darker?

Also, if you plan to use the logo, please make your source files available to us (so we can update it to use the new logo later.)
pheldens
Bounty Hunter
Bounty Hunter
Posts: 178
Joined: Mon Sep 26, 2005 1:15 am

Post by pheldens »

cockpit alpha.

Image
<Cockpit file="crosshairs.spr" r="1" g="1" b="1" >
<!-- <Crosshairs file="crosshairs.spr" /> -->
</Cockpit>



Image
<Cockpit file="crosshairs.spr" r="1" g="0" b="0" >
<Crosshairs file="crosshairs.spr" />
</Cockpit>


Image
<Cockpit r="1" g="1" b="1" >
<Crosshairs file="crosshairs.spr" />
</Cockpit>
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Post by klauss »

Just a warning:
There are some bugs in cockpit stuff, that I fixed and will commit later.
The most nasty of them will crash to desktop.

For instance... to have alpha in cockpit files, you need this in vegastrike.config (graphics section)

Code: Select all

<var name="blend_panels" value="true"/>
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
pheldens
Bounty Hunter
Bounty Hunter
Posts: 178
Joined: Mon Sep 26, 2005 1:15 am

Post by pheldens »

thanks klauss I'll check them out later to see how it behaves.

these tests were done with CVS of 14 jan 2006
and in versions before that I had similar results.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Post by klauss »

I'll commit the fixes tomorrow... I forgot to bring the files today. Oops... sorry.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Post Reply