SDL and Win 2000 and Win XP

Started by
9 comments, last by Davaris 22 years, 4 months ago
Has anyone had any problems with SDL and these systems? I found that the alpha blending doesnt work on Win 2000 with NVIDIA RIVA TNT2 Model 64 32 MB. Thats when its set to hardware mode. When its set to software mode it works.
"I am a pitbull on the pantleg of opportunity."George W. Bush
Advertisement
quote:Original post by Davaris
Has anyone had any problems with SDL and these systems?

I haven''t. I''m sure someone has.
quote:Original post by Davaris
I found that the alpha blending doesnt work on Win 2000
with NVIDIA RIVA TNT2 Model 64 32 MB. Thats when its set to hardware mode. When its set to software mode it works.

1. I don''t have that video card anymore (I used to though ).
2. I don''t use the video parts of SDL (I use OpenGL and SDL as a wrapper for everything else), so your complaint may be valid .

[Resist Windows XP''s Invasive Production Activation Technology!]
quote:Original post by Null and Void
Original post by Davaris
Has anyone had any problems with SDL and these systems?

I haven''t. I''m sure someone has.
quote:Original post by Davaris
I found that the alpha blending doesnt work on Win 2000
with NVIDIA RIVA TNT2 Model 64 32 MB. Thats when its set to hardware mode. When its set to software mode it works.

1. I don''t have that video card anymore (I used to though ).
2. I don''t use the video parts of SDL (I use OpenGL and SDL as a wrapper for everything else), so your complaint may be valid .

[Resist Windows XP''s Invasive Production Activation Technology!]

Hey NULL, what video card you using now?



"And that''s the bottom line cause I said so!"

** I WANT TO BE THE MODERATOR FOR THE LINUX FORUM **

Cyberdrek
Headhunter Soft
A division of DLC Multimedia

Resist Windows XP''s Invasive Production Activation Technology!

"gitty up" – Kramer
/(bb|[^b]{2})/ that is the Question – ThinkGeek.com
[Cyberdrek | ]

quote:Original post by Davaris
I found that the alpha blending doesnt work on Win 2000
with NVIDIA RIVA TNT2 Model 64 32 MB. Thats when its set to hardware mode. When its set to software mode it works.



Well I have the same video card but I don''t have Win2000, but I have had no problems with SDL on Linux.
Hello from my world
Are you sure you are using the alpha blending code correctly?
------------------------------Put THAT in your smoke and pipe it
>Are you sure you are using the alpha blending code correctly?

Dunno. I''ll have to post what I''m using. I have heard people say they use OpenGL for alpha blending.
"I am a pitbull on the pantleg of opportunity."George W. Bush
*assuming that by alpha blending, you mean getting rid of the colors around the important part of the bitmap, or making them transparent:*

Well, here is how I use alpha-blending is SDL:

in InitImages(), add the line SDL_SetColorKey(bitmapToLoad, SDL_SRCCOLORKEY, SDL_MapRGB(bitmapToLoad->format, r, g, b));

At the top of your program, add these globals:

int r = 255, g = 0, b = 255;

Where RGB is set to the red, green, and blue value of the pixel you want to make transparent. I was told that white is not a very good color to make transparent; that pink was better. That person was correct. I'll give the same advice to you.



Edited by - Drizzt DoUrden on December 12, 2001 4:22:53 PM
------------------------------Put THAT in your smoke and pipe it
Drizzt, that''s not alpha blending, that''s color keying. Alpha blending can be used to do that, but it''s normally used for translucency effects.

quote:Original post by Cyberdrek
Hey NULL, what video card you using now?

ASUS V7700 - Geforce2 GTS 32MB DDR AGP.

[Resist Windows XP''s Invasive Production Activation Technology!]
Still getting my game-talk down.

Alpha blending is when you make the whole bitmap at a certain alpha value (sort of like transparent is 0, opaque is 100, and 50 is somewhere in between)?

I am probably just confusing myself. Like I told my teacher when taking my GEPA in 8th grade:

"But.. I know the definitions. I just don''t know the words."
------------------------------Put THAT in your smoke and pipe it
dont know if this help but my entire 3d engine with opengl is based with SDL and it works #1 with 2k and xp and i have a TNT1 viper 550 16 megs.

May the code be with us !
May the code be with us !

This topic is closed to new replies.

Advertisement