Jump to content

[3.1] odd behaviour with spritesheet texture & UVs


aWeirdo
 Share

Recommended Posts

Well, like nothing was changed in the SPS code for ages (except a math bug fix for the parented cameras), this is weird... unless it's rather  related to some change in the StandardMaterial or the way updateVerticesData() deals with the UVs

Don't you have a simpler example isolating the bug ?

Link to comment
Share on other sites

Ok I know why :) 

with 3.1 we added a new features when running with webgl2: textures are not more forced to be power of 2. The image you are using for instance is a 750x250

 

So here is a way to force the engine to still require pow2 textures: https://www.babylonjs-playground.com/#WCDZS#58 (see line #27)

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