diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-08-02 13:22:55 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-08-02 13:24:55 +0300 |
commit | 200212079dbadacbe9ddab6a2b5b5ee6824bf76c (patch) | |
tree | 0980124e65844a96bf65a95a7803bb1a804b628a /intern/opensubdiv | |
parent | 3a93314753cabe176bde1cdb084afa551323321b (diff) |
Subsurf: Better crease which represents sharp edges
Enabled infinite sharp patches for topology refiner and evaluator,
which allows to have sharp edge at first subdivision level.
Also tweaked crease export from Blender to OpenSubdiv to have more
artistic control over the whole 0..1 range.
Diffstat (limited to 'intern/opensubdiv')
-rw-r--r-- | intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc index 31e68492587..33df7a45e39 100644 --- a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc +++ b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc @@ -713,7 +713,7 @@ OpenSubdiv_EvaluatorInternal* openSubdiv_createEvaluatorInternal( if (is_adaptive) { TopologyRefiner::AdaptiveOptions options(level); options.considerFVarChannels = has_face_varying_data; - options.useInfSharpPatch = false; + options.useInfSharpPatch = true; refiner->RefineAdaptive(options); } else { TopologyRefiner::UniformOptions options(level); @@ -763,7 +763,7 @@ vector<const StencilTable*> all_face_varying_stencils; // subsurf code. PatchTableFactory::Options patch_options(level); patch_options.SetEndCapType(PatchTableFactory::Options::ENDCAP_BSPLINE_BASIS); - patch_options.useInfSharpPatch = false; + patch_options.useInfSharpPatch = true; patch_options.generateFVarTables = has_face_varying_data; patch_options.generateFVarLegacyLinearPatches = false; const PatchTable* patch_table = PatchTableFactory::Create( |