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.
    How to do it...
  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:
    How to do it...
  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.

    How to do it...

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
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.237.123