jamessimo Posted November 14, 2018 Share Posted November 14, 2018 I am making a large game world like a tile map. The issue I have is my tile map is at least 250x250 tiles (could be 500x500) so if I use var grid = { 'h' : 250, 'w' : 250 }; var tiledGround = new BABYLON.MeshBuilder.CreateTiledGround("Tiled Ground", {xmin: -1, zmin: -1, xmax: 1, zmax: 1, subdivisions: grid}, scene); It crashes Babylonjs or runs at 1FPS if I am lucky However if I use var ground = BABYLON.MeshBuilder.CreateGround("gd", {width: 8000, height: 8000, subdivsions: 250}, scene); it runs just fine, so my plan was to make a ground mesh and loop through each quad or grid[x][y] and apply a material on it depending on what texture I need. Just to give you an idea of what I am doing, I am trying to make a 2d map viewer I made 3D https://jamessimo.itch.io/rimmap My question is how do I do this? I do not have a large single texture I can apply to the whole plane, the textures are applied depending on what a large json file tells it. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted November 14, 2018 Share Posted November 14, 2018 Hiya JS. I don't have solutions to your issues, yet... but I wanted to show you... https://doc.babylonjs.com/resources/offsite_tutorials_list#célian-garcia-kostar111-home-website-unknown Kostar111 isn't around much anymore, but he kept his tiled terrain map tutorials on-line, so there might be something to be learned, there, in his 3 links. I goofed around with some tiling and displaceMaps, once. https://www.babylonjs-playground.com/#1VGWP9#4 Not very exciting. :) Also, although I know almost NOTHING about multiMaterials, it might be worth a forum search and playground search. Here's a quick demo I found, laying along-side Babylon Blvd. https://www.babylonjs-playground.com/#1VGWP9#4 Stay tuned for more/better comments/answers. Dieterich 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted November 14, 2018 Share Posted November 14, 2018 You may also find the DynamicTerrain interesting: https://doc.babylonjs.com/extensions/dynamic_terrain Quote Link to comment Share on other sites More sharing options...
jerome Posted November 14, 2018 Share Posted November 14, 2018 please note that the documentation has just been updated with the last new feature here : https://github.com/BabylonJS/Extensions/blob/master/DynamicTerrain/documentation/dynamicTerrainDocumentation.md Quote Link to comment Share on other sites More sharing options...
JohnK Posted November 14, 2018 Share Posted November 14, 2018 1 hour ago, jerome said: please note that the documentation has just been updated with the last new feature Now PRed to Babylon.js Docs jerome 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted November 14, 2018 Share Posted November 14, 2018 merged Publication in progress jerome and JohnK 1 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.