How to implement this effect?

Hi Expert,

I found this website with this word flying effect ( http://www.unity3d8.com/content/welcome动感特效 ). May I know how to implement it? Thanks.

Well. This is what I’d do.

  1. make a bunch of textures (with transparency) of words you want to fly by (photoshop or similar is your best friend)

  2. instantiate randomly (or in order) a bunch of gameobjects (planes probably would be good) with those textures on them (the shader would have to be one that can be transparent)

  3. start them off really far from the camera, and with random offsets to the center of the cameras view

  4. move them slowly forward, ever closer to the camera (transform.translate or similar)

  5. when they have passed the camera, destroy the gameobject, perhaps taking it into account, so you can respawn later the same one again if you want. (or just move them back to the beginning, depending how many/how frequently you wanna show them)

other things to consider:

  • maybe your trying to use it in a game, if so, these objects would probably need to be children of the camera, in order to keep the words in view (or maybe not…depends how you want to use them)
  • you probably will need to find a shader for that fading away effect
  • if your going to use it in a webpage, perhaps this is overkill, and using unity is just over doing it. Get a animation made in GIF and post that instead, after you create it in unity, just capture a clip with an outside application (fraps) and convert to GIF format, saving severely on load time of your web page, and removing the need for a unity webplayer to view it for your websites guests…

Good luck!