//
Please specify the source: Http://blog.csdn.net/BonChoix, thank you ~)
Tangent spaces (Tangent space)
Switching space, same as local space, world space, is one of the many coordinate systems in 3D graphics. One of the most important uses for switching between spaces is the normal mapping (normal Mapping). Details about the normal mappings are detailed in the next article. However, it is important to und
Reprint Please specify source: http://blog.csdn.net/qq_26525215This article is from the "university trip _ remember the blog"
The advantage of using Aspectjexpressionpointcut to realize pointcuts is that it is possible to use the tangent language to more accurately represent which method to intercept when setting a tangent point than jdkregexpmethodpointcut.Can be accurate to return parameters, paramet
Custom view to achieve water ripple effect, custom view water ripple
In actual development, we often encounter relatively complex requirements, such as where the product paper or UI paper looks at exciting results and comes to you with high spirits, after reading it, the goal is clear. Of course, you want to give it to her;
At this critical time, the body must be hard, but never say no. How can ye say no;
Click button water ripple Based on JS + Canves, canves water ripple
Recently, I saw a good button click effect. When I click it, it produces a ripple effect, which is quite interesting. So I implemented it simply (without considering the compatibility of earlier browsers)
Let's take a look at the effect, for example, (the gif recording software is a little scum a
Lead:Want a water ripple effect like 5.0? is not also distressed backward compatibility collapse of the problem, let's take a look at it @............@
1: First write an XML fileWrites the selector's XML under the Drawable folder
Then create the Drawcble_21 folderCreate the same file code inside to write the following paragraph:
The value inside the 2:color is the press and the normal color
"'
In the previous article we talked about the custom ripple water ripple effect, first to review the effect it!After watching the feeling there is no problem, I feel very satisfied at the beginning, then, we take the Android 5.0 comes with the effect to compareHave you found a different place? Click in the middle of the time is not see what the difference, but click on both sides of the time, it is obvious th
Android released the preview version of Android m last week. But presumably Android5.0 a lot of cool effects, most developers have not used, that is not to say the majority of users.This article describes one of the cool effects in Android5.0, click on the Water Ripple Diffusion effect (Ripple Effect).The implementation described below is a new API that calls Android5.0, not a custom implementation, so it s
Android custom control Series 5: Custom colorful water ripple effects, android water ripple
Respect originality! Reprinted please indicate the source: http://blog.csdn.net/cyp331203/article/details/41114551
Today, we use Android custom controls to achieve an interesting effect: Sliding water ripple. Let's take a look at the final result:
Figure 1
The effect i
Demo downloadWater Ripple, the mouse click after the water will be scattered, creating a feeling of ripples, very real.Implementation principle:diffusion: When you cast a stone into the water, you will see a circle of water waves formed by the point of the stone into the center, where you may bemisleading to think that every point on a water wave is spread out at the center of a stone into the point of the world, which is wrong. In fact, any point on
This year's Spring Festival party did not see the fun, was paid to add an episode of treasure, friends are in that number of time to stop a thump, wow, I'm a professional blessing, impossible, haha. So what is the function of the performance based on how the program code is implemented? The following cloud-Habitat Community Small series to share this tutorial to help you learn the Android ripple spread effect of the imitation payment of the
Make text ripple-third-party Open Source-Titanic, ripple-titanic
: Https://github.com/RomainPiel/Titanic
You can directly copy the code when using it (Note that there must be a wave chart under the res file)
Xml code:
JAVA code:
Titanic = new Titanic (); titanic. start (myTitanicTextView );
Cancel:
Titanic. cancel ();
For details, see sample.
This tutorial is the After Effects instance tutorial, which uses the wave warp built-in filters in the transform filter to animate the key frame settings for volatility, transparency, and use glow glow effects to change the wave, feel its effect, and understand its parameter settings. See the effect demo below:
Final effect
First, run after Effects software, the implementation of File--new--new project (shortcut key Ctrl+alt+n), the new establishment of a project document, as shown in Figure
) Customize the boundaries of the ripples:Suppose we want the boundary of the ripples to be an ellipse, to modify the Custom_bg.xml file above, we just need to add an item tag in the ripple tag, and then set the shape size of the boundary in the Item tab. The settings in item are similar to the actions we normally set for the shape size of drawable:"http://schemas.android.com/apk/res/android" android:color= " #000000 "> "Oval"> "#ffffff"
be in rect rect = Region.getbounds (); LOG.I ("Wangjitao", "right:" + Rect.right + ", Top:" + rect.bottom); if (Rect.top The effect is as follows: OK, now our coordinates are exactly right, no problem, fix it.In fact, there is a better extension of the small effect, as follows:1, provide just came in when the swollen effect 2, the ship's water ripple when the direction of the ship with the
Critical tangent
The critical tangent (usually called CS line) between two convex polygon is the tangent of different sides of the two polygon separated lines. In other words, they separate polygon.The CS line can be applied to motion planning, visibility, and range fitting.
It is about two polygon and their two critical t
Example: http://www.zhaojz.com.cn/demo/draw9.html//Draw tangents//a dot outside the point circle//Dot Center//R radiusfunctiondrawcircletangent (point, Dot, r) {//Draw Auxiliary Line-start varcolor = ' darkred ';//the color of the tangent varColor2 = "#ccc";//Color of other auxiliary linesDrawLine (dot, [dot[0]+9*r,dot[1]], {color:color2});//extend the horizontal line where the center is locatedDrawLine (dot, [Dot[0],dot[1]-4*r], {color:color2})
Uh, copied it a long time ago.
Code ......
//
Let p = V1-V0
D3dxvector3 P
=
V1.pos
-
V0.pos;
//
Let q = v2-V0
D3dxvector3 Q
=
V2.pos
-
V0.pos;
Float
S1
=
V1.s
-
V0.s;
Float
T1
=
V1.t
-
V0.t;
Float
S2
=
V2.s
-
V0.s;
Float
T2
=
V2.t
-
V0.t;
//
We need to solve the equation
//
P = S1 * t + T1 * B
//
Q = S2 * t + T2 * B
//
For T and B
//
This is a linear system with six unknowns and six equatinos, f
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.