Skip to content
Snippets Groups Projects
Commit acea9050 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Fix for disabled colour correction in render

parent 16506503
Branches
No related tags found
1 merge request!316Resolves #343 GUI and Frame Refactor
......@@ -120,8 +120,8 @@ void CUDARender::_renderChannel(ftl::rgbd::Frame &output, ftl::codecs::Channel i
auto &f = scene_->frames[i].cast<ftl::rgbd::Frame>();
if (!f.hasChannel(in)) {
LOG(ERROR) << "Reprojecting unavailable channel";
return;
//LOG(ERROR) << "Reprojecting unavailable channel";
continue;
}
_adjustDepthThresholds(f.getLeftCamera());
......@@ -254,7 +254,7 @@ void CUDARender::_mesh(ftl::rgbd::Frame &out, const Eigen::Matrix4d &t, cudaStre
//auto *s = scene_->sources[i];
if (!f.has(Channel::Colour)) {
LOG(ERROR) << "Missing required channel";
//LOG(ERROR) << "Missing required channel";
continue;
}
......@@ -461,7 +461,6 @@ void CUDARender::_postprocessColours(ftl::rgbd::Frame &out) {
stream_
);
} else if (out.hasChannel(_getDepthChannel()) && out.hasChannel(out_chan_)) {
/* Texture has not been created properly
ftl::cuda::fix_bad_colour(
out.getTexture<float>(_getDepthChannel()),
out.getTexture<uchar4>(out_chan_),
......@@ -469,7 +468,7 @@ void CUDARender::_postprocessColours(ftl::rgbd::Frame &out) {
make_uchar4(255,0,0,0),
params_.camera,
stream_
);*/
);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment