Notice: If you are member of any public project or group, please make sure that your GitLab username is not the same as the LRZ identifier/Kennung (see https://gitlab.lrz.de/profile/account). Please change your username if necessary. For more information see the section "Public projects / Öffentliche Projekte" at https://doku.lrz.de/display/PUBLIC/GitLab . Thank you!

Commit a1a66467 authored by Jakob Weiss's avatar Jakob Weiss

Bugfix: EEP Generator now handles arbitrary volume transformations correctly,...

Bugfix: EEP Generator now handles arbitrary volume transformations correctly, but might have broken the mirroring feature

# Conflicts:
#	modules/vis/processors/volumeexplorer.cpp
parent 3048e738
......@@ -158,7 +158,7 @@ namespace campvis {
FramebufferActivationGuard fag(this);
decorateRenderProlog(data, _shader);
glEnable(GL_CULL_FACE);
glDisable(GL_CULL_FACE);
glEnable(GL_DEPTH_TEST);
// create entry points texture
......@@ -169,7 +169,7 @@ namespace campvis {
glDepthFunc(GL_LESS);
glClearDepth(1.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glCullFace(p_enableMirror.getValue() ? GL_FRONT : GL_BACK);
//glCullFace(p_enableMirror.getValue() ? GL_FRONT : GL_BACK);
clipped.render(GL_TRIANGLE_FAN);
RenderData* entrypoints = new RenderData(_fbo);
......@@ -188,7 +188,7 @@ namespace campvis {
glDepthFunc(GL_GREATER);
glClearDepth(0.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glCullFace(p_enableMirror.getValue() ? GL_BACK : GL_FRONT);
//glCullFace(p_enableMirror.getValue() ? GL_BACK : GL_FRONT);
clipped.render(GL_TRIANGLE_FAN);
RenderData* exitpoints = new RenderData(_fbo);
......
......@@ -53,6 +53,7 @@ namespace campvis {
, p_enableScribbling("EnableScribbling", "Enable Scribbling in Slice Views", false)
, p_seProperties("SliceExtractorProperties", "Slice Extractor Properties")
, p_vrProperties("VolumeRendererProperties", "Volume Renderer Properties")
, p_tcpProperties("CameraProviderProperties", "Camera Properties")
, _shader(nullptr)
, _quad(nullptr)
, _tcp(viewportSizeProp)
......@@ -99,6 +100,9 @@ namespace campvis {
_raycaster.p_outputImage.setVisible(false);
addProperty(p_vrProperties, VALID);
p_tcpProperties.addPropertyCollection(_tcp);
addProperty(p_tcpProperties);
p_inputVolume.addSharedProperty(&_tcp.p_image);
p_inputVolume.addSharedProperty(&_raycaster.p_inputVolume);
p_inputVolume.addSharedProperty(&_sliceRenderer->p_sourceImageID);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment