Skip to content
Snippets Groups Projects
Commit 5edc9be4 authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

Merge branch 'master' into feature/121/vr

parents 859e22f8 051a8bdc
No related branches found
No related tags found
2 merge requests!139feature/vr,!138OpenVR support
This commit is part of merge request !138. Comments created here will be created in the context of that merge request.
...@@ -472,7 +472,7 @@ bool Splatter::render(ftl::rgbd::VirtualSource *src, ftl::rgbd::Frame &out) { ...@@ -472,7 +472,7 @@ bool Splatter::render(ftl::rgbd::VirtualSource *src, ftl::rgbd::Frame &out) {
out.get<GpuMat>(Channel::Right).setTo(background_, cvstream); out.get<GpuMat>(Channel::Right).setTo(background_, cvstream);
_dibr(stream_); // Need to re-dibr due to pose change _dibr(stream_); // Need to re-dibr due to pose change
_renderChannel(out, Channel::Right, Channel::Right, stream_); _renderChannel(out, Channel::Left, Channel::Right, stream_);
// renderFrame() expects to render right frame from left as well; Should // renderFrame() expects to render right frame from left as well; Should
// possibly add channel_in and channel_out parameters to renderFrame()? // possibly add channel_in and channel_out parameters to renderFrame()?
...@@ -484,6 +484,7 @@ bool Splatter::render(ftl::rgbd::VirtualSource *src, ftl::rgbd::Frame &out) { ...@@ -484,6 +484,7 @@ bool Splatter::render(ftl::rgbd::VirtualSource *src, ftl::rgbd::Frame &out) {
swap(tmp, out.get<GpuMat>(Channel::Right)); swap(tmp, out.get<GpuMat>(Channel::Right));
*/ */
_renderChannel(out, Channel::Left, Channel::Right, stream_);
} else if (chan != Channel::None) { } else if (chan != Channel::None) {
if (ftl::codecs::isFloatChannel(chan)) { if (ftl::codecs::isFloatChannel(chan)) {
out.create<GpuMat>(chan, Format<float>(camera.width, camera.height)); out.create<GpuMat>(chan, Format<float>(camera.width, camera.height));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment