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

Disable MLS smooth of render by default

parent c05127be
No related branches found
No related tags found
1 merge request!354Add full 3D MLS and carving
Pipeline #33496 failed
......@@ -407,13 +407,21 @@ void CUDARender::_mesh(ftl::rgbd::Frame &out, const Eigen::Matrix4d &t, cudaStre
value("normal_radius", 1), value("normal_smoothing", 0.02f),
params_.camera, pose_.getFloat3x3(), poseInverse_.getFloat3x3(), stream_);*/
float mls_smoothing = value("mls_smooth", 0.01f);
int mls_radius = value("mls_radius", 0);
if (mls_radius == 0) {
ftl::cuda::normals(
//temp_.createTexture<half4>(Channel::Normals),
out.createTexture<half4>(_getNormalsChannel()),
out.getTexture<float>(_getDepthChannel()),
params_.camera, stream_);
} else {
ftl::cuda::normals(
temp_.createTexture<half4>(Channel::Normals),
out.getTexture<float>(_getDepthChannel()),
params_.camera, stream_);
/*ftl::cuda::mls_smooth(
ftl::cuda::mls_smooth(
temp_.createTexture<half4>(Channel::Normals),
out.createTexture<half4>(_getNormalsChannel()),
out.getTexture<float>(_getDepthChannel()),
......@@ -422,7 +430,8 @@ void CUDARender::_mesh(ftl::rgbd::Frame &out, const Eigen::Matrix4d &t, cudaStre
value("mls_radius", 2),
params_.camera,
stream_
);*/
);
}
ftl::cuda::transform_normals(
out.createTexture<half4>(_getNormalsChannel()),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment