DylanD Posted July 25, 2018 Share Posted July 25, 2018 Hello everyone, I am try to make a wall of meshes that go from one end of the screen to the other end of the screen, however If I use a different screen than what I developed it on the screen extends past the wall of meshes. So my question Is how can I keep the wall all the way across the screen without decreasing the screen size. To be more clear I am looking for a way to spawn meshes in a loop until they are just past the edge of the see able area. https://www.babylonjs-playground.com/index.html#2IFRKC#29 In this playground I made, I have a loop that creates cubes until they're off screen, at least when the screen is short(width wise). How could I change it so it would always go off screen even if the canvas was any size? Any ideas? Quote Link to comment Share on other sites More sharing options...
brianzinn Posted July 25, 2018 Share Posted July 25, 2018 frustum is your friend: https://playground.babylonjs.com/#050P3M DylanD 1 Quote Link to comment Share on other sites More sharing options...
DylanD Posted July 26, 2018 Author Share Posted July 26, 2018 16 hours ago, brianzinn said: frustum is your friend: https://playground.babylonjs.com/#050P3M Thanks! 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.