Jump to content

Creating "tiled" map


Gugis
 Share

Recommended Posts

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. 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...