vray.ScannedMaterialInfo

class vray.ScannedMaterialInfo

Bases: object

A class used to get information string and preset values from a scanned material file.

Methods

__init__(*args, **kwargs)

getInfo

Get information string about the file content.

getPreset

Get preset values of the scanned material.

getInfo()

Get information string about the file content.

Arguments:
  • filename, string - The name of the file containing the scanned material data.

getPreset()

Get preset values of the scanned material.

Arguments:
  • filename, string - The name of the file containing the scanned material data.

Returns a dictionary
  • ccior, float - ClearCoat index of reflection

  • plain, int - Plain materials strategy

  • bumpmul, float - Bump multiplier for the inclined views

  • bumpstart, float - The z-value of the view vector below which bump is gradualy applied

  • depthmul, float - Displacement multiplier

  • ccbump, float - Clear coat noise-like bump amount (there is separate hmap bump)

  • orggls, float - Clear coat glossiness the inverse angle deviation width (60 is one degree), since 20.04.21 this is real preset, but the old materials use specbell

  • orgglvar, float - Clear coat glossiness variation (0-none 1 the shallow anglesare glossy), since 20.04.21 this is real preset, but the old materials use scratchdens

  • ccmul, float - Clear coat effect multiplier

  • shdhmul, float - Height multiplier for self shadowing

  • shdmul, float - Brightness multiplier for self shadowing

  • flakes, int - Used to render materials with sharp sparks, a procedural map with relative size this param is used to feed the RR sampling

  • forcebrdf, int - Controls how to use the smooth brdf model

  • specbell, float - CC specular highlights, inverse bell width (60 is one degree)

  • scratchdens, float - Controls the pure reflective behavior for inclined angles, a feature typical for brushed metal

  • fuzzy, float - Used mostly with top view fabrics, modifies the rendering of the inclined views making them blurred and fuzzy

  • topvLs_A, float - Used in top view materials to control the light direction correction

  • keepflakesuv, float - Used in top view materials to control the light direction correction

  • indmul, float - Multiplier of the indirect light, used to handle the fluorescent materials by putting value below 1 in this member

  • ccmetalrefl, float - Modifies the clear coat reflection to metalic behavior, i.e., it modulates the reflection color by the underlying BRDF color, also a member of ScannedMaterialParams

  • thickness, float - The sample thickness in mm, used to introduce alpha/translucency correction of thick materials

  • triplanar, int - Force triplanar mapping when certain customer has old vray (luxottica)

  • transpf, float - Control the function converting translucency to transparency

  • lfsizecm, float - The large feature map physical size