Temechon Posted October 3, 2014 Share Posted October 3, 2014 Hello Babylon users ! In my project, I have 2 FreeCameras (one main, and one small which works as a minimap).Is it possible to exclude a mesh for a specific camera ? I would like to draw my player as a red sphere for the minimap, and as a green box (for example) for my main camera.I know there is a similar system for lights... Thank you for your help Cheers Quote Link to comment Share on other sites More sharing options...
reddozen Posted October 3, 2014 Share Posted October 3, 2014 Mini maps are typically calculated locations on a flat image map. Would be less resources for sure. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 3, 2014 Share Posted October 3, 2014 Sure you can just define a value for mesh.layer Mask where mesh.layerMask & this.activeCamera.layerMask == 0 With babylon.js, sky is the limit Quote Link to comment Share on other sites More sharing options...
joshcamas Posted October 3, 2014 Share Posted October 3, 2014 <3 Quote Link to comment Share on other sites More sharing options...
Temechon Posted October 4, 2014 Author Share Posted October 4, 2014 Aaaand it works ! Thanks guys ! 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.