Layering SortMethod for 3D Plotting
显示 更早的评论
Hello,
I'm rendering 3D point clouds on to the screen, and attempting to overlay feature points in Matlab R2014b. I end up with the following:
h = showPointCloud(pc(:,:,[1:3]), pc(:,:,[4:6]));
hold on;
plot3(m(1,:),m(2,:),m(3,:),'o','MarkerSize',8,'Color',[0 0 0],'MarkerFaceColor',[1 1 0]); % display 3D plot
hold off;
h.SortMethod = 'depth'; % or alternatively 'childorder'
When I use 'depth' I see the point cloud well, but the yellow markers get embedded.

When I use 'childorder' the depth order for the point cloud becomes buggy (notice how the Mickey doll is partially behind the monitor).

Other attempts:
- It doesn't look like axes can be parented;
- uistack seems to apply to GUI controls;
- and I'm not sure if projecting the yellow markers to 2D would handle live updating on scene rotation
Thoughts? Thanks in advance!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Graphics Performance 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!