Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Zoom functionality #3

Open
edwinbenavente opened this issue Jul 8, 2016 · 4 comments
Open

Zoom functionality #3

edwinbenavente opened this issue Jul 8, 2016 · 4 comments

Comments

@edwinbenavente
Copy link

I have checked the api and it worked great, just the thing with the mobile that someone else already reported.
It would be really nice to have the zoom in and out functionality, I've seen it in other components and I dont know if it is possible to have it here.

@AdaRoseCannon
Copy link
Contributor

Please checkout https://github.com/ftlabs/o-three-sixty it supports zooming
via a field of view parameter.

Here are some demos:
https://registry.origami.ft.com/components/[email protected]

And an example usage http://jsbin.com/kitumilixe/edit?html,output

On 8 July 2016 at 15:46, edwinbenavente [email protected] wrote:

I have checked the api and it worked great, just the thing with the mobile
that someone else already reported.
It would be really nice to have the zoom in and out functionality, I've
seen it in other components and I dont know if it is possible to have it
here.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#3, or mute the thread
https://github.com/notifications/unsubscribe/AEB5MglUZKGj6IMj7BQYFg3XB8ZyTBXOks5qTmKsgaJpZM4JIGU6
.

@edwinbenavente
Copy link
Author

Thanks!, I'll try it, but I dont know if I explained correctly about the zoom, I meant zoom in the mousewheel event.

@AdaRoseCannon
Copy link
Contributor

AdaRoseCannon commented Jul 8, 2016

Ah I see, dynamically adjusting the fov should not be hard. I'll consider adding it in the next lot of work.

@AdaRoseCannon
Copy link
Contributor

AdaRoseCannon commented Jul 8, 2016

To do this oneself, one could update myThreeSixty.fov on mousewheel as this will be updated each frame and camera's projection matrix gets recalculated based on this per frame.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants