mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 00:08:29 +02:00
[nodes] Texturing: add 'unwrapMethod' and 'fillHoles' parameters
This commit is contained in:
parent
12d62fe46b
commit
185c32fe21
1 changed files with 29 additions and 10 deletions
|
@ -6,7 +6,6 @@ class Texturing(desc.CommandLineNode):
|
||||||
commandLine = 'aliceVision_texturing {allParams}'
|
commandLine = 'aliceVision_texturing {allParams}'
|
||||||
cpu = desc.Level.INTENSIVE
|
cpu = desc.Level.INTENSIVE
|
||||||
ram = desc.Level.INTENSIVE
|
ram = desc.Level.INTENSIVE
|
||||||
|
|
||||||
inputs = [
|
inputs = [
|
||||||
desc.File(
|
desc.File(
|
||||||
name='ini',
|
name='ini',
|
||||||
|
@ -38,17 +37,9 @@ class Texturing(desc.CommandLineNode):
|
||||||
exclusive=True,
|
exclusive=True,
|
||||||
uid=[0],
|
uid=[0],
|
||||||
),
|
),
|
||||||
desc.IntParam(
|
|
||||||
name='padding',
|
|
||||||
label='Padding',
|
|
||||||
description='''Texture edge padding size in pixel''',
|
|
||||||
value=15,
|
|
||||||
range=(0, 100, 1),
|
|
||||||
uid=[0],
|
|
||||||
),
|
|
||||||
desc.ChoiceParam(
|
desc.ChoiceParam(
|
||||||
name='downscale',
|
name='downscale',
|
||||||
label='Downscale',
|
label='Texture Downscale',
|
||||||
description='''Texture downscale factor''',
|
description='''Texture downscale factor''',
|
||||||
value=2,
|
value=2,
|
||||||
values=(1, 2, 4, 8),
|
values=(1, 2, 4, 8),
|
||||||
|
@ -64,6 +55,33 @@ class Texturing(desc.CommandLineNode):
|
||||||
exclusive=True,
|
exclusive=True,
|
||||||
uid=[0],
|
uid=[0],
|
||||||
),
|
),
|
||||||
|
desc.ChoiceParam(
|
||||||
|
name='unwrapMethod',
|
||||||
|
label='Unwrap Method',
|
||||||
|
description='Method to unwrap input mesh if it does not have UV coordinates.\n'
|
||||||
|
' * Basic (> 600k faces) fast and simple. Can generate multiple atlases.\n'
|
||||||
|
' * LSCM (<= 600k faces): optimize space. Generates one atlas.\n'
|
||||||
|
' * ABF (<= 300k faces): optimize space and stretch. Generates one atlas.',
|
||||||
|
value="Basic",
|
||||||
|
values=("Basic", "LSCM", "ABF"),
|
||||||
|
exclusive=True,
|
||||||
|
uid=[0],
|
||||||
|
),
|
||||||
|
desc.BoolParam(
|
||||||
|
name='fillHoles',
|
||||||
|
label='Fill Holes',
|
||||||
|
description='Fill Texture holes with plausible values',
|
||||||
|
value=False,
|
||||||
|
uid=[0],
|
||||||
|
),
|
||||||
|
desc.IntParam(
|
||||||
|
name='padding',
|
||||||
|
label='Padding',
|
||||||
|
description='''Texture edge padding size in pixel''',
|
||||||
|
value=15,
|
||||||
|
range=(0, 100, 1),
|
||||||
|
uid=[0],
|
||||||
|
),
|
||||||
desc.BoolParam(
|
desc.BoolParam(
|
||||||
name='flipNormals',
|
name='flipNormals',
|
||||||
label='Flip Normals',
|
label='Flip Normals',
|
||||||
|
@ -82,6 +100,7 @@ class Texturing(desc.CommandLineNode):
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
outputs = [
|
outputs = [
|
||||||
desc.File(
|
desc.File(
|
||||||
name='output',
|
name='output',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue