Announcement

Collapse
No announcement yet.

Enmesh - is 'use item material IDs' working?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Enmesh - is 'use item material IDs' working?

    Hi,

    I added three materials with different material ID to the source mesh objects. If I disable/enable "use Items Mtl IDs" than I get the same output. Did I misunderstood the feature?

    -Micha

    Click image for larger version

Name:	image.png
Views:	285
Size:	16.0 KB
ID:	1164711

    Click image for larger version

Name:	image.png
Views:	223
Size:	62.2 KB
ID:	1164712​​
    www.simulacrum.de ... visualization for designer and architects

  • #2
    Hello Micha ,

    To achieve the result you want you need to make your Reference Object a single mesh (or polysurface) and first apply different materials to the separate faces so that V-Ray can generate Face material IDs for the faces you need. Then you need to apply a Material with a Multi-Sub texture in the Diffuse slot to the Enmesh base surface and set "Get ID from" to "Use Face Material ID".

    You can check this simple example below - I've created three Torus geometries and joined them into a single Polysurface with BooleanUnion. Then ctrl shift selected the separate Torus surfaces and applied to them different Materials (so that the Face material IDs are generated for the faces).
    The Torus polysurface is my Reference object and a simple surface is my Enmesh base object. The material assigned to the Enmesh is a Generic material with a Multi-Sub Texture:
    Click image for larger version  Name:	Enmesh_Use_Item_Material_IDs.jpg Views:	241 Size:	202.7 KB ID:	1164768

    Unfortunately there is currently no way to find out which Face material ID has a specific face because Rhino enumerates the faces in its own order. The issue has been discussed internally, but no final decision is made yet. We will let you know if there is any progress on this matter.


    Kind regards,
    Iva
    Last edited by iva_mancheva; 07-08-2023, 07:24 AM. Reason: Clarification
    Iva Mancheva
    V-Ray for SketchUp | V-Ray for Rhino | QA
    www.chaos.com

    Comment


    • #3
      Thank you iva_mancheva, I got it working like at your example.

      Is there a way to direct use different materials, like wood and metal rings? Or ist the Multi-Sub Texture the only way?

      www.simulacrum.de ... visualization for designer and architects

      Comment


      • #4
        How you can apply Mat ID to the individual faces in a poly surface ?

        Comment


        • #5
          Per Rhino sub-surface selection (Ctrl+Shift) you apply different V-Ray materials with different Mat ID to the selected sub surfaces.
          www.simulacrum.de ... visualization for designer and architects

          Comment


          • #6
            Hello Micha,

            You need a single material for the Enmesh asset, so the only way to keep multiple materials for the pattern objects is to use a Multi Material for the Enmesh geometry.
            I illustrated it with the same example - the pattern object is a single polysurface, with Ctrl + Shift + Select I applied a different material to each Torus surface, then I slotted the materials in one Multi Material and applied it to the Enmesh:
            Click image for larger version

Name:	Enmesh_Multi_Material.jpg
Views:	271
Size:	188.9 KB
ID:	1166817

            As a side note - with Multi-Sub texture you can take advantage of the Randomization options and randomly change the texture on each Enmesh Instance. You can check the examples in the Docs page - https://docs.chaos.com/display/VRHINO/Enmesh .

            Kind regards,
            Iva
            Iva Mancheva
            V-Ray for SketchUp | V-Ray for Rhino | QA
            www.chaos.com

            Comment


            • #7
              Thank you for the further details. The Docs examples are great.
              www.simulacrum.de ... visualization for designer and architects

              Comment

              Working...
              X