Friday, October 15, 2010

Photoshop wonderful case of solution: three-dimensional light and shadow magic (1)


We are very enthusiastic to learn, are eager to see the variety of results-based approach, to see whether their work was recognized, this is a good thing, enthusiastic, willing to work harder, PS did not learn good reason.

But here I have to pour a cold water as some people have passion, but will be lost fatal, and you will learn PS in the process, confused, there is a "do not know how to do so" feeling.

What is the performance of this phenomenon? Is simply too much on meaningless without any extension, the effect of rigid pursuit.

Many people come to ask: What is this effect? How?

That the appropriate answer to what is it? - To do so. But do after that? Consider the following three questions.

- This effect can be any other change?

Effect of ever-changing, both design and service, whether it is pleasing or people access to information, the design is purposeful, so the design can not lead to results do. I want this effect, because it can achieve such a purpose. I, for example, crystal button, this effect is used to do? In order to be machine interface, there is a fresh, clean feeling, that button is a crystal-like, I studied the effect precisely because of this. Learn the effect that, if not used in human-computer interface, where you use it? This should be in-depth thought.

If you want to grow faster after learning of an effect should be more thinking, change some parameters and steps can be other effects? The practical effect of what? Not learned, the one, it seems to understand, and rote.

Let me give back to the button example.

One day you learned to use layer styles to create crystal button. But the next day the boss told you that he felt too delicate crystal button, metal button, he would like to change. How do you do? Ready to immediately go to the book, people immediately ask, metal buttons, how to do, or simply reply to your boss: I'm sorry, I just learned crystal buttons, metal buttons do not understand.

This work? Obviously very lazy behavior.

You should immediately think of the material is crystal crystal button, crystal or glass, there is as smooth surface, particularly arising from specular reflection, the same, the metal must also have, just because some rough surface reflecting weaker result.
Crystal button in your learning process, as it inevitably learn, that allows you to set the button produces three-dimensional effect, then, the same metal buttons must also require three-dimensional effect, these steps can be copied, or just need to adjust some small parameters.
These parameters do not know how? More than their hands to practice.

- Why the results?

This is an issue that many people have not seriously thought about. Crystal button, or give examples. Before Mac did not develop this crystal button, we did not expect such a crystal clear style will be popular in the world. Finally, when you see it, surprised it's fine, so would like to learn and for their own works. Wait a minute ~ You learn before ever wondered why people would think of it this style? Introduced through other examples, or observations in real life come from?

- Why use this effect?

Similarly, many people believe that this issue did not seriously considered. For example, you see someone painting a picture, in order to show the sun, glare effect that he has up, so people think that once lit up the entire screen; another example, someone designed a poster, showing a football match shooting star explosive power, he added some fire effects, the star seems to be the same as coming out of the fire. Why did he think of using this effect to increase the dynamic? If you use other effects, such as zoom lens speed gradient to generate a sense of right? Not the red fire, the magic of light blue, how?

Would like to clear these three issues, study the use of PS or PS will not get lost. Some users may be made to the book's examples done, the steps by heart, but to make their own independent if a work is always powerless. Do not know where to start with? Do not know how to arrange to have learned of the results? It is all piled up, or just pick one, or pick what kind? Why would such a situation, that is because you can not judge the whole, can not "create their own effects," not to speculate what other techniques used to achieve an effect. This continues, can only be a craftsman, but not handy to do a real design.

This is what I write here "topics for" reasons. Ago I wrote a "Photoshop topics for" also said that some of these feelings. At that time two years ago, two years later, has different ideas and experiences. So, I decided to write one, and then proceed from the purpose, talk about some common techniques, like how the changes in a series of effects.

This "topics for tutorial" will include the following majority. As the relationship between time and space, and can only send and writing side, the following directory structure is not the most complete. At the same time, I will be in each section, leaving some small operations. If you are interested, try.

Part I: three-dimensional
Part II: Light and Shadow
Part III: Texture
Part IV: Motion and Color

Each section of each of several types of practices are generally effective, as is the legislature made written legislation, it would be more likely to chaos in some areas, also please bear with. However, this article is to emphasize thinking skills, each department will result from the need to proceed against the step.

I have limited capacity, this tutorial belongs to initiate communication can cause you is enough, thank you.

Before the end of this introduction, please keep in mind a word (which may be the same old tune up): Photoshop, always just a tool.






Recommended links:



Comments Shell Tools



YouTube to FLV



Suning to the "conspiracy theory" fight back country U.S. provocation



Jinshan said the domestic A-share listed denied rumors false



MOD CONVERTER



J2SE Process Of Learning The Basic Concepts 30



Digital China Open play the "Famous Brand" legal battle



Kelon did not deny THAT Gu Chujun was under surveillance



Directory Office Suites And Tools



Whether To Edit The Image CMYK



Set up with windows server 2003 web server



Motorola recall: a beautiful mistake



YouTube to WMV



SoftBrands, Because Focusing So Professional



Firewall And Proxy Servers introduction



Friday, October 8, 2010

I think the JSP problem (on)



(Editor's Note: the original version of this article first appeared in a foreign country, JSP is only one kind of technology was emerging, and this appears to be rising as it is now. Now it seems some of the views of this article may have some limitations, But I have to admit that this is a very atmospheric work, which involves many internal principles of JSP. So, I think it is necessary to introduce to you this article to you from another perspective, a better understanding of JSP technology. )

Now every developer using servlets know JSP, a kind of building on top of the servlet technology invented by Sun and spend a lot of energy to the implementation of web technology. JSP to servlet in the html code out of them, which can speed up application development and web page maintenance. In fact, the official release from the Sun, "Application Development Model" document on the right farther: "JSP technology should be regarded as standard, while servlets in most cases can be considered as a supplement. "

This article will compare the JSP and servlets technology on the other: template engines (template engine).

The problem directly with Servlets

When Servlets been invented, the whole world to see its advantages. Servlet-based dynamic web page can be quickly implemented to allow for easy transfer between multiple servers and can be seamlessly integrated and database, it is widely accepted as a kind of Servlets web server platform of choice.

However, usually can be achieved by simple means html code to now allow programmers out.println () call to each line HTML line, which in the actual Servlet application to become a serious problem. HTML content had to be achieved through the code, which for large HTML page is nothing more than an onerous and time-consuming work. In addition, the staff responsible for Web content developers have requested to carry out all the updates. To this end, the search for this a better solution.

JSP birth

JSP 0.90 was born. In this technique you can embed Java code to the HTML file, the server automatically as the page to create a Servlet. JSP is considered a way to write a simple Servlet. All HTML can be without going through the out.println () call, the staff responsible for the content of the page can modify the HTML and Java code without taking the risk of damage.

However, having artists and developers working on the same file is not ideal, so that embedded HTML Java proved to be just like the HTML embedded in Java as embarrassing. Read a bunch of messy code remains a difficult task.

So, people are becoming mature in the use jsp, greater use of JavaBeans. Beans contain the business logic required jsp code. JSP Most of the code can be taken out into the bean and going, leaving only the few markers for calling bean.

Recently, people began to think this way the JSP page is really very much like a view (view). They become a client requests the results used to display components. So people will think, why not send the request directly to view it? Objective view, if the request inappropriate? After all, a lot of requests for a variety of possible views to get the results view. For example, the request may have the same success page, a database exception error report, or the lack of parameters of the error report. The same request may have an English page may be Spanish pages, depending on the client's locale. Why does the client must send the request directly to the view? Why should not the client requests sent to a number of common server components and allow the server to determine the JSP view of the return?

This makes a lot of people accept has been called "Model 2" design, which is defined in the JSP 0.92 based on model-view-controller model. In this design, the request is sent to a servlet controller, it performs the business logic and data to produce a similar "model" to for display. This data is then sent through an internal JSP "view" to be displayed, so that looks like a normal JSP page embedded in the JavaBean. Responsible for the control of the servlet according to the internal logic to select the appropriate JSP page to display. This, JSP file into a nice template view. This is another development, and is being praised by some other developer has.

Into the Template Engines

If you use a template engine instead of the usual purpose of the JSP, the design goes on will become simple, the syntax simpler, more readable error messages, tools, and more customization. Some companies have done this engine, the most famous may be WebMacro, their engine is free of charge.

Developers should understand, select a template engine to replace the JSP provides the following technical advantages, which also is the inadequacy of jsp:

Problem # 1: Java code template of a too

Although the design is considered bad, JSP Java code is still trying to join the web page. Here are some like Java have done, namely, simplified C + +, modify, template engines also through jsp in the lower layer of the source removed to make simplified. The Template engines to implement a better design.

Problem # 2: Request to write Java code

Required in the JSP page write Java code. For example, suppose a page to determine the root of the current web application context to guide their home, the best in the JSP using the following Java code:

Home page

You can try to avoid the Java code, the use of tags, but this will give you a string of difficult to read as follows:

/ Index.html "> HomePage

Use template engine is no Java code and ugly syntax. This is the same request in written in WebMacro:

Home page

In WebMacro in, ContextPath $ Request variable as a property, use syntax similar to Perl. Other template engines use the syntax of other types.

Look at another example, suppose an advanced "view" needs to set a cookie to record the user default color scheme - a task looks around, not only by the view servlet controller. To have this in the JSP in the Java code:

In WebMacro in no Java code:

# Set $ Cookie.colorscheme = "blue"

As a final example, if, again, get back in the original color profile cookie. For the JSP, we can consider that there is a corresponding utility class to provide help because with getCookies () directly so that lower level become ridiculous and difficult. In the JSP in:

In WebMacro not on the tools need to, usually:

$ Cookie.colorscheme.Value

The need to write jsp graphical interface designers, which grammar is easier to learn?

JSP 1.1 introduces the custom tag (custom tags) and to allow arbitrary HTML tags similar to the background in the JSP page implementation of Java code, which will have some value, but only known to have a broad, full-featured, can obtain free, standardized tag library. There is no such a tag library.







Recommended links:



System Maintenance Evaluation



Harvest autumn HARVEST eMEX Internal Security Code



Ping command usage



News about Office Suites And Tools



CATALOGS Office Suites And Tools



AVI TO MPEG4



Utilize all practical use of Small floating window all captures Thunder 5.9



Internal OUTSOURCING Yijianshuangdiao



MPG to Flash



Foreign Trade before sending samples: judgments, proofing and expenses



Best Pc Registry Cleaners Reviewed Finding The



Pressure direct sales model, "Yang Shuai" Miller came to power Dell



Best Science - Screen Savers



Farewell babyface, iSee 1 minute to create Face-lift effect



VOB To Flash