-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into task/2025_05_mixed_ele_umeshs
- Loading branch information
Showing
9 changed files
with
200 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
scripts/build_ascent/2024_07_02_vtkm-mr3246-raysubset_bugfix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
From 763f13306b719bf6a213d00ead13fc93433e942e Mon Sep 17 00:00:00 2001 | ||
From: Cyrus Harrison <[email protected]> | ||
Date: Tue, 2 Jul 2024 10:28:43 -0700 | ||
Subject: [PATCH] fix bug with ray subsetting using wrong near and far planes | ||
|
||
--- | ||
vtkm/rendering/raytracing/Camera.cxx | 12 ++++-------- | ||
1 file changed, 4 insertions(+), 8 deletions(-) | ||
|
||
diff --git a/vtkm/rendering/raytracing/Camera.cxx b/vtkm/rendering/raytracing/Camera.cxx | ||
index f2a39bef9..10febf39f 100644 | ||
--- a/vtkm/rendering/raytracing/Camera.cxx | ||
+++ b/vtkm/rendering/raytracing/Camera.cxx | ||
@@ -830,6 +830,7 @@ void Camera::FindSubset(const vtkm::Bounds& bounds) | ||
transformed[2] = (transformed[2] * 0.5f + 0.5f); | ||
zmin = vtkm::Min(zmin, transformed[2]); | ||
zmax = vtkm::Max(zmax, transformed[2]); | ||
+ // skip if outside near and far clipping | ||
if (transformed[2] < 0 || transformed[2] > 1) | ||
{ | ||
continue; | ||
@@ -894,15 +895,10 @@ VTKM_CONT void Camera::UpdateDimensions(Ray<Precision>& rays, | ||
this->CameraView.SetLookAt(this->GetLookAt()); | ||
this->CameraView.SetPosition(this->GetPosition()); | ||
this->CameraView.SetViewUp(this->GetUp()); | ||
- // | ||
- // Just create come clipping range, we ignore the zmax value in subsetting | ||
- // | ||
- vtkm::Float64 maxDim = vtkm::Max( | ||
- boundingBox.X.Max - boundingBox.X.Min, | ||
- vtkm::Max(boundingBox.Y.Max - boundingBox.Y.Min, boundingBox.Z.Max - boundingBox.Z.Min)); | ||
|
||
- maxDim *= 100; | ||
- this->CameraView.SetClippingRange(.0001, maxDim); | ||
+ // Note: | ||
+ // Use clipping range provided, the subsetting does take into consideration | ||
+ // the near and far clipping planes. | ||
|
||
//Update our ViewProjection matrix | ||
this->ViewProjectionMat = | ||
-- | ||
2.39.3 (Apple Git-145) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
scripts/uberenv_configs/packages/vtk-m/2024_07_02_vtkm-mr3246-raysubset_bugfix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
From 763f13306b719bf6a213d00ead13fc93433e942e Mon Sep 17 00:00:00 2001 | ||
From: Cyrus Harrison <[email protected]> | ||
Date: Tue, 2 Jul 2024 10:28:43 -0700 | ||
Subject: [PATCH] fix bug with ray subsetting using wrong near and far planes | ||
|
||
--- | ||
vtkm/rendering/raytracing/Camera.cxx | 12 ++++-------- | ||
1 file changed, 4 insertions(+), 8 deletions(-) | ||
|
||
diff --git a/vtkm/rendering/raytracing/Camera.cxx b/vtkm/rendering/raytracing/Camera.cxx | ||
index f2a39bef9..10febf39f 100644 | ||
--- a/vtkm/rendering/raytracing/Camera.cxx | ||
+++ b/vtkm/rendering/raytracing/Camera.cxx | ||
@@ -830,6 +830,7 @@ void Camera::FindSubset(const vtkm::Bounds& bounds) | ||
transformed[2] = (transformed[2] * 0.5f + 0.5f); | ||
zmin = vtkm::Min(zmin, transformed[2]); | ||
zmax = vtkm::Max(zmax, transformed[2]); | ||
+ // skip if outside near and far clipping | ||
if (transformed[2] < 0 || transformed[2] > 1) | ||
{ | ||
continue; | ||
@@ -894,15 +895,10 @@ VTKM_CONT void Camera::UpdateDimensions(Ray<Precision>& rays, | ||
this->CameraView.SetLookAt(this->GetLookAt()); | ||
this->CameraView.SetPosition(this->GetPosition()); | ||
this->CameraView.SetViewUp(this->GetUp()); | ||
- // | ||
- // Just create come clipping range, we ignore the zmax value in subsetting | ||
- // | ||
- vtkm::Float64 maxDim = vtkm::Max( | ||
- boundingBox.X.Max - boundingBox.X.Min, | ||
- vtkm::Max(boundingBox.Y.Max - boundingBox.Y.Min, boundingBox.Z.Max - boundingBox.Z.Min)); | ||
|
||
- maxDim *= 100; | ||
- this->CameraView.SetClippingRange(.0001, maxDim); | ||
+ // Note: | ||
+ // Use clipping range provided, the subsetting does take into consideration | ||
+ // the near and far clipping planes. | ||
|
||
//Update our ViewProjection matrix | ||
this->ViewProjectionMat = | ||
-- | ||
2.39.3 (Apple Git-145) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters