Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Compose scene around object using camlookat

조회 수: 1 (최근 30일)
Mehdi
Mehdi 2015년 5월 17일
마감: MATLAB Answer Bot 2021년 8월 20일
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개)

이 질문은 마감되었습니다.

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by