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!