Select Linq object with max values

Mapping Object Operator

The operator "mapping object" assigns a mapping to the particles by capturing mapping values ​​from one or more reference objects. The operator "mapping object" finds the closest point on the reference geometry for all particles, takes the mapping values ​​and the material ID from this point and assigns these values ​​to the particle.

  • Particle View> In an event, click Mapping Object, or add the Mapping Object operator to the particle system and then click it.

When a particle with a mapping already assigned enters an event, you can merge the mapping values ​​to avoid color jumps. The merge can be done either based on time or distance from the reference geometry.

user interface

Determines the timing for fetching and applying the mapping. The following options are available:
  • Once at event entry The mapping is fetched from the next point of the reference object geometry once when the particle enters the event. Use this option when the particles are bound to the reference surface.
  • Continuously Gets the mapping continuously as long as the particle is in the current event. When a particle changes its position in relation to the reference object, the mapping values ​​change depending on the position of the closest point at the corresponding point in time, since in this case the closest point on the surface is not constant.

    This option requires significantly more computation time, since the closest point for each particle has to be calculated in each frame. Use this option only if necessary.

Get sub-material index
When enabled, the Mapping Object operator assigns the material ID of the closest face to each particle. If the current event or a previous event has a material operator that uses the material of the reference surface, this option adjusts the particle color to match the reference surface. This allows you to merge particles with the reference surface for multi / sub-object materials.
Tip: Put the operator "mapping object" under a material operator in the same event. "Mapping object" is then ultimately decisive when assigning the sub-material index to a particle.
Uniform color per particle
If this option is activated, the entire particle will have the same mapping coordinates. This results in the entire particle being the same color as the mapping coordinates are the same across the entire particle shape. The mapping coordinates are obtained from the surface point of the reference geometry that is closest to the pivot point of the particle.

When unchecked, the mapping for a particle is a linear approximation of the mapping of the closest surface point. This is equivalent to a projection of the mapping of the reference geometry onto the particle. As a result, the vertices of a particle are given different mapping coordinates. The texture on the particles represents a section of the texture of the reference geometry. This method is slower because it requires a more comprehensive analysis of the reference geometry.

"Mapping of objects" group

With these controls you can assign the reference objects from which the particles should get the mapping or the material IDs.

Lists the reference objects.
Adds an object to the list.
According to list
Displays a dialog box in which you can select multiple objects from a list.
Removes a selected object from the list.
Static objects
Indicates that the reference geometry is not animated. In this case, the "mapping object" operator only gets the mapping and the material IDs once.
Animated surface
When this option is checked, the Mapping Object operator updates the surface data every frame. This is necessary when the reference geometry has a surface animation that results in a change in shape. If the object is only animated by transformations (moving, rotating, scaling), you can leave these options deactivated. This option is only available if "Static Objects" is deactivated.

"Mapping channels" area

Select the mapping channels via which the mapping is fetched from the reference surface and assigned to the particles. You can select up to 32 channels.

Vertex color channel
Retrieves the vertex color channel from the reference geometry and assigns it to the particles.

"Mapping Variation" group

U / V / W var. %
Activates the variation of the assigned mapping values. The variation value is a percentage value based on the standard mapping space 0.0 to 1.0. For example, if the value "U-Var%" is "20.0", the U-mapping assigned to the particle can deviate by up to 0.2 from the U-mapping value of the reference geometry.
Exclude tiles
Keeps the mapping values ​​in the range 0.0 to 1.0. The variation set by "U- / V- / W-Var.%" Can produce mapping values ​​below 0.0 or above 1.0. If the texture is not tiled, this can lead to a visible color jump. If this option is activated, with an original mapping value below 1.0, a maximum value of 1.0 is achieved by adding the variation. If the original mapping is above 0.0, adding the variation results in at least 0.0.

According to the specification, the fetched mapping values ​​are assigned to a particle as soon as it enters the event. If mapping values ​​were assigned to the particles in a previous event, there may be a visible color jump. Use Merge Mapping by Time or Merge Mapping by Distance to smoothly transition particles from the previous mapping to the mapping assigned by the Mapping Object operator in the current event.

Merge mapping by time
Leads to the fact that the previous and current mapping of the particles merge smoothly, taking time into account.
Note: If "Merge Mapping by Time" is enabled, "Merge Mapping by Distance" is not available.

Type This option determines the timing for the map blending. It is only available if "Merge Mapping by Time" is activated.

The types are:

  • Absolute time The particles end the blending process when they reach the frame set in the "End at time" parameter.
  • Particle age The particles end the merging process when they reach the age set in the "End at age" parameter.
  • Event duration The particles end the blending process after spending a certain amount of time in the current event, which is determined by the "End on Time" parameter.
  • Limited rate of change Limits the rate at which a particle can change its mapping. The "Reversal time" parameter determines the time interval required to change the mapping value from the previous to the current value. The larger the value of "Reversal time", the longer it takes a particle to change the current mapping.
Merge mapping by distance
Smoothly blends the previous and current mapping of the particles based on the distance to the reference geometry. At each frame, the operator calculates the distance to the nearest surface point. The merging process takes place when a particle approaches the reference surface. The amalgamation is terminated when a particle reaches the "final distance" relative to the reference surface. Use this option when particles are directed toward the surface as they enter the event, as is the case with the Find Target operator.
Note: If "Merge Mapping by Distance" is enabled, "Merge Mapping by Time" is not available.
Show map in viewport
Shows the coloring of the map in the viewport.

Uniqueness control group

The settings in this group change the randomization of the "U-Var", "V-Var" and "W-Var" parameters in the "Mapping Variation" group.

Initial number
Specifies a random value.
Generates a new seed number based on a random formula.