Sign in to follow this  

Transitional effects

This topic is 4727 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

ok if youve played an RPG in your life time you know what im talking about, those cool whoosh effects when you start a battle i think that would be somthing cool to add to my game rather then just an instant trasition problem is that i have no idea on how to do this? i have a very simple a black "box" come over the screen starting at the left but other then that im not quite sure how to do anything more thanks[smile] EDIT: i actually got a pretty cool effect by randomly drawing a line on the screen and not updating anything else like so:
            SDL_Surface* Blinder = IMG_Load("BMPs/Blind.PNG");// a line that is 480 pixles long
            SDL_Rect Blind_Rect = {0,0,0,0};
            for (int I = 0;I < 350; I++)
            {
                SDL_BlitSurface(Blinder,NULL,screen,&Blind_Rect);
                SDL_Flip(screen);//to update only this
                Blind_Rect.x = rand()% 640;//seeded to the tick count
            };
            SDL_FreeSurface(Blinder);       



im still open to other ideas though EDIT2: actually i just found one i really like i did the above technique except instead of just a line i made a picture with a black back and spraypainted on some white blotches in paint then colorkeyed out the black and blitted it and it gives me a pretty cool effect [Edited by - raptorstrike on January 1, 2005 8:09:48 PM]

Share this post


Link to post
Share on other sites
I use OpenGL, not Direct3D, but the way I handled transitions is just to copy the framebuffer into a texture (or series of textures, depending on hardware support) and then during rendering, draw the old frame, appropriately transformed (Faded, distorted, melted, whatever) and then the new frame.

http://www.personal.psu.edu/users/d/j/djp211/mw/menudemo.avi

You can see it in action when "New Game" is clicked/cancelled

Share this post


Link to post
Share on other sites

This topic is 4727 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this