Jump to content

Textures creases between contiguous meshes


Grunt
 Share

Recommended Posts

Hello,

I'm having issues with the rendering of 16 textures split across 16 segments of a sphere (as a work around the mobile 4k texture limit).

As you can see here : https://playground.babylonjs.com/#QMSP9E#1 the meshes create seams in between each sphere segments.

I can't seem to find a fix for that, do you guys have any clue ?

Here's a picture for reference

Screen Shot 2018-08-23 at 1.57.03 PM.png

Link to comment
Share on other sites

Hello this is expected and this is because of texture filtering. When reaching the border of every texture the system generate a seam. You need to play with UV to avoid this last pixel

Link to comment
Share on other sites

Thanks that worked :)

I didn't try to change the offset prior to this.

I had to tweak the numbers a bit to get a better pixel match between tiles:

mat.emissiveTexture.uScale = 0.998;
mat.emissiveTexture.vScale = 0.998;
mat.emissiveTexture.uOffset = 0.001;
mat.emissiveTexture.vOffset = 0.001;

(I changed my textures so I don't have to mirror them)

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...