brean Posted October 26, 2018 Share Posted October 26, 2018 Hi everyone! Thank you all for your great work! working with Babylon is a lot of fun! I am working on a visualization of some buildings (based on osmbildings.org ) for babylon.js. It works quite well, and I managed to create a camera that is panning on my map instead of rotating around an object when using a pointing device (mouse). I disabed the camera/input system of babylon completely and listen to pointer events from the browser. I think that that's very ugly and I would like to see this integrated into Babylon. I am not so familar with TypeScript and I am not sure I understand everything of the babylon input behaviour. Here is my code: https://www.babylonjs-playground.com/#LRMBBI Use the mouse to move the camera as well as the mouse wheel to zoom in. Note that zooming in should move to the mouse cursor but it is a bit off. It would be awesome if someone could help me to integrate this into the Babylon codebase. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 26, 2018 Share Posted October 26, 2018 Is it a paid service that you are looking for? Else you are not in the right subforum Quote Link to comment Share on other sites More sharing options...
brean Posted October 27, 2018 Author Share Posted October 27, 2018 No, it is not paied. Should I ask this again in Q&A and close/delete this topic? Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted October 28, 2018 Share Posted October 28, 2018 Why not use arcRotateCamera and set panning without ctrl and button 0 ? Quote Link to comment Share on other sites More sharing options...
brean Posted October 29, 2018 Author Share Posted October 29, 2018 16 hours ago, aWeirdo said: Why not use arcRotateCamera and set panning without ctrl and button 0 ? Good suggestion but I noticed that the panning of the ArcRotateCamera is not constant with the mouse movement and it always zooms to the center, not to the mouse cursor. If both points can be implemented with the existing camera I would actually prefer use it instead of creating something new. I also don't know how to extend the existing input behavior to do that, so I assume I need a new camera and/or input. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 29, 2018 Share Posted October 29, 2018 You should ask questions in Q&A Quote Link to comment Share on other sites More sharing options...
brean Posted November 15, 2018 Author Share Posted November 15, 2018 This is perfect, thanks to @sable ! I like to close and/or delete this request, but I don't have the moderator rights to do so. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 15, 2018 Share Posted November 15, 2018 This is fine no worry Quote Link to comment Share on other sites More sharing options...
Wingnut Posted November 15, 2018 Share Posted November 15, 2018 @Deltakosh This sub-forum is still mis-named a bit, isn't it? (Feel free to ignore this comment, Brean. Or comment, if you wish.) hmm. "Hired Help"? Unfortunately, "Hired Help" or "Hired Guns" doesn't imply that it's BOTH shoes, buyer and seller. - Could be experts, looking for work. - Could be non-experts, looking for expert help. - Could be experts looking for more experts. - Could be noobs looking to hire other noobs, but unlikely. I was the one that whined about using the word "business", but... I dunno. It might need to come back. hmm. Anyone remember where the thread is at... where we talked about naming this sub-forum? I should probably take my worthless yammering... there. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 16, 2018 Share Posted November 16, 2018 Let me just move this thread in the right sub forum 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.