Dad72 Posted January 25, 2014 Share Posted January 25, 2014 Hi, 1 - It may be a bug, but when I have two viewpoint, I can no longer click on the objects in the scene with scene.pick( ). as if the viewpoint 2 (mini-map) had covered the entirety of the canvas by over the scene. 2- It would be useful to have also the possibility of deleted a point of view of the scene. For exemple, I selected on camera 2 (with Gizmo), it shows me one points of view of this camera, if I selected a box, I deleted this point of view of the camera 2. But I have not succeeded in tested this, because the objects are no longer selectable as I pointed out in this post. Thank you Deltakosh Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 25, 2014 Share Posted January 25, 2014 Do you have an online sample? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 25, 2014 Author Share Posted January 25, 2014 I will create an example scene to reproduce the problem and send you ca in the evening or tomorrow. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 25, 2014 Author Share Posted January 25, 2014 Here are the examples. The 2 scenes on a scene.pick() with an alert() when you click on a box. The first scene is with the multi-views and if you click on a box, nothing this past.Scene 1 The next scene is exactly the same without the multi-view and if you click on a box, you will get the alert( 'Box selected: Ok').Scene 2 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 26, 2014 Share Posted January 26, 2014 I've just pushed a bug fix on github.Now the scene.pick has the following signature: BABYLON.Scene.prototype.pick = function (x, y, predicate, fastCheck, camera) { /// <summary>Launch a ray to try to pick a mesh in the scene</summary> /// <param name="x">X position on screen</param> /// <param name="y">Y position on screen</param> /// <param name="predicate">Predicate function used to determine eligible meshes. Can be set to null. In this case, a mesh must be enabled, visible and with isPickable set to true</param> /// <param name="fastCheck">Launch a fast check only using the bounding boxes. Can be set to null.</param> /// <param name="camera">camera to use for computing the picking ray. Can be set to null. In this case, the scene.activeCamera will be used</param> Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 26, 2014 Author Share Posted January 26, 2014 Yes that is fix, Thanks Deltakosh. However, this has added another problem, when I click on the scene, all the models and the terrain changed scale (* 1.75) on the X axis only. Try this scene. After the click of the scene, all changed scale. Teste pick and modele changed scale Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 27, 2014 Share Posted January 27, 2014 Fixed Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 27, 2014 Author Share Posted January 27, 2014 Is perfect. You're a genius . Thank you for your quick fixes and your great engine. 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.