Jump to content
  • Advertisement

Archived

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

Scrammbled Effect

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

Background: A am working on a space fighter type game with a menu screen for ship selection. Problem: What I want to do is show the ships at the bottom of the screen and when the mouse isn''t over them, I want to have it look like its displayed on a scrammbled screen but so you can still see the ship sort of. And when the mouse is over it, the scrambled effect will disappear. What I was thinking about doing was putting like 50 random black pixels and 50 white pixels on top of the ship and have them generate new random numbers every few frames or so so its not really really flashy. I don''t think that this is the best approach to do this and I was wondering if anyone has any suggestions for me. I have been programming for about 7 years now but I have never done anything with graphics. Yes I know its sad but up until a year and a half ago, all I had was a 386 with a 40 meg hard drive and no ram ( besides the 640k ). I am just diving into graphics now and I am getting there. I am learning OpenGL right now from Nehe''s site ( amazing btw ) and am finding it very easy so I think I will be all right so don''t worry about complicated methods, I can follow ya. Thanks Shawn ( aka Spanky )

Share this post


Link to post
Share on other sites
Advertisement
I not sure about scramble (i don''t understand at all). But if the effect is the next :


X X
XXX XX
XXXXX -> X X X
XXXXXXX x x x x

You can use many images (2 or more) with the efect pre-created. Or you can put a black mask with the effect also pre-created. It is very fast and if you use a black mask (2bit), you cannot lose much memory.


-eng3d.softhome.net-

Share this post


Link to post
Share on other sites
I don''t know, if it is the same what eng3d means.
But you can use some Images, which only show disturbance, like an small animation from a Dead TV-Channel, and then put them onto an Texture.
Now you create an rectangle, with that Texture on it, and Alphablend it over the Image. If you keep the Texture small, it would be very fast. Best is to make one large Texture, and put the animazion Images onto different positions, and then change the Texture Coordinates of the rectangle.
You can also flip the Coordinates to get more Frames if you need to.

Lars

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!