Skip to content

Commit 8b8fe38

Browse files
committed
Updating merge small islands with some options to remove fligs
1 parent 444ce9a commit 8b8fe38

File tree

8 files changed

+134
-32
lines changed

8 files changed

+134
-32
lines changed

otls/sop_autouv.hda/INDEX__SECTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ Inputs: 1 to 1
1010
Subnet: true
1111
Python: false
1212
Empty: false
13-
Modified: Wed Apr 4 13:53:38 2018
13+
Modified: Mon Apr 9 10:34:19 2018
1414

Binary file not shown.

otls/sop_autouv.hda/gamedev_8_8Sop_1sop__autouv/Contents.dir/Contents.mime

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,25 @@ Content-Type: text/plain
3232

3333
sopflags sopflags =
3434
comment ""
35-
position -10.2363 -1.54361
36-
connectornextid 1
35+
position -7.25123 -1.80451
36+
connectornextid 2
3737
flags = lock off model off template on footprint off xray off bypass off display on render on highlight off unload off savedata off compress on colordefault on exposed on
3838
outputsNamed3
3939
{
40+
1 "output1"
4041
}
4142
inputsNamed3
4243
{
43-
0 polyreduce1 1 1 "input1"
44+
0 divide1 1 1 "input1"
4445
}
4546
inputs
4647
{
47-
0 polyreduce1 0 1
48+
0 divide1 0 1
4849
}
4950
stat
5051
{
51-
create 1522863985
52-
modify 1522864415
52+
create 1523283401
53+
modify 1523284455
5354
author MAINGEAR@DESKTOP-P98C1VA
5455
access 0777
5556
}
@@ -1050,7 +1051,7 @@ inputs
10501051
stat
10511052
{
10521053
create 1522864009
1053-
modify 1522864401
1054+
modify 1523284343
10541055
author MAINGEAR@DESKTOP-P98C1VA
10551056
access 0777
10561057
}
@@ -1078,6 +1079,13 @@ Content-Type: text/plain
10781079
flags = 0
10791080
segment { length = 0 value = 1 1 expr = ch(\"../method2\") }
10801081
}
1082+
channel optimize_uv_border {
1083+
lefttype = extend
1084+
righttype = extend
1085+
default = 1
1086+
flags = 0
1087+
segment { length = 0 value = 1 1 expr = ch(\"../optimize_uv_border\") }
1088+
}
10811089
}
10821090

10831091
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
@@ -1089,6 +1097,7 @@ version 0.8
10891097
cutoff [ 8 locks=0 ] ( [ cutoff 0.01 ] )
10901098
method [ 8 locks=0 ] ( [ method 1 ] )
10911099
iterations [ 0 locks=0 ] ( 100 )
1100+
optimize_uv_border [ 0 locks=0 ] ( [ optimize_uv_border 1 ] )
10921101
}
10931102

10941103
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
@@ -2446,7 +2455,7 @@ sopflags sopflags =
24462455
comment ""
24472456
position 4.50269 -37.9919
24482457
connectornextid 1
2449-
flags = lock off model off template off footprint off xray off bypass off display on render on highlight off unload off savedata off compress on colordefault on exposed on
2458+
flags = lock off model off template on footprint off xray off bypass off display on render on highlight off unload off savedata off compress on colordefault on exposed on
24502459
outputsNamed3
24512460
{
24522461
}
@@ -2461,7 +2470,7 @@ inputs
24612470
stat
24622471
{
24632472
create 1503499999
2464-
modify 1522864062
2473+
modify 1523283775
24652474
author Luiz@Luiz-PC
24662475
access 0777
24672476
}
@@ -4220,7 +4229,7 @@ inputs
42204229
stat
42214230
{
42224231
create 1520213593
4223-
modify 1522864447
4232+
modify 1523284441
42244233
author Luiz@LAPTOP-LKBBB5D4
42254234
access 0777
42264235
}

otls/sop_autouv.hda/gamedev_8_8Sop_1sop__autouv/DialogScript

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@
128128
default { "0.01" }
129129
range { 0 0.5 }
130130
}
131+
parm {
132+
name "optimize_uv_border"
133+
label "Optimize UV Border"
134+
type toggle
135+
default { "on" }
136+
help "Attempts to remove triangles that are sticking to the side of the UV island. May cause small islands to reappear"
137+
parmtag { "autoscope" "0000000000000000" }
138+
}
131139
parm {
132140
name "method2"
133141
label "Flattening Method"

otls/sop_merge_small_islands.hda/INDEX__SECTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ Inputs: 1 to 1
1010
Subnet: true
1111
Python: false
1212
Empty: false
13-
Modified: Wed Apr 4 13:53:18 2018
13+
Modified: Mon Apr 9 10:32:20 2018
1414

otls/sop_merge_small_islands.hda/gamedev_8_8Sop_1sop__merge__small__islands/Contents.dir/Contents.mime

Lines changed: 95 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,24 @@ Content-Type: text/plain
3232

3333
sopflags sopflags =
3434
comment ""
35-
position 4.50269 -33.749
36-
connectornextid 2
35+
position -7.25123 -2.80451
36+
connectornextid 1
3737
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault on exposed on
3838
outputsNamed3
3939
{
40-
1 "output1"
4140
}
4241
inputsNamed3
4342
{
44-
0 foreach_begin7 1 1 "input1"
43+
0 sop_autouv1 1 1 "input1"
4544
}
4645
inputs
4746
{
48-
0 foreach_begin7 0 1
47+
0 sop_autouv1 0 1
4948
}
5049
stat
5150
{
52-
create 1522864009
53-
modify 1522864153
51+
create 1523282496
52+
modify 1523284257
5453
author MAINGEAR@DESKTOP-P98C1VA
5554
access 0777
5655
}
@@ -415,7 +414,7 @@ vex_matchattrib [ 0 locks=0 ] ( id )
415414
vex_inplace [ 0 locks=0 ] ( "off" )
416415
vex_selectiongroup [ 0 locks=0 ] ( "" )
417416
folder1 [ 0 locks=0 ] ( 0 0 )
418-
cutoff [ 0 locks=0 ] ( [ cutoff 0.01 ] )
417+
cutoff [ 0 locks=0 ] ( [ cutoff 0.0001 ] )
419418
}
420419

421420
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
@@ -878,7 +877,7 @@ Content-Type: text/plain
878877

879878
sopflags sopflags =
880879
comment ""
881-
position -3.0741 -14.4181
880+
position -0.313952 -14.5308
882881
connectornextid 2
883882
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault on exposed on
884883
outputsNamed3
@@ -896,7 +895,7 @@ inputs
896895
stat
897896
{
898897
create 1522694409
899-
modify 1522864341
898+
modify 1523282686
900899
author MAINGEAR@DESKTOP-P98C1VA
901900
access 0777
902901
}
@@ -1264,7 +1263,7 @@ inputs
12641263
stat
12651264
{
12661265
create 1508888423
1267-
modify 1522871490
1266+
modify 1523284275
12681267
12691268
access 0777
12701269
}
@@ -1625,7 +1624,7 @@ inputs
16251624
stat
16261625
{
16271626
create 1508888214
1628-
modify 1522889535
1627+
modify 1523284705
16291628
16301629
access 0777
16311630
}
@@ -1777,16 +1776,16 @@ outputsNamed3
17771776
}
17781777
inputsNamed3
17791778
{
1780-
0 repeat_end5 1 1 "input1"
1779+
0 switch1 1 1 "input1"
17811780
}
17821781
inputs
17831782
{
1784-
0 repeat_end5 0 1
1783+
0 switch1 0 1
17851784
}
17861785
stat
17871786
{
17881787
create 1508889412
1789-
modify 1522696334
1788+
modify 1523282675
17901789
17911790
access 0777
17921791
}
@@ -2352,7 +2351,7 @@ Content-Type: text/plain
23522351

23532352
sopflags sopflags =
23542353
comment ""
2355-
position -3.0741 -15.5476
2354+
position -0.313952 -15.6603
23562355
connectornextid 2
23572356
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault off exposed on
23582357
outputsNamed3
@@ -2370,7 +2369,7 @@ inputs
23702369
stat
23712370
{
23722371
create 1508888214
2373-
modify 1522696447
2372+
modify 1523282686
23742373
23752374
access 0777
23762375
}
@@ -2442,7 +2441,7 @@ Content-Type: text/plain
24422441

24432442
sopflags sopflags =
24442443
comment ""
2445-
position -3.0741 -13.2886
2444+
position -0.313952 -13.4013
24462445
connectornextid 2
24472446
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault off exposed on
24482447
outputsNamed3
@@ -2460,7 +2459,7 @@ inputs
24602459
stat
24612460
{
24622461
create 1508888214
2463-
modify 1522889935
2462+
modify 1523284707
24642463
24652464
access 0777
24662465
}
@@ -2492,6 +2491,81 @@ Content-Type: text/plain
24922491
}
24932492
}
24942493

2494+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
2495+
Content-Disposition: attachment; filename="hdaroot/switch1.init"
2496+
Content-Type: text/plain
2497+
2498+
type = switch
2499+
matchesdef = 0
2500+
2501+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
2502+
Content-Disposition: attachment; filename="hdaroot/switch1.def"
2503+
Content-Type: text/plain
2504+
2505+
sopflags sopflags =
2506+
comment ""
2507+
position -3.0757 -17.0492
2508+
connectornextid 3
2509+
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault on exposed on
2510+
outputsNamed3
2511+
{
2512+
1 "output1"
2513+
}
2514+
inputsNamed3
2515+
{
2516+
0 repeat_end4 1 1 "input1"
2517+
2 repeat_end5 1 1 "input2"
2518+
}
2519+
inputs
2520+
{
2521+
0 repeat_end4 0 1
2522+
1 repeat_end5 0 1
2523+
}
2524+
stat
2525+
{
2526+
create 1523282673
2527+
modify 1523282709
2528+
author MAINGEAR@DESKTOP-P98C1VA
2529+
access 0777
2530+
}
2531+
color UT_Color RGB 0.8 1 0.7
2532+
delscript ""
2533+
exprlanguage hscript
2534+
end
2535+
2536+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
2537+
Content-Disposition: attachment; filename="hdaroot/switch1.chn"
2538+
Content-Type: text/plain
2539+
2540+
{
2541+
channel input {
2542+
lefttype = extend
2543+
righttype = extend
2544+
flags = 0
2545+
segment { length = 0 expr = ch(\"../optimize_uv_border\") }
2546+
}
2547+
}
2548+
2549+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
2550+
Content-Disposition: attachment; filename="hdaroot/switch1.parm"
2551+
Content-Type: text/plain
2552+
2553+
{
2554+
version 0.8
2555+
input [ 8 locks=0 ] ( [ input 1 ] )
2556+
}
2557+
2558+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
2559+
Content-Disposition: attachment; filename="hdaroot/switch1.userdata"
2560+
Content-Type: text/plain
2561+
2562+
{
2563+
"___Version___":{
2564+
"type":"string",
2565+
"value":"16.5.412"
2566+
}
2567+
}
2568+
24952569
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
24962570
Content-Disposition: attachment; filename="hdaroot/__dot1.networkdotinit"
24972571
Content-Type: text/plain
@@ -2522,7 +2596,7 @@ Content-Type: text/plain
25222596
Content-Disposition: attachment; filename="hdaroot.order"
25232597
Content-Type: text/plain
25242598

2525-
24
2599+
25
25262600
attribwrangle7
25272601
reset_small_sides1
25282602
attribwrangle8
@@ -2547,6 +2621,7 @@ grouptransfer1
25472621
repeat_end5
25482622
repeat_begin5
25492623
attribwrangle2
2624+
switch1
25502625

25512626
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
25522627
Content-Disposition: attachment; filename="hdaroot.net"

otls/sop_merge_small_islands.hda/gamedev_8_8Sop_1sop__merge__small__islands/DialogScript

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
label "Cutoff"
2020
type float
2121
default { "0.0001" }
22+
help "Size threshold of the islands that will be merged back into larger pieces"
2223
range { 0 1 }
2324
parmtag { "autoscope" "0000000000000000" }
2425
}
@@ -27,6 +28,7 @@
2728
label "Flattening Method"
2829
type ordinal
2930
default { "abf" }
31+
help "Method for reflattening the islands based on the new seams"
3032
menu {
3133
"scp" "Spectral (SCP)"
3234
"abf" "Angle-Based (ABF)"
@@ -38,7 +40,15 @@
3840
label "Iterations"
3941
type integer
4042
default { "100" }
43+
help "Attempts at merging the islands together. Higher values produce smoother results"
4144
range { 0 10 }
4245
parmtag { "autoscope" "0000000000000000" }
4346
}
47+
parm {
48+
name "optimize_uv_border"
49+
label "Optimize UV Border"
50+
type toggle
51+
default { "1" }
52+
help "Attempts to remove triangles that are sticking to the side of the UV island. May cause small islands to reappear"
53+
}
4454
}

0 commit comments

Comments
 (0)