Sci-fi fans may be impressed by the effect of Star Wars subtitles. This subtitle expression has been popular in American movies, and even Superman movies and TVs have used this as opening and ending subtitles, today, I will show you how to create this effect in blend. Here is the image of Star Wars:
Maybe you think it is a little far-fetched to develop a game. I plan to use this as an introduction to bring out the key knowledge point about Silverlight special effects-Projection, which means Projection in direct translation, however, we generally call it a 3D transformation. RenderTransform is generally a 2D transformation. If Projection is used, it can produce very interesting results.
It is not difficult to find it. You can find it in the attribute by selecting any control in Blend.
First, create a project and add a user control StarCaption. You can use StarCaption as the basic container of the subtitle control. The size can be fixed or not fixed, now add a TextBlock to LayoutRoot so that all margins are automatically stretched,
Set the text alignment mode to Center, and adjust the text size and font until satisfied, and add some test text, this will be more intuitive
Now select Projection and set the rotation parameters to the following
Set Y of Global Offset to 150 and Y of Lacol Offset to 400,
Now, you only need to adjust Lacol Offset to see the effect. How is it good? Open the storyboard and make an animation, for example, the displacement operation of the Lacol Offset attribute with a length of one minute.
Now, add the control to MainPage, and perform a simple design to complete this special effect. The subsequent articles are related to Projection, although simple, however, it is recommended that you have a better understanding.
Source code: Click to download directly
Recommended Silverlight game development blog: dark blue right hand