aWeirdo Posted July 31, 2017 Share Posted July 31, 2017 Hi, I'm not sure where the issue originates, but i'm seeing some odd stripes, like the sprite uv's are getting cropped. 3.0 (working normal)http://www.babylonjs-playground.com/indexstable#1ALQPZ#4 3.1 (cropped edges?)http://www.babylonjs-playground.com/index.html#1ALQPZ#4 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 31, 2017 Share Posted July 31, 2017 ping @jerome Quote Link to comment Share on other sites More sharing options...
jerome Posted August 1, 2017 Share Posted August 1, 2017 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 ? Quote Link to comment Share on other sites More sharing options...
jerome Posted August 1, 2017 Share Posted August 1, 2017 Let's isolate (what you should also do to focus on a bug) : https://www.babylonjs-playground.com/#WCDZS#56 Well.. it seems there's a problem, not with the SPS, but with the texture you want to create from your image ... Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 1, 2017 Share Posted August 1, 2017 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) jerome and aWeirdo 2 Quote Link to comment Share on other sites More sharing options...
jerome Posted August 2, 2017 Share Posted August 2, 2017 so (line 141), this becomes now this SPS : https://www.babylonjs-playground.com/index.html#1ALQPZ#27 thanks @Deltakosh aWeirdo 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.