Camera and LookAt controll #1385
-
hi i need to control camera for example rotate camera move camera and do every work can done with camera but i have a problem. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
I can't give you an answer as I am not able to understand your needs based on what you have written. I'm struck having to ask you questions to find out the proper context of your needs. What type of application do you have? What range of views and how do you want to control them? |
Beta Was this translation helpful? Give feedback.
-
Hi Hasan,
You can use Trackball::setViewpoint() to position the camera however you
want
/// set the LookAt viewport to the specified lookAt, animating the
movements from the current lookAt to the new one.
/// A value of 0.0 instantly moves the lookAt to the new value.
void setViewpoint(ref_ptr<LookAt> lookAt, double duration = 1.0);
You can also derive your own Trackball class from vsg::Trackball. From
there you can expose the _lookAt class or write your own camera
manipulation methods.
Roland Hill
Director
Four Winds Technology Pty Ltd
Spatial Integration <https://www.spatialintegration.com/>
…On Mon, 3 Feb 2025 at 23:36, hasan ***@***.***> wrote:
hi i need to control camera for example rotate camera move camera and do
every work can done with camera but i have a problem.
to control camera i use of vsd::lookat class i can move camera by eye but
to rotate camera i have problem.
there are a rotate function in vsg::Trackball class but this function
rotate earth not camera.
for example you thing is on the ground and want to see sky so i can not do
this work. or you are under an airplane and want to see ground of airplane
so you can see earth but no of airplane.
—
Reply to this email directly, view it on GitHub
<#1385>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPOEQY76KBTBKINAEQRIFD2N5PEVAVCNFSM6AAAAABWMAAYFOVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXHEYTAMJZGI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
I can't give you an answer as I am not able to understand your needs based on what you have written. I'm struck having to ask you questions to find out the proper context of your needs.
What type of application do you have?
What range of views and how do you want to control them?