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,22 +407,31 @@ void CUDARender::_mesh(ftl::rgbd::Frame &out, const Eigen::Matrix4d &t, cudaStre ...@@ -407,22 +407,31 @@ void CUDARender::_mesh(ftl::rgbd::Frame &out, const Eigen::Matrix4d &t, cudaStre
value("normal_radius", 1), value("normal_smoothing", 0.02f), value("normal_radius", 1), value("normal_smoothing", 0.02f),
params_.camera, pose_.getFloat3x3(), poseInverse_.getFloat3x3(), stream_);*/ params_.camera, pose_.getFloat3x3(), poseInverse_.getFloat3x3(), stream_);*/
ftl::cuda::normals( float mls_smoothing = value("mls_smooth", 0.01f);
//temp_.createTexture<half4>(Channel::Normals), int mls_radius = value("mls_radius", 0);
out.createTexture<half4>(_getNormalsChannel()),
out.getTexture<float>(_getDepthChannel()),
params_.camera, stream_);
/*ftl::cuda::mls_smooth( if (mls_radius == 0) {
temp_.createTexture<half4>(Channel::Normals), ftl::cuda::normals(
out.createTexture<half4>(_getNormalsChannel()), out.createTexture<half4>(_getNormalsChannel()),
out.getTexture<float>(_getDepthChannel()), out.getTexture<float>(_getDepthChannel()),
//out.getTexture<float>(_getDepthChannel()), params_.camera, stream_);
value("mls_smooth", 0.01f), } else {
value("mls_radius", 2), ftl::cuda::normals(
params_.camera, temp_.createTexture<half4>(Channel::Normals),
stream_ out.getTexture<float>(_getDepthChannel()),
);*/ params_.camera, stream_);
ftl::cuda::mls_smooth(
temp_.createTexture<half4>(Channel::Normals),
out.createTexture<half4>(_getNormalsChannel()),
out.getTexture<float>(_getDepthChannel()),
//out.getTexture<float>(_getDepthChannel()),
value("mls_smooth", 0.01f),
value("mls_radius", 2),
params_.camera,
stream_
);
}
ftl::cuda::transform_normals( ftl::cuda::transform_normals(
out.createTexture<half4>(_getNormalsChannel()), out.createTexture<half4>(_getNormalsChannel()),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment