[Bf-extensions-cvs] [eb9a4e79] master: io_mesh_atomic, utility panel: extension of the option 'custom data file'

Clemens Barth noreply at git.blender.org
Fri Jan 21 15:17:51 CET 2022


Commit: eb9a4e79d3df7b24046a6acc0e6e17c4b51f084d
Author: Clemens Barth
Date:   Fri Jan 21 14:56:06 2022 +0100
Branches: master
https://developer.blender.org/rBAeb9a4e79d3df7b24046a6acc0e6e17c4b51f084d

io_mesh_atomic, utility panel: extension of the option 'custom data file'

Changes
- All properties of the Principled BSDF shader can now be set in the
  data file for each element.
- Some important properties for Eevee are mentioned as well.

Remember: a custom data file contains the size and material properties
for each element. With this, the sizes and material properties of selected
atoms in an atomic structure can be changed at once. The user can therefore
store her/his own material properties inside this file and use it at any
time for any atomic structures.

===================================================================

M	io_mesh_atomic/atom_info.dat
M	io_mesh_atomic/utility_panel.py

===================================================================

diff --git a/io_mesh_atomic/atom_info.dat b/io_mesh_atomic/atom_info.dat
index 83dde4b8..c14d45de 100644
--- a/io_mesh_atomic/atom_info.dat
+++ b/io_mesh_atomic/atom_info.dat
@@ -1,2172 +1,4640 @@
+#
+#    Program: Create_atomic_data_file
+#    ================================
+#
+#    Version: 0.5
+#    Author : Dr. Clemens Barth
+#    Date   : 2022-01-21
+#
+#
+#
+#
+#    This file contains, for each element, the following properties:
+#
+#    - Atom radii (atomic, covalent, ionic)
+#    - Color of the representative ball
+#    - Material properties used in the Principled BSDF shader
+#    - Properties for Eevee.
+#
+#
+#
+#    The following string options are available:
+#
+#    P BSDF Subsurface method : 'BURLEY', 'RANDOM_WALK_FIXED_RADIUS', 'RANDOM_WALK'
+#    P BSDF Distribution      : 'GGX', 'MULTI_GGX'
+#    Eevee Blend Method       : 'OPAQUE', 'CLIP', 'HASHED', 'BLEND'
+#    Eevee Shadow Method      : 'NONE', 'OPAQUE', 'CLIP', 'HASHED'
+#
+#
+
+
+Atom
+====
+Number                       : 1
+Name                         : Hydrogen
+Short name                   : H
+Radius used                  : 0.320000
+Radius, covalent             : 0.320000
+Radius, atomic               : 0.790000
+Charge state                 : -1
+Radius, ionic                : 1.540000
+Color                        : 1.0,1.0,1.0,1.0
+P BSDF Subsurface method     : BURLEY
+P BSDF Distribution          : MULTI_GGX
+P BSDF Subsurface            : 0.0
+P BSDF Subsurface Color      : 1.0, 1.0, 1.0, 1.0
+P BSDF Subsurface Radius     : 1.0, 0.2, 0.1
+P BSDF Metallic              : 0.0
+P BSDF Specular              : 0.5
+P BSDF Specular Tilt         : 0.5
+P BSDF Roughness             : 0.5
+P BSDF Anisotropic           : 0.5
+P BSDF Anisotropic Rotation  : 0.5
+P BSDF Sheen                 : 0.5
+P BSDF Sheen Tint            : 0.5
+P BSDF Clearcoat             : 0.0
+P BSDF Clearcoat Rough       : 0.030
+P BSDF IOR                   : 1.4
+P BSDF Trans                 : 0.0
+P BSDF Trans Roughness       : 0.0
+P BSDF Emisssion             : 0.0, 0.0, 0.0, 1.0
+P BSDF Emission Strength     : 0.0
+P BSDF Alpha                 : 1.0
+Eevee Use Backface Culling   : True
+Eevee Blend Method           : OPAQUE
+Eevee Shadow Method          : OPAQUE
+Eevee Clip Threshold         : 0.5
+Eevee Use Screen Refraction  : False
+Eevee Refraction depth       : 0.5
+Eevee Use SSS Translucency   : False
+Eevee Pass Index             : 0
+
+
+Atom
+====
+Number                       : 2
+Name                         : Helium
+Short name                   : He
+Radius used                  : 0.930000
+Radius, covalent             : 0.930000
+Radius, atomic               : 0.490000
+Color                        : 0.8509803921568627,1.0,1.0,1.0
+P BSDF Subsurface method     : BURLEY
+P BSDF Distribution          : MULTI_GGX
+P BSDF Subsurface            : 0.0
+P BSDF Subsurface Color      : 1.0, 1.0, 1.0, 1.0
+P BSDF Subsurface Radius     : 1.0, 0.2, 0.1
+P BSDF Metallic              : 0.0
+P BSDF Specular              : 0.5
+P BSDF Specular Tilt         : 0.5
+P BSDF Roughness             : 0.5
+P BSDF Anisotropic           : 0.5
+P BSDF Anisotropic Rotation  : 0.5
+P BSDF Sheen                 : 0.5
+P BSDF Sheen Tint            : 0.5
+P BSDF Clearcoat             : 0.0
+P BSDF Clearcoat Rough       : 0.030
+P BSDF IOR                   : 1.4
+P BSDF Trans                 : 0.0
+P BSDF Trans Roughness       : 0.0
+P BSDF Emisssion             : 0.0, 0.0, 0.0, 1.0
+P BSDF Emission Strength     : 0.0
+P BSDF Alpha                 : 1.0
+Eevee Use Backface Culling   : True
+Eevee Blend Method           : OPAQUE
+Eevee Shadow Method          : OPAQUE
+Eevee Clip Threshold         : 0.5
+Eevee Use Screen Refraction  : False
+Eevee Refraction depth       : 0.5
+Eevee Use SSS Translucency   : False
+Eevee Pass Index             : 0
+
+
+Atom
+====
+Number                       : 3
+Name                         : Lithium
+Short name                   : Li
+Radius used                  : 1.230000
+Radius, covalent             : 1.230000
+Radius, atomic               : 2.050000
+Charge state                 : 1
+Radius, ionic                : 0.680000
+Color                        : 0.8,0.5019607843137255,1.0,1.0
+P BSDF Subsurface method     : BURLEY
+P BSDF Distribution          : MULTI_GGX
+P BSDF Subsurface            : 0.0
+P BSDF Subsurface Color      : 1.0, 1.0, 1.0, 1.0
+P BSDF Subsurface Radius     : 1.0, 0.2, 0.1
+P BSDF Metallic              : 0.0
+P BSDF Specular              : 0.5
+P BSDF Specular Tilt         : 0.5
+P BSDF Roughness             : 0.5
+P BSDF Anisotropic           : 0.5
+P BSDF Anisotropic Rotation  : 0.5
+P BSDF Sheen                 : 0.5
+P BSDF Sheen Tint            : 0.5
+P BSDF Clearcoat             : 0.0
+P BSDF Clearcoat Rough       : 0.030
+P BSDF IOR                   : 1.4
+P BSDF Trans                 : 0.0
+P BSDF Trans Roughness       : 0.0
+P BSDF Emisssion             : 0.0, 0.0, 0.0, 1.0
+P BSDF Emission Strength     : 0.0
+P BSDF Alpha                 : 1.0
+Eevee Use Backface Culling   : True
+Eevee Blend Method           : OPAQUE
+Eevee Shadow Method          : OPAQUE
+Eevee Clip Threshold         : 0.5
+Eevee Use Screen Refraction  : False
+Eevee Refraction depth       : 0.5
+Eevee Use SSS Translucency   : False
+Eevee Pass Index             : 0
+
+
+Atom
+====
+Number                       : 4
+Name                         : Beryllium
+Short name                   : Be
+Radius used                  : 0.900000
+Radius, covalent             : 0.900000
+Radius, atomic               : 1.400000
+Charge state                 : 1
+Radius, ionic                : 0.440000
+Charge state                 : 2
+Radius, ionic                : 0.350000
+Color                        : 0.7607843137254902,1.0,0.0,1.0
+P BSDF Subsurface method     : BURLEY
+P BSDF Distribution          : MULTI_GGX
+P BSDF Subsurface            : 0.0
+P BSDF Subsurface Color      : 1.0, 1.0, 1.0, 1.0
+P BSDF Subsurface Radius     : 1.0, 0.2, 0.1
+P BSDF Metallic              : 0.0
+P BSDF Specular              : 0.5
+P BSDF Specular Tilt         : 0.5
+P BSDF Roughness             : 0.5
+P BSDF Anisotropic           : 0.5
+P BSDF Anisotropic Rotation  : 0.5
+P BSDF Sheen                 : 0.5
+P BSDF Sheen Tint            : 0.5
+P BSDF Clearcoat             : 0.0
+P BSDF Clearcoat Rough       : 0.030
+P BSDF IOR                   : 1.4
+P BSDF Trans                 : 0.0
+P BSDF Trans Roughness       : 0.0
+P BSDF Emisssion             : 0.0, 0.0, 0.0, 1.0
+P BSDF Emission Strength     : 0.0
+P BSDF Alpha                 : 1.0
+Eevee Use Backface Culling   : True
+Eevee Blend Method           : OPAQUE
+Eevee Shadow Method          : OPAQUE
+Eevee Clip Threshold         : 0.5
+Eevee Use Screen Refraction  : False
+Eevee Refraction depth       : 0.5
+Eevee Use SSS Translucency   : False
+Eevee Pass Index             : 0
+
+
+Atom
+====
+Number                       : 5
+Name                         : Boron
+Short name                   : B
+Radius used                  : 0.820000
+Radius, covalent             : 0.820000
+Radius, atomic               : 1.170000
+Charge state                 : 1
+Radius, ionic                : 0.350000
+Charge state                 : 3
+Radius, ionic                : 0.230000
+Color                        : 1.0,0.7098039215686275,0.7098039215686275,1.0
+P BSDF Subsurface method     : BURLEY
+P BSDF Distribution          : MULTI_GGX
+P BSDF Subsurface            : 0.0
+P BSDF Subsurface Color      : 1.0, 1.0, 1.0, 1.0
+P BSDF Subsurface Radius     : 1.0, 0.2, 0.1
+P BSDF Metallic              : 0.0
+P BSDF Specular              : 0.5
+P BSDF Specular Tilt         : 0.5
+P BSDF Roughness             : 0.5
+P BSDF Anisotropic           : 0.5
+P BSDF Anisotropic Rotation  : 0.5
+P BSDF Sheen                 : 0.5
+P BSDF Sheen Tint            : 0.5
+P BSDF Clearcoat             : 0.0
+P BSDF Clearcoat Rough       : 0.030
+P BSDF IOR                   : 1.4
+P BSDF Trans                 : 0.0
+P BSDF Trans Roughness       : 0.0
+P BSDF Emisssion             : 0.0, 0.0, 0.0, 1.0
+P BSDF Emission Strength     : 0.0
+P BSDF Alpha                 : 1.0
+Eevee Use Backface Culling   : True
+Eevee Blend Method           : OPAQUE
+Eevee Shadow Method          : OPAQUE
+Eevee Clip Threshold         : 0.5
+Eevee Use Screen Refraction  : False
+Eevee Refraction depth       : 0.5
+Eevee Use SSS Translucency   : False
+Eevee Pass Index             : 0
+
+
+Atom
+====
+Number                       : 6
+Name                         : Carbon
+Short name                   : C
+Radius used                  : 0.770000
+Radius, covalent             : 0.770000
+Radius, atomic               : 0.910000
+Charge state                 : -4
+Radius, ionic                : 2.600000
+Charge state                 : 4
+Radius, ionic                : 0.160000
+Color                        : 0.5647058823529412,0.5647058823529412,0.5647058823529412,1.0
+P BSDF Subsurface method     : BURLEY
+P BSDF Distribution          : MULTI_GGX
+P BSDF Subsurface            : 0.0
+P BSDF Subsurface Color      : 1.0, 1.0, 1.0, 1.0
+P BSDF Subsurface Radius     : 1.0, 0.2, 0.1
+P BSDF Metallic              : 0.0
+P BSDF Specular              : 0.5
+P BSDF Specular Tilt         : 0.5
+P BSDF Roughness             : 0.5
+P BSDF Anisotropic           : 0.5
+P BSDF Anisotropic Rotation  : 0.5
+P BSDF Sheen                 : 0.5
+P BSDF Sheen Tint            : 0.5
+P BSDF Clearcoat             : 0.0
+P BSDF Clearcoat Rough       : 0.030
+P BSDF IOR                   : 1.4
+P BSDF Trans                 : 0.0
+P BSDF Trans Roughness       : 0.0
+P BSDF Emisssion             : 0.0, 0.0, 0.0, 1.0
+P BSDF Emission Strength     : 0.0
+P BSDF Alpha                 : 1.0
+Eevee Use Backface Culling   : True
+Eevee Blend Method           : OPAQUE
+Eevee Shadow Method          : OPAQUE
+Eevee Clip Threshold         : 0.5
+Eevee Use Screen Refraction  : False
+Eevee Refraction depth       : 0.5
+Eevee Use SSS Translucency   : False
+Eevee Pass Index             : 0
+
+
+Atom
+====
+Number                       : 7
+Name                         : Nitrogen
+Short name                   : N
+Radius used                  : 

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list