[Bf-blender-cvs] [1e01459b0a7] temp-lineart-contained: LineArt: view vector fix for ortho back face.

YimingWu noreply at git.blender.org
Sun Nov 7 15:41:34 CET 2021


Commit: 1e01459b0a7d3a82509a194d88e0fbd3038b1e54
Author: YimingWu
Date:   Sun Nov 7 14:10:55 2021 +0800
Branches: temp-lineart-contained
https://developer.blender.org/rB1e01459b0a7d3a82509a194d88e0fbd3038b1e54

LineArt: view vector fix for ortho back face.

===================================================================

M	release/datafiles/locale
M	release/scripts/addons
M	source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
M	source/tools

===================================================================

diff --git a/release/datafiles/locale b/release/datafiles/locale
index 8ee2942570f..78b4e0c9a51 160000
--- a/release/datafiles/locale
+++ b/release/datafiles/locale
@@ -1 +1 @@
-Subproject commit 8ee2942570f08d10484bb2328d0d1b0aaaa0367c
+Subproject commit 78b4e0c9a513650b961826aeeafc324487f5e1aa
diff --git a/release/scripts/addons b/release/scripts/addons
index 90a42907818..b3c179b2869 160000
--- a/release/scripts/addons
+++ b/release/scripts/addons
@@ -1 +1 @@
-Subproject commit 90a42907818ecf4010731043d3008c8355774cb8
+Subproject commit b3c179b2869d86c44a4b29e2c638ce2a596a820d
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
index 849c52638df..b734d658aae 100644
--- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
+++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
@@ -540,6 +540,10 @@ static void lineart_main_occlusion_begin(LineartRenderBuffer *rb)
   rb->floating.last = rb->floating.first;
   rb->light_contour.last = rb->light_contour.first;
 
+  /* This is needed because the occlusion function needs camera vector to be in the direction of
+   * point to camera. */
+  negate_v3_db(rb->view_vector);
+
   TaskPool *tp = BLI_task_pool_create(NULL, TASK_PRIORITY_HIGH);
 
   for (i = 0; i < thread_count; i++) {
@@ -3007,7 +3011,7 @@ static void lineart_triangle_intersect_in_bounding_area(LineartRenderBuffer *rb,
  */
 static void lineart_main_get_view_vector(LineartRenderBuffer *rb)
 {
-  float direction[3] = {0, 0, 1};
+  float direction[3] = {0, 0, -1};
   float trans[3];
   float inv[4][4];
   float obmat_no_scale[4][4];
diff --git a/source/tools b/source/tools
index 2e8c8792488..cc857792a49 160000
--- a/source/tools
+++ b/source/tools
@@ -1 +1 @@
-Subproject commit 2e8c879248822c8e500ed49d79acc605e5aa75b9
+Subproject commit cc857792a49b4b9cab51f185803cdecdaa10e6eb



More information about the Bf-blender-cvs mailing list