Skip to content

Commit b44813b

Browse files
committed
matched resolutions of the Arnold shader and Houdini SOP
1 parent faf8050 commit b44813b

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

Plugins/Houdini/aaOceanSOP.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ static PRM_Name resolutionList[] =
5555
PRM_Name("5", "512x512"),
5656
PRM_Name("6", "1024x1024"),
5757
PRM_Name("7", "2048x2048"),
58+
PRM_Name("8", "4096x4096"),
5859
PRM_Name(0)
5960
};
6061
static PRM_ChoiceList resolutionListMenu(PRM_CHOICELIST_SINGLE, resolutionList);

Shaders/Arnold/aaOcean.mtd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ houdini.order STRING "folder1 "
1414
[attr resolution]
1515
houdini.type STRING "menu:single:menu"
1616
default STRING "256"
17-
houdini.menu STRING "256;256x256;512;512x512;1024;1024x1024;2048;2048x2048;4096;4096x4096"
18-
linkable BOOL true
17+
houdini.menu STRING "64;64x64;128;128x128;256;256x256;512;512x512;1024;1024x1024;2048;2048x2048;4096;4096x4096"
1918

2019
[attr spectrum]
2120
houdini.type STRING "menu:single:menu"

Shaders/Arnold/aaOceanArnoldShader.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,11 @@ node_update
143143

144144
float currentTime = AiNodeGetFlt(node, "time") + AiNodeGetFlt(node, "timeOffset");
145145

146-
int resolution = 4;
146+
int resolution = 2;
147147
AtString resUI = AiNodeGetStr(node, "resolution");
148-
if( resUI == AtString("256")) resolution = 4;
148+
if( resUI == AtString("64")) resolution = 2;
149+
else if(resUI == AtString("128")) resolution = 3;
150+
else if(resUI == AtString("256")) resolution = 4;
149151
else if(resUI == AtString("512")) resolution = 5;
150152
else if(resUI == AtString("1024")) resolution = 6;
151153
else if(resUI == AtString("2048")) resolution = 7;

0 commit comments

Comments
 (0)