Create a sky body

Source: Internet
Author: User

The sky actually acts asCubePipe implementation; it has no top or bottom surface. This greatly simplifies the task of creating images for the sky body. In this way, the effect of using a pipe has been hidden on the top of the sky body. by ensuring that the top edge of the sky texture has the same color as the background color of the scene, it makes it difficult to see the sky at the end and the beginning of the background, unless it is directly seen. At the bottom edge, make sure that enough surface is drawn to hide the lower edge of the texture. On the contrary, it simply disappears behind the scene content.

If you are creating a game, you need to be able to look around the cube, Including up and down, and you need to enhance it to create a full cube to replace the shape of the currently used tube. This is a simple problem. add two additional faces at the top and bottom of the sky to point them to the inside.

Generating sky images can be a challenge, depending on which environment you need. One option is to create a background texture by yourself. This is how the texture is created in the example: I simply use a digital camera to take a photo and then crop it so that it is four times the width of its height.

After editing, you only need to perform manual operations on the image so that the left and right edges of the image are tiled without leaving a texture. In the paint shop pro application of Corel, "seamless tiling" is used to achieve this tile effect. If you do not have this or a small Available ApplicationProgram, You can copy a line from the side of the image, flip it, And then integrate it into the other side of the image, so the edge of the image to be touched is not transparent, and after a distance through the image, gradually become transparent.

The sky image must be four times wider than the height because it horizontally surrounds the four sides of the cube. Many digital cameras have panoramic effects, allowing you to stitch images and digital photos together to create an ultra-wide image. This feature allows you to easily create images.

Another option is to use a computer application to create a sky image. An application that can use this planetside software's terragen classic app to help you (see http://www.planetside.co.uk/content/view/16/28/ for details), which allows you to create a variety of realistic Earth scenarios including sky, terrain, and water. These scenes can then be rendered to the image, and the camera can be viewed from the north, south, west and east. They are combined to create a sky image manually. A good tutorial to explain how this is implemented and can be done in http://www.3drad.com/forum/index.php? In topic = 3002.0. After images are saved, they can be manually stitched together to create a sky scene.

Terragen Classic is free for non-commercial use, but any commercial application will require a low-cost license. For details about how to purchase this application, you can find it on the planetside software site.

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.