Archived

This topic is now archived and is closed to further replies.

SDL and Win 2000 and Win XP

This topic is 5848 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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!]

Share this post


Link to post
Share on other sites
quote:
Original post by Null and Void
[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!]

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
>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.

Share this post


Link to post
Share on other sites
*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

Share this post


Link to post
Share on other sites
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!]

Share this post


Link to post
Share on other sites
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."

Share this post


Link to post
Share on other sites
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 !

Share this post


Link to post
Share on other sites
quote:
Original post by Drizzt DoUrden
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)?

Sort of, except that the whole bitmap isn''t always the same alpha value. Normally the alpha byte for each pixel is used to determine that pixel''s transparency.



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

Share this post


Link to post
Share on other sites