Skip to content
Snippets Groups Projects

Implements #181 back facing cull

Merged Nicolas Pope requested to merge feature/181/backcull into master
3 files
+ 20
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -76,6 +76,7 @@ void Splatter::renderChannel(
@@ -76,6 +76,7 @@ void Splatter::renderChannel(
bool is_4chan = scene_->frames[0].get<GpuMat>(channel).type() == CV_32FC4;
bool is_4chan = scene_->frames[0].get<GpuMat>(channel).type() == CV_32FC4;
// Render each camera into virtual view
// Render each camera into virtual view
 
// TODO: Move out of renderChannel, this is a common step to all channels
for (size_t i=0; i < scene_->frames.size(); ++i) {
for (size_t i=0; i < scene_->frames.size(); ++i) {
auto &f = scene_->frames[i];
auto &f = scene_->frames[i];
auto *s = scene_->sources[i];
auto *s = scene_->sources[i];
@@ -87,6 +88,7 @@ void Splatter::renderChannel(
@@ -87,6 +88,7 @@ void Splatter::renderChannel(
ftl::cuda::dibr_merge(
ftl::cuda::dibr_merge(
f.createTexture<float4>(Channel::Points),
f.createTexture<float4>(Channel::Points),
 
f.createTexture<float4>(Channel::Normals),
temp_.getTexture<int>(Channel::Depth),
temp_.getTexture<int>(Channel::Depth),
params, stream
params, stream
);
);
Loading