PDA

View Full Version : Problem with surfaces



LaDoncella
02-07-2007, 09:30 PM
hi, I have been working for a while with clanlib, an exelent library ;)
Recently I retake the work on my game project (after 2-3 months), and when i runned it, all surfaces that are suposed to have transparencies didn't.
I tried also to use the precompiled examples of LinearParticle, and happens the same.
Also I tested it in 4 diferent computers (all with ati cards) and the same happens

Then I found a "solution", instead of using surfaces use sprites:
http://img.photobucket.com/albums/v439/LaDoncella/worngSurface.png
note: also in every computer, the color where is supposed to be a transparency is a different color.

however, thats not a good solution.
can anyone help me?


Alex

pd.sorry for my bad english

Chambers
02-08-2007, 12:25 AM
What's the code you're using to display the surface?

LaDoncella
02-08-2007, 01:21 AM
CL_ResourceManager *recursos;
CL_Surface *estado_fin;

recursos = new CL_ResourceManager("Resources/resources.xml");

estado_fin = new CL_Surface("Interfaz/Derrota", recursos);

int posX = estado_fin->get_width() / 2;
int posY = estado_fin->get_height() / 2;
int heightP = ( CL_Display::get_height() )/2;
int widthP = ( CL_Display::get_width() )/2;

estado_fin->draw (widthP - posX, heightP - posY);


where resources.xml

<section name="Interfaz">
<surface name="Derrota" file="Interfaz/derrota.png" />
</section>

LaDoncella
02-15-2007, 10:58 PM
binaries compiled with clanlib 0.7.8 seems to work fine, but with clanlib 0.8.0 dont :(

galaxist
02-28-2007, 07:34 AM
I tried running precompiled LinearParticle examples on my brother's PC that with ATI Radeon 9700 Pro graphics card, the particles were rendered correctly. Are you using new graphics drivers for the computers you've tested?

LaDoncella
03-11-2007, 03:57 PM
On this computer
i got:
radeon x800xt, omega drivers (3.8.330, based on ati 7.1)

the others have something like this:
radeon 9200 se, 4 years old (ati) drivers
radeon 9250, 6-12 months old (ati) drivers
radeon 9600xt, 6 months old (omega) drivers

all under windows xp sp2