Gugis Posted October 9, 2015 Share Posted October 9, 2015 What I want to do is to create map from prepared 3d "tiles". Problem is that there's seams visible between tiles. Is there any trick to make it look like it's seamless? Up close (no seams)http://pasteboard.co/1fLQxUan.png Zoomed out (seams between road tiles)http://pasteboard.co/1fMmnoTQ.png Scene is made in Blender Quote Link to comment Share on other sites More sharing options...
reddozen Posted October 9, 2015 Share Posted October 9, 2015 Easiest way would probably be to merge your tiles in babylon. Quote Link to comment Share on other sites More sharing options...
Gugis Posted October 9, 2015 Author Share Posted October 9, 2015 Easiest way would probably be to merge your tiles in babylon.I've merged tiles with this function https://github.com/BabylonJS/Babylon.js/wiki/How-to-merge-meshesUnfortunately this has not solved my problem Quote Link to comment Share on other sites More sharing options...
Wingnut Posted October 9, 2015 Share Posted October 9, 2015 Hi Gugis and Reddozen... good to see you guys again. Gugis... maybe something here... or here or in http://www.html5gamedevs.com/topic/7784-need-advices-about-a-new-vertexdatacreatetiledground-function/ will help you out. Those two playground links are in http://doc.babylonjs.com/tutorials/02._Discover_Basic_Elements ... in the tiled ground section. Kostar has done some work in these things... http://kostar111.github.io/TiledGroundBJS/map/ ... taking particular notice of... ---------------Important Map Trick : When we want to create a map, we have to set the properties wrapU and wrapV of each texture like it : material.diffuseTexture.wrapU = BABYLON.Texture.CLAMP_ADDRESSMODE;material.diffuseTexture.wrapV = BABYLON.Texture.CLAMP_ADDRESSMODE; It avoids some undesirable gaps between textures. (loose quote)--------------- (wrapU and wrapV are part of the baseTexture class, and 7 other fun "texture-orienting" things are found on the Texture class.) Generally speaking, this subject has been talked-about on the forum quite often. Visit our bootleg search site and search for "tiles"...for a good collection of links. These things I speak-of... are texture-based things. If you are having problems getting the mesh of the tiles positioned, then reddozen's solution/direction... is very pertinent. I'm not experienced in subMeshes and mesh merges... but he is. Reddozen is one of my heroes. Hope this helps... keep us posted. The Leftover 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.