qqdarren Posted July 19, 2017 Share Posted July 19, 2017 We've just tried moving a site from 2.2 to 3.0. We're left with a couple of breakages that have me stumped, and that I cannot see mentioned in the change log. (UPDATE: managed to fix both while writing this message!!) 1. A sphere with a earth.jpg texture applied. The texture now looks like it is sideways... ah, just fixed this! I think this might have been a bug prior to 2.3, and I was working around it? I.e. it seems my earth.jpg was rotated sideways! Turning it to have North at the top half-fixed it. The other half of the fix was to add sphere.rotation.x = Math.PI; 2. See https://www.babylonjs-playground.com/#2S68ZN which is showing drawing text on to a dynamic texture, then using it as a particle. Compare with https://www.babylonjs-playground.com/indexstable#2S68ZN I.e. it looks like 3.1 is going to fix whatever the problem is? (I still thought I'd report it, in case this was an accidental fix!) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 19, 2017 Share Posted July 19, 2017 It was an intentional fix You did a pretty big jump regarding versions and I'm happy that things went relatively well Quote Link to comment Share on other sites More sharing options...
qqdarren Posted July 24, 2017 Author Share Posted July 24, 2017 I've got one machine where https://www.babylonjs-playground.com/#2S68ZN is not working. Nothing in the log; when I did a console.log(tc.textSize) I get 43, which sounds suspiciously low. I thought it might be something about fonts, but when I test on the old Babylon 2.2 version it is working (my real site, not the above playground, obviously). So, I have: 2.2: works everywhere 3.0: works nowhere 3.1-latest: works on fast Mint 18 with a GPU (firefox and chrome), works on a feeble-CPU Windows 7 no GPU (chrome), doesn't work on fairly fast Mint 17 with no GPU (two different users, both firefox and chrome tested) If anyone else has it not working, perhaps you could post? "Working" is you see the word "testing..." keep spewing out and going down through the ground. "Not working" is you just see the plane and nothing happens. Thanks! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 24, 2017 Share Posted July 24, 2017 Working on my gaming PC (win10 1080) and on my surface (i7 no GPU) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 24, 2017 Share Posted July 24, 2017 Ok I know why https://www.babylonjs-playground.com/indexstable#2S68ZN#4 with 3.1 we introduced support for webg2 non pow2 textures. THis is why it is working when webgl2 is supported The fix is easy: just create a pow2 texture (512 here) Quote Link to comment Share on other sites More sharing options...
qqdarren Posted July 24, 2017 Author Share Posted July 24, 2017 Brilliant, thanks. Changing 360 to 512 (in all 4 places) worked. BTW, also confirmed it works in Android 7 phone with all of firefox, chrome, opera, an Android 6.1 tablet (chrome), and an iPhone. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 24, 2017 Share Posted July 24, 2017 That's the power of TRUE cross platform 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.