In xNaProgramUsing two different 3D object rendering methods. The first method requires us to manually define a large vertex coordinate array. This may be a very simple object, suchCubeBody. But when we use more complex objects, such as Treasury or spacecraft, it quickly becomes impractical. The second method uses mathematical formulas to create a shape for US (for example, a circle bucket in the lighting sample project ). It is useful for rule ry, but it is unlikely to be the value of a real-world game object.
The solution is to use 3D modeling applications. Modeling applications are third-party software products that provide a wide array of specially designed user interfaces (usually very complex) that allow the construction of 3D models.
In addition to creating ry, most modeling applications also allow textures to be mapped to the objects they build and will provide the generated texture coordinates. They may also allow vertex normal calculation and storage of them as part of an object.
Create a 3D object using sketchup
The simplest 3D modeling application can be used in a complex way. Interactive challenges describe the use of 2D input and output devices in the 3D world, and we can effectively use (mouse, keyboard, and display) to fulfill our needs. Although the use of sketchup is relatively simple, there are many things to learn and use it skillfully.
When sketchup runs, it prompts us to select a template. Select one of the two simple template options (meters, feet, and inches, which you prefer), click the start button, and then use sketchup to run its user interface. By default, sketchup adds personal photos to an empty scene to help you place the proportion of the scene in the perspective. As a 3D object, numbers can be deleted.
Our objects can now be built in an empty scenario. The first step is shown in (. First, draw a rectangle along the X/Z plane to form the foundation of the house. Use the push/pull tool to squeeze this rectangle to form a box, as shown in (B. Then, use the line tool to create a line that passes through the center at the top of the box, as shown in (c.
Once the top is split into two parts, the drawn lines can be moved everywhere, and all connected faces will be moved accordingly. Move the line up directly, so create a basic but satisfactory roof shape, as shown in (d. The basic house geometry has been completed at this time.
Of course, we will almost certainly apply textures to our objects to fix the structure we created, and we will do this to make the house look more realistic. Sketchup has a series of tools to add textures to objects.
(From left to right, A, B, C/D, E, F)