Smart Import

·

Smart Import makes node materials out of things made elsewhere: a set of texture images, a downloaded zip, a glTF file, or another application's materials — Blender, ArmorPaint, Material Maker, Substance 3D Painter and Substance 3D Designer. Each one becomes an ordinary node preset that you can paint with, open in the Node Editor or drop onto the model.

Open the Node Materials window (Window > Node Materials) and click the Smart Import button, the last of the buttons beside the folder dropdown in the window's top row. A requester opens with one button per kind of source; pick one and a file browser opens. Every kind except a folder lets you pick several files at once. Smart Import is in every edition, and does not need a model to be loaded.

The Node Materials window with the Smart Import requester open over it: the line 'New node materials are saved into (top level).', the Build from textures section with Image files..., A folder of textures... and A glTF file (.gltf)..., the Import a zip section with A zip of textures..., the Import other node formats section with the Blender, ArmorPaint, Material Maker, Substance Painter and Substance Designer buttons and their explanation, and Cancel at the bottom
The Smart Import requester, opened from the Node Materials window.

Where the new materials go

The requester's first line names the folder: new node materials are saved into the folder the Node Materials window is showing when you start, or into (top level) when it shows (top level) or (all). Pick the folder first if you want an import kept apart from your other presets.

  • Names. Each preset is named after its material. Characters other than letters, digits, -, _ and . become _, and a name already in the folder gets _2, _3 and so on, so an import never replaces a preset.
  • Description and tag. Each preset's description reads Smart Import from and the file or folder it came from, and it is tagged smart import. Type that into Search node materials to find everything you have imported. Hover a tile to read its description.
  • Self-contained. The images a material uses are packed into its preset, so the original files can be moved or deleted afterwards.
  • Substance files are the exception. Substance Painter smart materials and Substance Designer graphs always go into a folder called Substance, whichever folder the window is showing.

From there an imported material is like any other preset: click its tile to paint with it, double-click it to open it in the Node Editor, or drag it onto the model to apply it to that material. See Node Materials and Node Layers.

Building from textures

The three buttons under Build from textures make materials from image maps. Each map is recognised by its file name and wired into a Principled BSDF with the right colour space. One material is made per name, so a folder holding several texture sets gives several materials.

ButtonWhat it reads
Image files...The image files you pick: PNG, JPEG, Targa, TIFF, OpenEXR, BMP, WebP, JPEG XL or PSD.
A folder of textures...Every image in a folder and its sub-folders, three levels deep at most (a texture pack's textures sub-folder, not a whole drive). A .gltf file inside the folder decides the maps for the images in and under its own folder; the rest are grouped by name.
A glTF file (.gltf)...One material per material in the glTF file, using exactly the images the file names for each one (see below).

How maps are recognised

A file name is split into words at anything that is not a letter or a digit, and a word names the map:

MapWords in the file nameWired as
Base colourdiffuse, diff, albedo, basecolor, base_color, color, colour, colAn Image node, sRGB, into Base Color
Normalnormal, nor, nrm, nml, normalgl; normaldx, or a dx / directx word, for DirectXA Normal Map node set to OpenGL or DirectX
Roughnessroughness, roughAn Image node, Non-Color
Glossinessglossiness, gloss, smoothnessAn Image node through an Invert, into Roughness
Metallicmetallic, metalness, metalAn Image node, Non-Color
Ambient occlusionao, occlusion, ambient_occlusionAn Image node, Non-Color
Packed ARM / ORMarm, ormAn ARM Image node: red occlusion, green roughness, blue metallic — each used only where no separate map was given
Heightheight, displacement, disp, bumpAn Image node, Non-Color, into both Height (bump) and Displacement
Opacityopacity, alphaAn Image node, Non-Color
Emissionemission, emissive, emitAn Image node, sRGB, into the emission colour at strength 1

A few rules decide the cases in between:

  • The last map word wins. metal_plate_diff.png is a colour map.
  • A map word first, followed by a name, is a name. metal_black_plates_008.png is a picture of a metal, not a metallic map. A file that is only a map word (AO.jpg, Metallic_4k.png) is still a map.
  • Some words mean "not a map": preview, thumb, thumbnail, render, sphere, cube, spec, specular, ior, anisotropy, subsurface, sss and translucency. Such images are left out.
  • A workflow word last, after the size, is left off. Some vendors end every file of a set with its workflow: Wall_COL_2K_METALNESS.jpg, Wall_NRM_2K_METALNESS.jpg, Wall_COL_3K_SPECULAR.jpg. There METALNESS or SPECULAR is not the map. The word before the size is (COL: the colour map), and all of the files make one material, Wall.
  • The material's name is what is left of the file name once the map word, sizes such as 4k or 2048, format words such as png, and gl / dx are taken off. When nothing is left (AO.jpg), the folder's name is used. The same name in two folders is two materials.
  • One map per kind. When a kind comes twice, PNG, TIFF and Targa are preferred, then OpenEXR, then the other formats, then JPEG. A numbered copy (albedo2) comes after the plain one. When both an OpenGL and a DirectX normal map are there, the OpenGL one is used.

glTF files

A glTF file says exactly which image is which, so nothing is guessed from names. Its numbers come across too: the base colour factor tints the colour map (or sets the colour when there is no map), the metallic and roughness factors scale their maps, and a texture scale set on the base colour texture is applied to every map. glTF's metallic-roughness image becomes an ARM Image node; its red channel is used as occlusion only when the material's occlusion texture is the same image.

Only a .gltf with separate image files is read. Images embedded inside the file, or inside its .bin, are not read — such a material keeps its numbers only — and a .glb is not read at all. Export it again as .gltf with separate textures.

A zip of textures

A zip of textures... takes a downloaded .zip, unpacks it into Vertexix's cache, then builds materials from it exactly as from a folder. The zips are unpacked in the background, the Preparing Node Material popup reading Smart Import: unpacking 3 zip(s)... while they are, and the window keeps answering. The unpacked copy is deleted when the import is done; the images live on inside the presets.

Other applications' materials

The buttons under Import other node formats translate another program's node materials into Vertexix's own nodes. What has no counterpart is left out or approximated, and the status line says so (the first problem; the log has the rest).

Blender files (.blend)

A Blender file (.blend)... reads every node material in the file, through the Blender installed on your computer: Vertexix runs it hidden in the background. It looks for Blender in its usual place, Program Files\Blender Foundation, and uses the newest version there. Images packed into the .blend come across too.

What converts is what Vertexix has a node for: image textures (their Mapping and Texture Coordinate nodes are folded into the Image node's own placement), normal maps, the colour, math and vector nodes, the procedural textures (approximately — the noise functions are not Blender's), and the Principled BSDF, Diffuse and Emission shaders. One shader per material is converted, and a Bump node becomes the Height channel. Anything else is left out and named.

If Blender is not installed there, or does not finish within three minutes, the import stops with a message saying so.

ArmorPaint materials (.arm)

An ArmorPaint material (.arm)... reads an ArmorPaint material file, or the materials of an ArmorPaint project: one node material per material. Images packed into the file come across; others are looked for beside the .arm. Node groups are not converted.

Material Maker materials (.ptex)

A Material Maker material (.ptex)... makes one node material per file, its nodes translated into Vertexix's own — some through the GLSL Code node, running Material Maker's own code. Imported pattern nodes are set to UV Square (2D UV), where they match Material Maker. A file that reads always imports; when some of its nodes cannot come across, the status line says how many of them did and the log names the rest.

Material Maker's noises, scatterers, warps and blurs (Fast Blur, Occlusion, Smooth Curvature) come across as its own code, including the blurs that read a buffer as a texture. Its buffers and loops are kept as Material Maker keeps them, at their own sizes and in 16-bit floats, and Auto Tones stretches an image exactly as far as Material Maker's does. A material's height comes in at its full range and drives both the bump and the Displacement, so the surface takes the relief's shape as well as its shading; Material Maker's Depth sets how far it pushes (its default, 0.5, the height as it is). Their random patterns depend on the graphics card's own arithmetic, in Material Maker as in Vertexix: on the same kind of card an imported material matches Material Maker's own render closely, and on another it can differ in the fine detail of its noise.

Some materials use nodes shared on Material Maker's website, which Material Maker downloads the first time a file needs them. Vertexix uses the copies your own Material Maker has already downloaded (from its user folder, %APPDATA%\material_maker_2\shared_nodes on Windows), and never downloads anything itself. If the log says such a node was skipped, open the file in Material Maker once and import it again.

Substance Painter smart materials (.spsm) and smart masks (.spmsk)

A Substance Painter smart material (.spsm)... takes smart materials and smart masks saved in Substance 3D Painter. Each one becomes a single node preset in the Substance folder, named after the smart material. Its layer stack is rebuilt as one node graph, bottom to top, for base colour, roughness, metallic and height (the height also drives Displacement): each layer's fills, its mask, its blending mode and opacity per channel, and its folders. Hidden layers are skipped.

Painter's procedurals cannot be run outside Painter, so each is stood in for by Vertexix nodes that do the same job, chosen by the procedural's name and set from the values Painter stored. The result looks similar, never pixel-identical:

Painter's proceduralBecomes
Dirt, Metal Edge Wear, Dust, Curvature, Ambient Occlusion, Mask Builder and Position generatorsThe Dirt, Metal Edge Wear, Dust, Curvature Mask, Occlusion Mask, Mask Builder and Position Mask smart masks, with Painter's settings on them
BnW Spots, Clouds, Dirt, Fractal Sum, Moisture, Directional and Fur noisesThe BnW Spots, Clouds, Dirt Noise, Fractal Sum, Moisture Noise, Directional Noise and Fur Noise smart masks
Grunges and finishes that are picturesTheir own picture, taken out of the smart material — exact, not a stand-in. The edge wear's grunge picture is used the same way.
Scratches, cracks, wood, spotsRandom Lines, Cracks, distorted Wave rings, Voronoi
UV border distance, white noise, gradients, shapesUV Border Distance (inverted), White Noise, Gradient, Shape
Other grunges and noises, and any procedural not known by nameA Noise node
Filters: blur, sharpen, warp, HSL, gradient map, finishes, LevelsBlur, Sharpen, Warp, Hue/Saturation/Value, a ramp in the material's own tone, the finish's picture (or a fine noise) laid over, levels

The smart masks are the same groups the Layer Mask window offers (see Layer Masks). The generator ones read the model's own occlusion, edges and cavities, so they follow whatever model you apply the material to. Open the preset in the Node Editor to adjust their settings, such as Dirt Level or Wear Level.

Some things cannot come across and are left out:

  • paint strokes, polygon fills, anchors and bitmap fills;
  • the colours of a procedural used as a colour, which live inside the procedural — it is shown as a ramp between darker and lighter shades of the material's own tone (the average of its flat colours);
  • Painter's normal, emission, opacity and ambient occlusion channels.

Pictures taken out of the smart material are written into a folder beside the preset, named after it and ending in _images, in your own library only. These presets are saved without a thumbnail, so their tiles show a question mark; hover one to see what it became.

Substance Designer graphs (.sbs)

A Substance Designer graph (.sbs)... translates a Substance 3D Designer package node for node. Every graph in it that has outputs becomes a node preset in the Substance folder, named after the package (with the graph's name added when there are several).

In the .sbsBecomes
Atomic nodes: blend, levels, curve, HSL, gradient map, grayscale conversion, shuffle, transformation, warps, blurs, sharpen, normal, emboss, distance, uniform colourVertexix's own nodes, Substance's units turned into Vertexix's
A pixel processorPixel Math, Pixel Constant and Sample at UV nodes on the canvas, which you can edit like any others (see Node Reference)
A value processor, and every parameter a function computesWorked out once, at import
An instance of another graph in the same fileThat graph, translated in place
An instance of Substance's own library, or of another fileA stand-in by name (the same ones as for smart materials), or mid grey when there is none
An FX-MapDrawn once, at import, into a picture at the graph's own size (256 to 2048 pixels), read by an Image node. Image patterns inside it are drawn as soft blobs.
A bitmapAn Image node. A bitmap embedded in the package is written out beside the preset; a linked one is read from where it sits, relative to the .sbs.
The graph's outputsThe Principled BSDF's inputs, by their usage: base colour (or diffuse), roughness (glossiness inverted), metallic, normal, height (or displacement), ambient occlusion, emissive and opacity

The graph's exposed parameters are taken at their default values; they do not become sliders on the preset. An image input that nothing feeds reads mid grey. Blending happens in Vertexix's linear colour, the filters have their own kernels and Substance's random numbers are not documented, so the result is close to Designer's, not identical.

Note

A compiled Substance file (.sbsar) cannot be imported on its own: running one needs Adobe's Substance engine. Use the editable .sbs it was made from instead.

The Node Editor on Used_Iron, a Substance Painter smart material brought in by Smart Import: the last columns of its graph, Mix nodes compositing its layers one over another into the Principled BSDF, which is selected with Base Color, Metallic, Roughness and Height linked; behind it the same material on the mech's hull in the PBR view, dark worn iron with grime in its creases, the rest of the mech in its own blue paint
A Painter smart material rebuilt as a node graph, its generators as smart masks.

Progress, Cancel and messages

Materials from textures, zips, glTF, Blender, ArmorPaint and Material Maker are made one at a time, the status line counting how many are to come. Each material's thumbnail is rendered on the GPU, so a heavy material takes a while; the window keeps answering meanwhile. A material that takes more than a moment brings up the Preparing Node Material popup, which shows which one is being made (Smart Import: making … (2 of 5)) and how far the run has got. If a Node Layer is being filled when you start, the import waits for it.

Cancel in the popup, or Esc, stops the run. The materials already made stay; the one being made and the rest are dropped, and the status line says how many were made and how many were not.

When the run ends, the status line says how many node materials were made, followed by the first problem met, if any. When nothing at all was recognised it says there was nothing to import, and why.

Substance Painter smart materials and Substance Designer graphs are imported at once, without the popup; the status line says what was imported, and a file that cannot be read gets a message of its own.

Tip

For the whole story, turn on View > Create Log before importing. The log names every map found, the images that were not maps by name, every Painter stand-in, and everything that was approximated or left out. See Logs & Crash Reports.

The Preparing Node Material popup during a Smart Import of five zips of textures, its status reading Smart Import: making Moss002 (2 of 5), the progress bar at 20%, the line about each thumbnail being rendered on the GPU while the window keeps answering, the time so far and the Cancel button; the Node Materials window behind it and the model dimmed under the popup
A Smart Import run in progress; Cancel or Esc stops it.