Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
campvis-public
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
CAMP
campvis-public
Commits
3a6c7c04
Commit
3a6c7c04
authored
Sep 23, 2014
by
Christian Schulte zu Berge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed SliceRenderProcessor computing wrong geometryModelMatrix for YZ_PLANE and XZ_PLANE.
parent
a66402ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
core/pipeline/slicerenderprocessor.cpp
core/pipeline/slicerenderprocessor.cpp
+3
-1
No files found.
core/pipeline/slicerenderprocessor.cpp
View file @
3a6c7c04
...
...
@@ -251,7 +251,7 @@ namespace campvis {
float
renderTargetRatio
=
static_cast
<
float
>
(
viewportSize
.
x
)
/
static_cast
<
float
>
(
viewportSize
.
y
);
_texCoordMatrix
=
tgt
::
mat4
::
zero
;
_geometryModelMatrix
=
tgt
::
mat4
::
identity
;
_geometryModelMatrix
=
tgt
::
mat4
::
zero
;
switch
(
p_sliceOrientation
.
getValue
())
{
case
XY_PLANE
:
// keep texture coordinates for x,y, shift z coordinates to slice value
...
...
@@ -261,6 +261,8 @@ namespace campvis {
_texCoordMatrix
.
t33
=
1.
f
;
_texCoordMatrix
.
t23
=
sliceTexCoord
.
z
;
_geometryModelMatrix
=
tgt
::
mat4
::
identity
;
// compute clip volume so that we only show the geometry at the current slice.
clip
=
(
-
2.
f
*
static_cast
<
float
>
(
p_zSliceNumber
.
getValue
())
/
imgSize
.
z
)
+
1.
f
;
_geometryProjectionMatrix
=
tgt
::
mat4
::
createOrtho
(
-
1.
f
,
1.
f
,
1.
f
,
-
1.
f
,
clip
-
(
.5
f
/
imgSize
.
z
),
clip
+
(
.5
f
/
imgSize
.
z
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment