UV Mapping

UV Mapping

Estimated reading: 12 minutes 57 views

This page is part of Render Styles.

UV Mapping

Default UI Menu: Tools/UV Mapping Tools

Ribbon UI Menu:

img

UV mapping is a method of projecting (wrapping) an image onto a 3D object. U and V indicate the axes of the image they are used in lieu of X Y Z to avoid confusion, since X Y, and Z are used to designate the axes of the 3D object. Color from the image is mapped to the polygons that compose the surface to the 3D object. In essence the process designates the where each area of the image is to appear on the 3D object. When a 3D object is rendered a mesh of that object is passed to the rendering engine. For surfaces, and Smeshes, the surface mesh itself is passed directly to the rendering engine. For solids, a mesh version of the solid is generated then passed to the rendering engine. Multiple images can be used where each image is mapped to discrete areas of the mesh. UV Mapping requires the following primary steps:

  1. Creating and inserting the image to be mapped
  2. Creating a UV Material
  3. Associating the image with the 3D object
  4. Unwrapping the mesh
  5. Refining the image

Creating and Inserting the Image

You can use any graphic tool to create your image, including TurboCAD. Image can be JPGs, PNGs, BMPs, or GIFs. The higher the resolution of the image the more refined the material will be on your model. You should consider an image of 1000×1000 as the bare minimum. You can insert a picture using either From File or From Image List.

Creating the UV Material

Use the Render Manager to create a new category; we suggest that you use "UV" as a name.

img

  1. Create a new material.
  2. Select the Pattern section of the material properties.
  3. Set the Shader to Wrapped Image.
  4. Specify the location of the file you will be using as your image.
  5. Set the Softness to 0. This will prevent fuzziness in your image.
  6. Select the Wrapping section of the material properties.
  7. Set the Shader to UV.
  8. Click OK to close the Render manager.
  9. Select the 3D object and assign the new material you created.

Associating the Image with the 3D Object

To associate an image with a 3D object:

  1. Select UV Mapping Tools
  2. Click on the Image

Note: You can only select the UV Mapping Tools if there is both an image and a 3D object in the drawing.

img

  1. Click on the 3D Object

img

img

  1. The object and the facet you clicked on will become highlighted. At this point the image and the object are associated but not yet mapped.

Using Multiple Images

You can map multiple images to a 3D object. To do so follow these steps:

  1. Create a unique material for each image you wish to use.
  2. Insert each image you wish to use into the drawing.
  3. Use the Facet Editor to assign the correct material to each facet as needed.
  4. Select the Facet Editor.
  5. Select the facet(s) you wish to modify.
  6. Right click and select Properties from the local menu.
  7. Navigate to the Materials page and assign the desired material. Then click OK.
  8. Map the correct image to each facet(s) as needed.

Refining the Image

The primary process for improving or creating your finished image is by refining the image. There are two primary components:

  1. Export 2D Part Objects
  2. Move 2D parts as needed

Note: You can also review your image in your Windows default image editor or viewer by using Open the Selected Image.

img

The process is to:

  1. Export 2D Part Objects
  2. Edit the result in your favorite image editor
  3. Update the Selected Image
  4. The repeat steps 2 and 3 (or 1, 2, 3 if necessary) until the image is as you need.

Original Image img

Refined Image img

Render Result img

Update the Selected Image

You can Update the Selected Image used for any UV Mapping.

  1. Selected the UV Mapping Tools.
  2. Select the Image.
  3. Right click and select Update the Selected Image from the local menu.

img

Proportional Editing

Proportional editing acts like a magnet to smoothly deform the UV part by modifying vertices within a given range. To use the tool:

  1. Activate UV mapping tools
  2. Select the Image
  3. Select the TC surface the selected TC surface should already have unwrapped segments.
  4. Enter the Edit 2D Parts mode
  5. Select a single 2D Part
  6. In the local menu choose Start Proportional Editing.

img

Specify the radius of editing area and lock the starting position of editing area. The radius of editing area is defined in the UVmap coordinate system.

img

The radius of editing area can be changed in three ways: A. Pressing the "+" and "-" buttons. B. Choosing the local menu items B. Manually specify the exact radius in the Edit bar To lock the starting position of the editing area position the mouse and then click the left mouse button or press ENTER. After fixing the editing area a user changes the points of 2D part by dragging the mouse. The manner in which points are moved is defined in the UV Properties in the Transformation Equation. img

Constant transformation = No Falloff, all point move a once.

img

Linear transformation = Linear falloff

img

Quadratic transformation = Smooth falloff

img

Cubic transformation = Exponential falloff

img

Sharp transformation = Steep falloff

img

All the segments transformations are recorded in the Undo buffer, but Undo or Redo operations are possible only after leaving UVMapping.

Export 2D Part Objects

You can access the Export 2D Part objects via the UV Mapping tools local menu. At least one facet must be selected in order for this option to appear. When exporting only the facets that are selected will be used/embedded in the export.

img

Export to

  • Selected Image – Export result to the selected images file.
  • New Drawing – Open a new CAD drawing and embed result
  • Current Drawing – Embed the result into the current CAD drawing.

Image –

  • Add – Destination = Destination + Source (If the amount is greater than 255, the result is 255
  • And – Destination = Destination & Source (Bitwise AND two images)
  • Xor – Destination = Destination xor Source (Bitwise XOR two images)
  • Or – Destination = Destination or Source (Bitwise OR two images)
  • Copy – Destination = Source
  • Sub – Destination = Destination – Source
  • Blend – Destination = Source + degradation
  • Screen – Destination = Destination + Source + degradation (The result image will have a lighter tonality)
  • Avg – Destination = (Destination+ Source)/2

Bg. Color – Set the background color for the resulting image. Contours – Export the contours to the result. Solid Fill – Export the solid fills to the result. Surfaces – export the surfaces to the result. UV Rectangle – (not available for Selected Image)

Unwrapping the Mesh

Once you have associated an image to a 3D object you will need to unwrap the facets of the 3D object into 2D parts that can be arranged on the image. This will allow you to ‘map’ which part of the image is to appear on each facet. The following applies equally to unwrapping ACIS Solids and Surfaces. img

You can individually select facets on the 3D object, or select all of the facets. To selcect an individual facet, click on the blue node of that facet. To select multiple individual facets, hold down the shift key and then click on each facet’s blue node. To select all of the facets drag a selection rectagle around the entire 3D object. img

At this point you will want to begin arraging the 2D parts. There are two complementory methods to do this: Packing and Editing.

Packing 2D Parts

Packing is a algorythmic method of arrange a group object within a defined space. For UV Mapping, packing arranges all of the 2D parts within the area defined by the image. To pack the 2D parts:

  1. Select the desired facets.
  2. Right click and select Packing 2D Part object(s) …

img

  1. The 2D parts will automatically be laid out on the associated image.

img

  1. You can un-pack the parts by clicking Packing 2D Part object(s) … again.
  2. If you have un-packed you can re-pack by agin clicking Packing 2D Part object(s) … The second time you pack the arrangement will be adjusted. To get back to the original packing arrangement. un-pack and repack once more.
  3. When you are done packing right click and select Finish packing 2D Part object(s)…

img

img

To de-select facet click away from the 3D object and image.

Editing 2D Parts

You can move, rotate, and scale parts to arrange them better for your purposes.

  1. Select a facet or facets
  2. Right click and select Edit 2D part object(s)…

img

img

  1. The selected part(s) will be highlighted to indicate that it can be edited.
  2. Click on the part(s) to begin editing.

img

  1. You can then edt the part by standard methods:

Move

img

Scale

img

Rotate

img

  1. You can finish any one alteration by right clicking and selecting Apply transform to 2D Part object(s).

img

  1. To complete editing right click and slect Finish edit 2D Part object(s).

Inversed Normals

Occasionally the part and the image will map with an inversed normal. This means the section of the image appears backward on the facet. To remedy this You need to reverse the layout of the 2D part. Select the part then use the middle blue node on the edge and drag in past the opposite edge. You can now reposition the newly edges, as long as you do not recross their positions. The edge you select depends upon how the reversal appears, in other words is it reversed along the X or Y axis. You cannot simply scale -1 along the X or Y axis via the Edit bar. This will only flip the part but the reversed association will remain. Do not flip the 2D part via rotation. This will only flip the part but the reversed association will remain.

Unwrapping Surfaces

In addition to the basic UV Mapping funtions there are some additional functions for mapping surfaces. Since it is generally undesirable to export every single facet of a surface as an individual 2D part the Surface functions are designed to gather groups of facets to create Segments of the 3D object. The resulting segment can then be converted into editable 2D parts. The functions and ther purpose are as follows: Quick Selection: Selects a contiguous series of facets based on the setting in the UV Mapping Options. img

Create Segment by Selection: Creates a segment based on the currently selected facets. img

Auto Segmentation: Automatically composites a set of segments for all facets of the selected 3D object. img

Explode Segements: Explode the currently selected facets back into facets. img

Unwrap Segments: Unwrap the selected segments into 2D Parts. img

Select segment by edges: To activate the tool:

  1. Activate UV mapping tools
  2. Select the Image
  3. Select a TC surface
  4. Select "Create segment by edges…"

img

After that, select a closed edge loop. For this there are two possibilities:

  1. Manual – Select the edge loop manually by clicking one edge after the other. All selected edges should be connected. This means that you can only select those edges which have common vertices with those already selected. Another limitation for each vertex there can only be two edges from the selected edge loop this prevents self-intersections.
  2. Mixed manual and automatic. If you have already have selected a few edges, but not closed, you can try to close edge loop automatically by selecting Close current selected edge loop… The program will try to find the shortest path between the ends of the currently selected edges and connect them.

img

After creating of the closed loop, you can create a segment by seleting Create segment by selection… img For the each closed edge loop it is possible to create two segments; One from internal facets, the other from the external facets. The algorithm will automatically choose one of these domains. If the algorithm choose the opposite domain from the one you wanted select Invert created segment… which will invert the selection to the alternate facets. img

It is important to note, that Invert created segment… will only function immediately after using Create segment by selection… img

UV Material Wizard

The Material wizard automates the process of creating a UV compatible material. To use the Material wizard:

  1. Go to Tools.
  2. Select UV Mapping Tools. (This will only be available if there is atleast one 3D object in the model)

Optionally: Click on an image to select it. And/Or Click on a 3D object to select it.

  1. Right click and select UV Material Wizard .

img

  1. Set the parameters in the Wizard dialog, and then press OK.

img

PARAMETERS LightWorks – If selected a Lightworks material is created. Category – Set the category in which the material will reside. Material – Select or type in the name for the material. Image From File – If you pre-selected an image this will be unchecked, and the file and path field will be filled. File and Path field – If unfilled use the adjacent File Open button start the File Open dialog, and then locate and select an image. File Open button – Opens the File Open dialog. Scale: U – Set the U scale for the material. V – Set the V scale for the material. Shaders: Color – Set whether the image will be used to specify the color or pattern of the material. Reflectance – Set whether the image will be used to specify the color intensity or Reflectance pattern of the material. Transparency – Set whether the image will be used to specify the color intensity or Transparency pattern of the material. Bump – Set whether the image will be used to specify the color intensity or Bump pattern of the material. Open render Manager on Exit – I checked the Render Manager will open when you press OK. Apply to the Selected body – If checked and if you pre-selected a 3D object the new material will be assigned to that object.

Leave a Comment

Share this Doc

UV Mapping

Or copy link

CONTENTS
Antimanual

Ask our AI support assistant your questions about our platform, features, and services.

You are offline
Chatbot Avatar
What can I help you with?