官术网_书友最值得收藏!

Editing and merging solids

The next step is modifying your solids to what you want them to portray. We will be exploring the possibilities of both editing the solids as well as setting them up to be exported for an external 3D application, such as 3DS Max.

Getting ready

  • Before we begin, you must have Sandbox 3 open
  • Then open My_Level.cry
  • Create a Box Solid with dimensions of 30mx30mx30m

How to do it...

For those who are familiar with DCC tools, such as 3DS Max or Maya, Editing Mode should look very familiar. It allows you to modify the shape of the solid by changing the location of vertices, edges, faces, and polygons. For those who are unfamiliar with it, we will now demonstrate how to turn this Cube into a very simplistic house-like structure:

  1. Start by selecting your object and clicking Editing Mode.
  2. Change the Selection Type to Polygon.
  3. Select the top side of the cube.
  4. Under the Sub Object Edit roll out, select Face [Split].
  5. Change your Selection Type from Polygon to Vertex.
  6. Select the top most Vertex (it should be the newly created one in the centre of the face that was split) and drag it up a little on the Z Axis, so that the total height of the Solid is now 40 meters.
  7. Change your Selection Type back to Polygon.
  8. Select the bottom face and move it up to the point where the total height of the solid is now 20 meters:
  9. Place the solid back onto the ground.

You may copy solids and place them anywhere on your level as they too follow the same basic object placement methods used in the Editor. You may also create additional solids that clip through the faces of other solids without interfering with the physics of either solid. This allows you to stack multiple basic shapes of the solids to form the very basic shapes required for an object, or form elaborate structures. Now, let's create one by making a very basic chimney for the house we created:

  1. Create a new Box Solid with the dimensions of 5x7x10 meters.
  2. With the new Box selected, move it to any place on the roof you'd like.

    Tip

    Shift + Click on the roof to move the object to that physical surface.

Even after creating multiple solids and perhaps just stacking them on top of each other for a shape that you want, it won't combine them into a single mesh for the artists to look at within their DCC. To do this, first we need to merge the objects into a single mesh:

  1. Select both the solids.
  2. In the Solid Parameters rollout, click the Misc [Merge] button.

There's more...

These are some ways you can export your solid to directly port over to a DCC toolkit.

Exporting the selected geometry to .OBJ

To export the selected geometry placed inside the Editor, click on File | Export selected geometry to .OBJ. This allows you to export the newly merged solid for an artist to take and remake it into a real game asset, all the while keeping to the dimensions you've made from the Solids tool.

Resetting the XForm

If any of your solids were rotated/scaled, you may wish to reset the XForm before exporting the Geometry. This makes sure that all of the transformations on the solid are zeroed out and reset to the world coordinates. If this step is not taken before the Export, you may find that the object will be misaligned when opened with an external DCC.

See also

  • The Making basic shapes with the Solids tool recipe
主站蜘蛛池模板: 西安市| 集贤县| 贞丰县| 台前县| 普陀区| 温州市| 延寿县| 天津市| 江达县| 鹤庆县| 延川县| 闽清县| 舟曲县| 莱芜市| 龙胜| 汉中市| 宜章县| 阿城市| 水城县| 商丘市| 毕节市| 迁西县| 岳西县| 铜山县| 叶城县| 保德县| 高安市| 鲁山县| 资阳市| 玛沁县| 沈阳市| 浦江县| 潼南县| 扎囊县| 铜川市| 元氏县| 固安县| 磐石市| 祁门县| 蒙城县| 巨鹿县|