Pryme8 Posted July 3, 2017 Share Posted July 3, 2017 Has anyone made a way to display the location of a secondary camera in the scene as some sort of icon, along with draw its current frustum? If not no biggie, ill get to it here soon but it will save me quite a bit of time is someone has tackled this already! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 3, 2017 Share Posted July 3, 2017 It is done by the editor: https://github.com/BabylonJS/Editor Ping @Luaacro for more info Pryme8 and julien-moreau 2 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted July 3, 2017 Author Share Posted July 3, 2017 I do not see the ability to add a second camera, so I do not think the widgets/helpers are active for that in the manor that I was thinking! @Luaacro might know better though. julien-moreau 1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted July 5, 2017 Author Share Posted July 5, 2017 @Deltakosh I am able to make an icon like I want but when I try to get the frustum information http://www.babylonjs-playground.com/#06F0JB it returns all blank data as far as I can see. Perhaps I am calling it incorrectly? Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted July 5, 2017 Share Posted July 5, 2017 Hi @Pryme8 ! just saw the notifications, you can see this file: https://github.com/BabylonJS/Editor/blob/master/website/sources/babylon.editor.sceneHelpers.ts take a look at createHelpers() and onPostUpdate() this shows how I render all the icons with only one material and only one plane Pryme8 1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted July 5, 2017 Author Share Posted July 5, 2017 yeah that is perfect, now I need to display the frustum. Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted July 8, 2017 Share Posted July 8, 2017 I can try and give a solution i come back with a solution asap! Pryme8 1 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.