Gerente Posted August 3, 2015 Share Posted August 3, 2015 In the following PG the Minimap camera stay always under the Main Camera. If I switch the order how the cameras are added in the active cameras (line 30 <-> 31) the minimap appears over the main camera BUT the ONMOUSEOVER stop working (mouse over the red sphere) http://www.babylonjs-playground.com/#10VU59 Can the Mouse events work in both camera? What for are there lines? mm.renderingGroupId = 1;mm.layerMask = 1; Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 3, 2015 Share Posted August 3, 2015 Unfortunately no, the action system has to use a specific camera You have to handle the second one by yourself Quote Link to comment Share on other sites More sharing options...
Gerente Posted August 4, 2015 Author Share Posted August 4, 2015 Unfortunately no, the action system has to use a specific camera You have to handle the second one by yourself Ok, but how to I put the Minimap in front in the Main camera but being able to use the action system in the main camera? Quote Link to comment Share on other sites More sharing options...
iiceman Posted August 4, 2015 Share Posted August 4, 2015 Have you seens this tutorial: http://pixelcodr.com/tutos/shooter/shooter.html ?It uses that mini map thing, too. Hope that helps Quote Link to comment Share on other sites More sharing options...
Gerente Posted August 4, 2015 Author Share Posted August 4, 2015 Have you seens this tutorial: http://pixelcodr.com/tutos/shooter/shooter.html ?It uses that mini map thing, too. Hope that helps Thanks but there is mouseover in that tutorial :/ Quote Link to comment Share on other sites More sharing options...
iiceman Posted August 4, 2015 Share Posted August 4, 2015 I see. I went trough the source code a bit and found this:scene.cameraToUseForPointersSeems to work http://www.babylonjs-playground.com/#10VU59#1 Gerente, smatt and Boz 3 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.