Developer must mark a 2D mobile game development tool

Source: Internet
Author: User

Summary: the hot summer of moxibustion is drifting away, and the cool autumn steps softly to our side. Standing in the window of the early autumn, staring at the distant mountains, white clouds, will always heart a lot of reverie, always have mixed feelings floating on the heart. I think I like this season. "Good Morning", "traffic jam Today", along with the voice of colleagues, suddenly realize, the amount of my journey ... Cough, step into the topic, Small series today with you to share a light and easy to realize the 2D screen dynamic lighting development tools --sprite Lamp.

What is a sprite Lamp?

To get to the point, the Sprite lamp is a software tool that helps game developers combine the images with the dynamic lighting effects, allowing developers to create maps of normal maps, depth maps, and no 3D modeling, all by hand, Therefore, it is very good to preserve their artistic style.

In the game, most developers tend to use 2D art, one is to maintain their own unique art style, the second is that the 3D model is too expensive, and not easy to operate. Although the method is simple, but there is a drawback is that the image of the dynamic lighting effect is not ideal, today's small series to share the sprite Lamp, it can be very good to help developers to the perfect combination of the two.

The dynamic lighting effect display of the screen

With Sprite Lamp, you can create a variety of textures, including normal maps, depth maps, depth maps, anisotropic maps, and ambient occlusion maps (ambient occlusion Maps). Examples of zombies in a pixel game are the effects of using a sprite lamp.

How do I use a sprite Lamp?

The example above is to dynamically illuminate a zombie, and if you want to use a sprite lamp to do a similar role, then the next thing to say is the relevant operation.

First, you need to draw the outline of a character or other object, and eventually it will become a diffuse map (diffuse map), meaning that each angle of the character is illuminated. As shown in the following:

Then it is to draw a "lighting profiles", which is drawn in grayscale (the characters appear to be made of white plaster) and comes from a single source in one Direction. Of course, if you don't want to have light at all angles, you can just draw the direction you want, as needed. The more you draw, the better the effect will be. is to draw the light up and down about four directions.

Then go to the sprite lamp software for processing:

The Sprite lamp produces the map we need according to lighting profiles, and the results are as follows:

Finally, a good map can be imported to the engine according to their own needs to use directly, so that the 2D image does not seem to be as monotonous as before.

The example of this zombie can not help but make a small series and think of the student era, carrying a teacher and classmates a fight with the zombies of those things, OK small and cranky. But really, the small part of the introduction of the game development tools, use is not very cumbersome, interested in children's shoes can understand the next.

Developer must mark a 2D mobile game development tool

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.