Trace:

docs:gsvit_inputs

This shows you the differences between two versions of the page.

Both sides previous revision Previous revision | |||

docs:gsvit_inputs [2018/10/09 11:58] pklapetek |
docs:gsvit_inputs [2018/10/10 09:32] (current) pgrolich |
||
---|---|---|---|

Line 301: | Line 301: | ||

<b>Medium modifiers</b> | <b>Medium modifiers</b> | ||

- | |||

- | <p><b>MEDIUM_SPECTRAL</b><br> | ||

- | <i>sigma T material_index random_seed</i><br> | ||

- | Adds roughness to objects consisting of all tabulated materials (parameter material_index is only reserved for future use) using spectral synthesis and vector displacement method. Roughness parameters sigma and T controlling variance and correlation length are given in voxels. | ||

- | Random seed can be -1 to get it randomly. | ||

- | |||

- | <p><b>MEDIUM_EXPRESSION</b><br> | ||

- | <i>i_start j_start k_start i_end j_end k_end material_index void_index max_distance distance_mode expression</i><br> | ||

- | Alters object boundary using some analytical expression. In the expression, x, y and z mean the voxel coordinates. Basic mathematical functions and constants (pi) can be used. | ||

- | As an example, this combination of sine functions can create quite chaotic surface shape: | ||

- | <tt><br><br> | ||

- | MEDIUM_EXPRESSION<br> | ||

- | 10 10 10 290 290 290 1 0 10 1 0.5+0.08*sin(x/2)+0.08*sin(y/3)+0.08*sin(z/3.8)+0.08*sin((x+y)/5)+0.08*sin((y+z)/2.5)+0.08*sin((x+z)/4.2)<br> | ||

- | </tt> | ||

- | |||

- | <p><b>MEDIUM_ROUGHEN</b><br> | ||

- | <i>radius_peak radius_span iterations probability material_index void_index random_seed</i><br> | ||

- | Adds roughness to objects consisting of defined tabulated material (parameter material_index) adding this | ||

- | material and void or any other material (parameter void_index) to the object randomly. | ||

- | Roughness is controlled by parameter radius_peak and radius_span (both in voxel coordinates) that | ||

- | control radius and dispersion of spheres that are added. Parameter probability controls amount of spheres | ||

- | added in every point. Random seed can be any integer to get same result or -1 to generate seed automatically. | ||

- | Note that materials (parameter material index) are counted from 1 as they are loaded from vector material | ||

- | file (so the first material listed there has index of 1). Material with index=0 is vacuum by default | ||

- | As an example, to add roughness to a sphere (the only object in material file), using 20 iterations | ||

- | of adding and removing spheres of radius 5+-2 voxels, add this: | ||

- | <tt><br><br> | ||

- | MEDIUM_ROUGHEN<br> | ||

- | 5 2 20 0.01 1 0 1<br> | ||

- | </tt> | ||

- | </p> | ||

- | <p><i>Note that this option is not supported for direct editing by XSvit in this version</i></p> | ||

<p><b>MEDIUM_GROW</b><br> | <p><b>MEDIUM_GROW</b><br> | ||

Line 356: | Line 324: | ||

</p> | </p> | ||

<p><i>Note that this option is not supported for direct editing by XSvit in this version</i></p> | <p><i>Note that this option is not supported for direct editing by XSvit in this version</i></p> | ||

+ | |||

+ | <p><b>MEDIUM_ROUGHEN</b><br> | ||

+ | <i>radius_peak radius_span iterations probability material_index void_index random_seed</i><br> | ||

+ | Adds roughness to objects consisting of defined tabulated material (parameter material_index) adding this | ||

+ | material and void or any other material (parameter void_index) to the object randomly. | ||

+ | Roughness is controlled by parameter radius_peak and radius_span (both in voxel coordinates) that | ||

+ | control radius and dispersion of spheres that are added. Parameter probability controls amount of spheres | ||

+ | added in every point. Random seed can be any integer to get same result or -1 to generate seed automatically. | ||

+ | Note that materials (parameter material index) are counted from 1 as they are loaded from vector material | ||

+ | file (so the first material listed there has index of 1). Material with index=0 is vacuum by default | ||

+ | As an example, to add roughness to a sphere (the only object in material file), using 20 iterations | ||

+ | of adding and removing spheres of radius 5+-2 voxels, add this: | ||

+ | <tt><br><br> | ||

+ | MEDIUM_ROUGHEN<br> | ||

+ | 5 2 20 0.01 1 0 1<br> | ||

+ | </tt> | ||

+ | </p> | ||

+ | |||

+ | |||

+ | <p><b>MEDIUM_SPECTRAL</b><br> | ||

+ | <i>sigma T material_index random_seed</i><br> | ||

+ | Adds roughness to objects consisting of all tabulated materials (parameter material_index is only reserved for future use) using spectral synthesis and vector displacement method. Roughness parameters sigma and T controlling variance and correlation length are given in voxels. | ||

+ | Random seed can be -1 to get it randomly. | ||

+ | |||

+ | <p><b>MEDIUM_EXPRESSION</b><br> | ||

+ | <i>i_start j_start k_start i_end j_end k_end material_index void_index max_distance distance_mode expression</i><br> | ||

+ | Alters object boundary using some analytical expression. In the expression, x, y and z mean the voxel coordinates. Basic mathematical functions and constants (pi) can be used. | ||

+ | As an example, this combination of sine functions can create quite chaotic surface shape: | ||

+ | <tt><br><br> | ||

+ | MEDIUM_EXPRESSION<br> | ||

+ | 10 10 10 290 290 290 1 0 10 1 0.5+0.08*sin(x/2)+0.08*sin(y/3)+0.08*sin(z/3.8)+0.08*sin((x+y)/5)+0.08*sin((y+z)/2.5)+0.08*sin((x+z)/4.2)<br> | ||

+ | </tt> | ||

+ | |||

<br><br> | <br><br> |

docs/gsvit_inputs.txt ยท Last modified: 2018/10/10 09:32 by pgrolich

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial 4.0 International