Skip to content

Commit

Permalink
[Texturing] add options for retopoMesh & reorganise options
Browse files Browse the repository at this point in the history
  • Loading branch information
cvere committed Aug 2, 2019
1 parent 059ca36 commit 386ec32
Showing 1 changed file with 50 additions and 27 deletions.
77 changes: 50 additions & 27 deletions meshroom/nodes/aliceVision/Texturing.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,32 +91,6 @@ class Texturing(desc.CommandLineNode):
uid=[0],
advanced=True,
),
desc.BoolParam(
name='correctEV',
label='Correct Exposure',
description='Uniformize images exposure values.',
value=False,
uid=[0],
advanced=True,
),
desc.BoolParam(
name='useScore',
label='Use Score',
description='Use triangles scores for multiband blending.',
value=True,
uid=[0],
advanced=True,
),
desc.ChoiceParam(
name='processColorspace',
label='Process Colorspace',
description="Colorspace for the texturing internal computation (does not impact the output file colorspace).",
value='sRGB',
values=('sRGB', 'LAB', 'XYZ'),
exclusive=True,
uid=[0],
advanced=True,
),
desc.IntParam(
name='multiBandDownscale',
label='Multi Band Downscale',
Expand All @@ -138,6 +112,14 @@ class Texturing(desc.CommandLineNode):
description='''Number of contributions per frequency band for multiband blending (each frequency band also contributes to lower bands)''',
advanced=True,
),
desc.BoolParam(
name='useScore',
label='Use Score',
description='Use triangles scores (ie. reprojection area) for multiband blending.',
value=True,
uid=[0],
advanced=True,
),
desc.FloatParam(
name='bestScoreThreshold',
label='Best Score Threshold',
Expand All @@ -147,7 +129,7 @@ class Texturing(desc.CommandLineNode):
uid=[0],
advanced=True,
),
desc.FloatParam(
desc.FloatParam(
name='angleHardThreshold',
label='Angle Hard Threshold',
description='''(0.0 to disable angle hard threshold filtering)''',
Expand All @@ -156,6 +138,24 @@ class Texturing(desc.CommandLineNode):
uid=[0],
advanced=True,
),
desc.ChoiceParam(
name='processColorspace',
label='Process Colorspace',
description="Colorspace for the texturing internal computation (does not impact the output file colorspace).",
value='sRGB',
values=('sRGB', 'LAB', 'XYZ'),
exclusive=True,
uid=[0],
advanced=True,
),
desc.BoolParam(
name='correctEV',
label='Correct Exposure',
description='Uniformize images exposure values.',
value=False,
uid=[0],
advanced=True,
),
desc.BoolParam(
name='forceVisibleByAllVertices',
label='Force Visible By All Vertices',
Expand All @@ -182,6 +182,29 @@ class Texturing(desc.CommandLineNode):
uid=[0],
advanced=True,
),
desc.BoolParam(
name='retopoMesh',
label='Retopo Mesh',
description='''Check if the mesh has been simplified - it will be subdivide to recover texture precision.''',
value=False,
uid=[0],
),
desc.FloatParam(
name='edgeLengthSubdivisionFactor',
label='Edge Length Subdivision Factor',
description='''Edge length subdivision factor, needed if the mesh has been simplified and must be subdivide for texturing efficiency.''',
value=0.5,
range=(0.0, 1.0, 0.001),
uid=[0],
),
desc.IntParam(
name='nbPtsSubdivisionFactor',
label='Nb Points Subdivision Factor',
description='''Number of points multiplication factor, needed if the mesh has been simplified and must be subdivide for texturing efficiency.''',
value = 500,
range=(10, 1000, 10),
uid=[0],
),
desc.ChoiceParam(
name='verboseLevel',
label='Verbose Level',
Expand Down

0 comments on commit 386ec32

Please sign in to comment.