iodizer Posted March 23, 2016 Share Posted March 23, 2016 Is there a way to have picking work when the canvas used for rendering is has width and height less than 100% of the window (for example one can download the picking example from the playground and change the height and width to 50% to see it fail). I have seen questions similar to this but I could not see how to do it. One of them mentioned that there were some pointer offsets, and another that a different rendering engine was to be used. My goal is to make an interactive 3d window in one portion of the page and different plots and information on the rest of the page -- if there is a better way to do this I am happy to hear about it. Thanks! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 23, 2016 Share Posted March 23, 2016 This works with any size..The playground canvas is not 100% you have nothing to do actually. Only call engine.resize() when you change canvas' size Quote Link to comment Share on other sites More sharing options...
iodizer Posted March 25, 2016 Author Share Posted March 25, 2016 Thanks, I'm not sure what the problem was, but it works fine now, as you said! 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.