🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.pl.comp.lang.csharp
1 messages
1 total messages Started by Polon Thu, 05 May 2011 10:12
XNA, przezroczystosc na czarnym tle
#22150
Author: Polon
Date: Thu, 05 May 2011 10:12
30 lines
1513 bytes
Witam szanownych grupowiczow!

Pisze moja pierwsza gre w XNA.

Wyswietlam napisy, ktore chce aby sie wygaszaly przed zniknieciem.

Chce to zrobic za pomoca zmian kanalu Alpha.

Wyswietlanie obrazka:

color.A = to sie zmienia
spriteBatch.Draw(animacje2DArray[animacjaRamkaId], screenRectangle, color);	


To dziala ladnie ale tylko wtedy gdy wymazuje ekran przez:

GraphicsDevice.Clear(Color.White);

dla 

GraphicsDevice.Clear(Color.Black);

kanal Alpha wydaje sie, ze nie ma w ogole znaczenia.

1. Dlaczego tak sie dzieje?
2. Jak wygaszac obrazki na czarnym tle?

Dziekuje

Polon
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads