Jump to content
  • Advertisement
Sign in to follow this  
MarijnStevens

Pixel Madness Question

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

I'm trying to make an effect, and the effect is like this: I have a logo, and the logo breakdown in pixels, and move on to become another logo. Like for example my logo become small pieces, and give a small snow effect. Dont worry about the code, I will do that, My problem is different: I need a way to draw pixels. I can draw the logo with a texture, but the collection of pixels, how should represent them ? Should I have a large array of vertex's, or can I use a large texture with transparency and draw (also an array) to it ? Of course I can use one of them, but I wanted to know if there are more options.

Share this post


Link to post
Share on other sites
Advertisement
I would either....

a) create an animated sprite of this effect (if the effect is always the same) and just render the bmp's

b)Use point sprites - 1 per pixel - and make each point sprite know its start colour and start position and its end colour and end position.
It would be very unlikely that both logos have the same number of pixels and colours so you will need a mechanism to add/remove pixels without it being obvious to the user.
The journey between start and end can be played about with endlessly (explode/disolve/morph ect its all just playing about with vecors, momentum, sin cos and tan and making sure the point sprites gets where its going in the end).


Regards galapogos

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!