Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Compose scene around object using camlookat
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello folks,
I have created three spheres in a GUI (without GUIDE) which are located far from each other as you see below:
[x1, y1, z1] = sphere(100);
hu1 = surface(x1 + dx1, y1 + dy1, z1 + dz1, 'FaceColor', 'b', 'EdgeColor','none');
[x2, y2, z2] = sphere(100);
hu2 = surface(x2 + dx2, y2 + dy2, z2 + dz2, 'FaceColor', 'g', 'EdgeColor','none');
[x3, y3, z3] = sphere(100);
hu3 = surface(x3 + dx3, y3 + dy3, z3 + dz3, 'FaceColor', 'r', 'EdgeColor','none');
I want to move to camera to compose a scene around one object so I have used this code:
camproj ('perspective')
camlookat(hu1)
but it doesn't move the camera. What am I missing? Thank you very much in advance.
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!