PIC

Dunreeb Mosaic

Instructions for the Plugin

Contents

1  General
 1.1  Overview
 1.2  Features
 1.3  Systemrequirements
 1.4  Remarks
 1.5  Provider
 1.6  Installation
   Cinema 4D - Windows
   Cinema 4D - Mac OS X
   Maya - Windows
2  Dunreeb Mosaic
 2.1  Quickstart by Presets
 2.2  Mesh Basics
 2.3  Additional settings for the Mesh
 2.4  Mapping
  2.4.1  Example Calculation
 2.5  Materials
 2.6  General
 2.7  Properties of presets
  2.7.1  Simple
  2.7.2  Oval
  2.7.3  Colored
  2.7.4  Loamy Ground
  2.7.5  Crease
  2.7.6  Dunreeb Logo
  2.7.7  Racing Bike
  2.7.8  Charlotte
  2.7.9  Tut Ench Amun
  2.7.10  Empuria Brava
  2.7.11  Shiva
  2.7.12  Sandstone
  2.7.13  Empuria 90 Degree
  2.7.14  Hybrid Stone
  2.7.15  Ear
  2.7.16  Cycle Race
  2.7.17  Charlottes Eye
  2.7.18  Road Works

1  General

1.1  Overview

Dunreeb Mosaic is a plugin for creating three-dimensional optional textured mosaics as 3D-structures.

After installation, the user interface of Dunreeb Mosaic is presented in a window, that is organized in five tabs named: ”’Mesh Basics”’, ”’Mesh Misc”’, ”’UVs”’, ”’Material”’ and ”’General”’ Behind it a variety of ways are covered that will be discussed in detail here.

1.2  Features

Dunreeb Mosaic supports the following features:

  • Many different forms of mosaics can be generated.
  • The number of edges, height, distances, dimensions etc. are adjustable.
  • Crease, rotate, separate can be controlled.
  • Special algorithms help to avoid spike or small parts when needed.
  • Textures can be used as a color source or directly.
  • Colors and textures can be mixed.
  • The mapping can be set and applied to the entire mosaic or its components.
  • Materials are appropriately generated, the number can be automatically limited.
  • Convenient user interface.
  • Free and detailed instructions
  • A large amount of presets is included to demonstrate the features. Build on this to develop your own ideas.
  • Undo capable
  • Plugin for Maxon Cinema 4D and Autodesk Maya
  • for Windows and Mac OS X

1.3  Systemrequirements

  • Maxon Cinema 4D or
  • Autodesk Maya
  • Windows or Mac OS X
  • 4 GHz

1.4  Remarks

Copyright: All names, logos, and other trademarks and registered trademarks and associated logos, mentioned are the sole property of their respective owners. The copyright for any material created by the author is reserved.

1.5  Provider

Dunreeb Mosaic was produced by Dunreeb Gutschke&Klie GbR in 2016.
http://wwww.dunreeb.com

1.6  Installation

Cinema 4D - Windows

Copy the unzipped Mosaic folder with all the content in your plugin directory. Depending on the installation, the directory may be somewhere else. The directory could be something like

c:\;Program Files\MAXON\CINEMA 4D R17\

Cinema 4D - Mac OS X

Copy the unzipped Mosaic folder with all the content in your plugin directory. Depending on the installation, the directory may be somewhere else. The directory could be something like

/Applications/MAXON/CINEMA 4D R17/

Maya - Windows

Copy the unzipped Mosaic folder with all the content in your plugin directory. Depending on the installation, the directory may be somewhere else. The directory could be something like

c:\Program Files\Autodesk\Maya2017\bin\plug-ins\

2  Dunreeb Mosaic

2.1  Quickstart by Presets

If you have just purchased Dunreeb Mosaic and you want to get quickly familiar with this, presets are a convenient way to get first results. presets are predefined settings that give each a specific mosaic. Proceeding from a preset close to the desired result, additional settings can be made or it can be experimented.

Start the Plugin on the menu bar, by selecting ”’Dunreeb”’. To activate a preset, select then the last tab: ”’General”’ and select a preset, for example, ”’Shiva”’. All settings in all tabs are set according to that moment. In particular, when choosing a preset (Except  ξ“”one”’) the current settings are overwritten with the new ones.

Then press the OK button in the bottom left corner, to start the necessary calculations. At the bottom, outside of the window you see the progress bar, that is run through several times and indicates the current work progress. If your calculate time take too long or if you have started accidentally with incorrect parameters, you can interrupt the process by pressing the ”’ESC”’ button.

When the calculation is completed appears the scene and can be rendered or processed as usual. A list of available presets is located in section 2.7.

2.2  Mesh Basics


PIC

Figure 2.1: Mesh Basics


After selecting the first tab ”’Mesh Basics”’, a menu is displayed, as shown in Fig. 2.1. Based on the values of the preset ”’Simple”’, after pressing OK a lying flat mosaic is generated. The corresponding desired width can be previously registered in X-size and the height in Z-size. The third dimension, corresponding to the Y-direction is labeled height. The checkbox Switch Y axis can turn this height to the opposite direction, with the result that the mosaic is prone. The resulting coordinate system is a right-handed trihedron, which may be useful for conversion or export.

The mosaic based on a Delaunay triangulation, the number of nodes is specified. The value NormYmax is more complicated and is directly related to the selected Delaunay algolrithm. In the simplest case one sets this value to zero, with the result that the border of the triangulation can have ugly distorted triangles. If one chooses a slightly negative value, triangles are removed, starting at the border. In the triangulation in the last step a paraboloid surfaces are projected on the X-Z surface. The value indicates the threshold value of the Y component of the normals of these surfaces, from which the face is no longer considered. If it is null the paraboloid is divided into a top and bottom fraction with respect to the Y-direction. If it is negative, a shift occurs towards the apex.

By MinDist a desired minimum distance between points is specified. Of course, this may not necessarily be met with high number of points and a small area. The number Trys indicates how often this should be tried. If we choose inconvenient parameters, the algorithm in phase 2/23 is very slow. As rule of thumb applies approximately:

           ∘ -----------------
             (X--Size)(Z-Size)-
MinDist  <        Nodes

Generally speaking, with a small MinDist the mesh is irregular, with large, calculation is slower.

Then triangles are glued to polygons. The maximum number of edges which may have such a polygon is specified in Max Edges. The size of Merge Trys indicates how many runs this operation will have. It is not any attempt to be a success, because due to large number of edges gluing/merging operations are reversed, but these are counted anyway. The minimum number of edges is three. To turn of merging operations select zero for the number of Merge Trys.

2.3  Additional settings for the Mesh


PIC

Figure 2.2: Other settings for Mesh


The settings made in the first Tab describe a partition of the mosaic. In the second tab ”’Mesh Misc”’ specific characteristics of the fragments are determined. By selecting Separate, the individual contacting parts can be moved apart. For this, a radius is calculated for each node, from its influence the vertices are pushed out. The respective radius is determined randomly between the values R-Min and R-Max. In this way, there arise gaps between the parts.

The checkbox only on top controls whether this calculation is performed only for the top of the individual mosaic pieces. If this is the case, the shards are touching below and have sloping sidewalls. Figure 2.3 shows an example, above with disabled and down with activated only on top function. This value should not be too large to avoid unwanted effects. If one chooses it less than half of MinDist one is on the safe side.


PIC

Figure 2.3: Effect of Only on Top


With Tilt Angle an angle interval can be defined by specifying a minimum and a maximum. Then for each shard, an angle is determined and rotated about an axis in the X-Z-space. In particular, by specifying two same numbers precisely one angle can be defined. Then all shards rotate by this angle. The exact rotation axis is controlled by Rot-Axis Angle. Here, also an angle interval is defined in the same way, which specifies which position the axis of rotation in the X-Z plane has.

Due to the separation, it is possible that individual triangles lose their orientation. By selecting the checkbox Remove Flips such triangles can be excluded from the calculation.

The option Remove less then applies only to triangles, which have at least two sides with no neighbors in their own shard. Has such a triangle on a neighbor-free-side a height which is less than the specified value behind the triangle is removed. With this option, it is possible to remove very small pieces or broken tips.

2.4  Mapping


PIC

Figure 2.4: UV-Mapping


Dunreeb Mosaic includes several ways to map textures on the mosaic, or to calculate uv coordinates. Even without the specific choice of a texture source the uv coordinates of the current settings are calculated. For this purpose, three vectors are defined by the specification of offset, scaling and rotation, as shown in Fig. 2.5. The vectors U and V span a parallelogram in uv space, its location is defined by the vector C.

By default, the entire mosaic is covered exactly once. For this the vector U is on the top edge of the screen and is just its length by the scaling factor 1. According V shows in the vertical direction and by the scaling factor 1 it has the length of the vertical edge of the image. The associated angles respectively correspond to 0. The offsets in the original U- and V-direction are also 0, whereby the vectors U and V are applied to the upper left corner.

If you want to rotate the image clockwise, both vectors must be turned counterclockwise (mathematically positive). For different angles one obtains a shear. Doubling the scaling factor of U in the current U-direction, you will see doubling the image. By changing the offset in original U- or V-direction, the visible content is moved.


SVG-Viewer needed.


Figure 2.5: Mapping by selecting a parallelogram in uv space.


If one has a specific area to be used within an image, one can calculate the appropriate parameters. Although such an area may have the shape of a parallelogram or triangular, but it is in both cases, only necessary the knowledge of three points because the last corner of a parallelogram (which corresponds to the bottom right) results automatically.

By selecting the checkbox Random the uv coordinates are each determined randomly. However, it is ensured that the resulting area does not intersect the texture boundaries.

2.4.1  Example Calculation

To calculate the necessary parameters for Dunreeb Mosaic from a given image can be proceed as follows: First one determines the coordinates of three points within the image and the dimension of the image. Suppose there is given an image that is w = 1620 x h = 1858 pixels in size. In addition the coordinates of the upper left corner (278; 1729), the upper right corner (612; 459) and the lower left corner (1557; 1363) are given. These coordinates are first normalized, that is, divided by the width or height. This gives the three points:

      (   )    ( 278 )       (    )   ( 612)        (   )    ( 1557)
       a1u     (1620)         a2u    ( 1620)         a3u     ( 1620)
a1 =   a1v  =   1729  ;a2 =   a2v  =   459-  ;a3 =  a3v  =    1363-
                1858                   1858                    1858

The coordinates of a1 are the values that must be entered at offset.

The scale values are calculated to be:

     ∘ --------------------------                 ∘ --------------------------
su =   (a1u - a2u)2 + (a1v - a2v)2    or     sv =   (a1u - a3u)2 + (a1v - a3v)2

Finally the rotation parameters are determined by:

         a  -  a                        a   - a
tan αu =  -1v----2v     or      tan αv = --3u----1u
         a2u - a1u                       a1v - a3v

Depending on the quadrant, multiples of 90 degrees must be added, which can be estimated, for example, with a sketch.

Overall, the result parameter:





Offset Scale Rotation




U0.1716050.713948 73.215153
V0.9305710.813710104.009566




2.5  Materials


PIC

Figure 2.6: Material settings


By checkbox Use Texture, the block is activated, which consists of the first three rows. Here you can set which image source to be used in what way. If no image source is desired, this point remains disabled. Otherwise, the image source including the associated file path, can be entered directly to the right of, or by clicking the button Open and selecting the image source via a file requester. Among the opacity of the texture can be adjusted. Zero means that it can’t be seen, while 100 represents full opacity.

If the checkbox TexColors is selected, the previously random color values of the fragments are replaced by new ones, which are approximately formed from average values of the image at the appropriate place. If you select the checkbox Fast, only the vertices of the respective triangles are used for. Alternatively, so if the last checkbox is disabled; in Megapixel can be entered a value that relates to the complete mosaic, which can be compared with the resolution of a scan. Averaging is then used as the color value of the shard.

With these methods it is not unlikely that each shard has a different color. If you want to reduce the number of colors used or of the materials belonging to the scene Dunreeb Mosaic can do this automatically. For this, the checkbox Limit Colors is selected and the maximum number of colors is entered in the corresponding text box behind.


PIC

Figure 2.7: Some general settings


When you select the checkbox Separate Triangles the shard is split into the original triangles which can get their own material respectively. With the two checkboxes Extra Material for Flank and Bottom, a preset material chosen for the side wall of a shard or their bottom. Otherwise here one can see the color value of the shard. However, if the Triangles Separate mode is active, the result of the color value of a single wall element comes from the above adjacent triangle, which often provides an interesting effect.

2.6  General

The number which is registered at Number, is used to initialize the random number generator. If we choose in addition Keep, this is no longer changed. Polygon Prefix and Material Prefix are string elements that are hung in front of each numbered polygons and materials.

The checkbox Tile Grout causes the creation of a cuboid, which is similar to mortar between the shards.

As described in Section 2.7, can be selected by the combobox Preset a set of values, overwriting the existing menu settings with the respective preset associated.

2.7  Properties of presets

The essential characteristics of the 18 examples contained, are summarized in the following table. This is followed by corresponding image examples.














Name Height Max Edges Separate Sprt. Only on Top Crease Rotate Mapping Texture Limit Colors Separate Triangles Extra Material Tile Grout













Simple 15 5 x 3 xx
Oval 0 40 x 2
Colored 5 10 x x x
Loamy Ground 5 4 x x 1 x
Crease 0 60 x x
Dunreeb Logo 20 4 x full 0% 3 x
Racing Bike 5 3 x full, mirrored 0% 2 x
Charlotte 15 5 x full 0% 12
Tut Ench Amun 15 5 x full, zoom 0% x
Empuria Brava 40 5 x full 100% x xx
Shiva 3 5 x x full 100% x
Sandstone 5 5 x x xx full 100% x x
Empuria 90 Degree15 6 x x full 100% 7 x
Hybrid Stone 10 7 x x xpolygons, random100% x x
Ear 20 5 x full, zoom 100% x
Cycle Race 1510 x polygons 50% x
Charlottes Eye 15 6 x x polygons, zoom 100% x
Road Works 5 8 x x x triangles, zoom 100% 1













2.7.1  Simple

PIC 

2.7.2  Oval

PIC  PIC

2.7.3  Colored

PIC  PIC  PIC

2.7.4  Loamy Ground

PIC  PIC  PIC
PIC

2.7.5  Crease

PIC  PIC

2.7.6  Dunreeb Logo

PIC  PIC  PIC

2.7.7  Racing Bike

PIC  PIC  PIC
PIC

2.7.8  Charlotte

PIC  PIC  PIC
PIC

2.7.9  Tut Ench Amun

PIC  PIC  PIC
PIC

2.7.10  Empuria Brava

PIC  PIC  PIC
PIC

2.7.11  Shiva

PIC  PIC  PIC
PIC  PIC

2.7.12  Sandstone

PIC  PIC  PIC

2.7.13  Empuria 90 Degree

PIC  PIC  PIC
PIC  PIC

2.7.14  Hybrid Stone

PIC  PIC  PIC

2.7.15  Ear

PIC  PIC  PIC

2.7.16  Cycle Race

PIC  PIC  PIC
PIC

2.7.17  Charlottes Eye

PIC  PIC  PIC
PIC  PIC  PIC

2.7.18  Road Works

PIC  PIC  PIC

Copyright 2022 Dunreeb Gutschke and Klie GbR