Skip to content

Commit

Permalink
Minor UI and code tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
dictoon authored and usakhelo committed Oct 16, 2018
1 parent ddc03b0 commit 37d2d41
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ namespace

this->yscale = -this->devAspect * this->xscale;
}

this->antialias = false;
this->nearRange = 0.0f;
this->farRange = 0.0f;
Expand Down Expand Up @@ -357,7 +358,7 @@ void AppleseedRendererPBlockAccessor::Get(
break;

//
// Path-Tracer.
// Path Tracer.
//

case ParamIdEnableGI:
Expand Down Expand Up @@ -998,7 +999,7 @@ ParamBlockDesc2 g_param_block_desc(
p_accessor, &g_pblock_accessor,
p_end,

// --- Parameters specifications for Path-Tracer rollup ---
// --- Parameters specifications for Path Tracer rollup ---

ParamIdEnableGI, L"enable_global_illumination", TYPE_BOOL, P_TRANSIENT, 0,
p_ui, ParamMapIdPathTracer, TYPE_SINGLECHEKBOX, IDC_CHECK_GI,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ struct AppleseedRendererParamDlg::Impl
rend_params,
g_module,
MAKEINTRESOURCE(IDD_FORMVIEW_RENDERERPARAMS_PATH_TRACING),
L"Path-Tracing",
L"Path Tracing",
0);

m_pmap_postprocessing = CreateRParamMap2(
Expand Down
39 changes: 13 additions & 26 deletions src/appleseed-max-impl/appleseedrenderer/projectbuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1401,39 +1401,26 @@ namespace
{
switch (filter_type)
{
case 0:
return "blackman-harris";
case 1:
return "box";
case 2:
return "catmull";
case 3:
return "bspline";
case 4:
return "gaussian";
case 5:
return "lanczos";
case 6:
return "mitchell";
case 7:
return "triangle";
default:
return "box";
case 0: return "blackman-harris";
case 1: return "box";
case 2: return "catmull";
case 3: return "bspline";
case 4: return "gaussian";
case 5: return "lanczos";
case 6: return "mitchell";
case 7: return "triangle";
default: return "box";
}
}

const char* get_denoise_mode(const int denoise_mode)
{
switch (denoise_mode)
{
case 0:
return "off";
case 1:
return "on";
case 2:
return "write_outputs";
default:
return "off";
case 0: return "off";
case 1: return "on";
case 2: return "write_outputs";
default: return "off";
}
}

Expand Down
74 changes: 25 additions & 49 deletions src/appleseed-max-impl/appleseedrenderer/renderersettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,54 +122,30 @@ const char* get_shader_override_type(const int shader_override_type)
{
switch (shader_override_type)
{
case 0:
return "no_override";
case 1:
return "albedo";
case 2:
return "ambient_occlusion";
case 3:
return "assembly_instances";
case 4:
return "barycentric";
case 5:
return "bitangent";
case 6:
return "coverage";
case 7:
return "depth";
case 8:
return "facing_ratio";
case 9:
return "geometric_normal";
case 10:
return "materials";
case 11:
return "object_instances";
case 12:
return "original_shading_normal";
case 13:
return "primitives";
case 14:
return "ray_spread";
case 15:
return "regions";
case 16:
return "screen_space_wireframe";
case 17:
return "shading_normal";
case 18:
return "sides";
case 19:
return "tangent";
case 20:
return "uv";
case 21:
return "world_space_position";
case 22:
return "world_space_wireframe";
default:
return "coverage";
case 0: return "no_override";
case 1: return "albedo";
case 2: return "ambient_occlusion";
case 3: return "assembly_instances";
case 4: return "barycentric";
case 5: return "bitangent";
case 6: return "coverage";
case 7: return "depth";
case 8: return "facing_ratio";
case 9: return "geometric_normal";
case 10: return "materials";
case 11: return "object_instances";
case 12: return "original_shading_normal";
case 13: return "primitives";
case 14: return "ray_spread";
case 15: return "regions";
case 16: return "screen_space_wireframe";
case 17: return "shading_normal";
case 18: return "sides";
case 19: return "tangent";
case 20: return "uv";
case 21: return "world_space_position";
case 22: return "world_space_wireframe";
default: return "coverage";
}
}

Expand Down Expand Up @@ -337,7 +313,7 @@ bool RendererSettings::save(ISave* isave) const
isave->EndChunk();

//
// Path-Tracer settings.
// Path Tracer settings.
//

isave->BeginChunk(ChunkSettingsPathtracer);
Expand Down

0 comments on commit 37d2d41

Please sign in to comment.