ua4192 Posted July 7, 2017 Share Posted July 7, 2017 Hi. I want to implement the typical Zoom Window feature available in CAD viewers but I don't know how to interact with canvas in order to perform this action. Is there anybody who had implemented this functionality? Is this possible? I want also to be able to add text layers to my scene in an interactive way and also be able to save this information for future loads of the same scene. Best regards Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 7, 2017 Share Posted July 7, 2017 Can you try to describe it using the PG? It's unclear to me what you try to achieve Quote Link to comment Share on other sites More sharing options...
ua4192 Posted July 8, 2017 Author Share Posted July 8, 2017 Hi. Unfortunately not. I don't how to start in BABYLONJS. But concerning the zoom window, the idea is very simple. I am trying to develop a web CAD viewer and as you can guess interact with objects shown in the canvas is a must. In order to implement the zoom window, my idea was to be able to interactively draw a rectangle based on mouse click on 2 different coordinates and be able to see this rectangle shown dynamically. If you have played with any CAD viewer solution you will understand what I mean. I know how to pick coordinates from canvas and my idea was to create a invisible box in order to focus zoom on it. Best regards Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 8, 2017 Share Posted July 8, 2017 By PG, I meant Playground.babylonjs.com That's the best place to experiment. You can start here and try to simulate your behavior. To draw a rectangle, it could be easy with doc.babylonjs.com/overviews/gui Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.