agmcleod Posted November 16, 2017 Share Posted November 16, 2017 It seems to be okay in 3.1.0, but that's been giving me other problems, so im wondering if i can find a fix in 3.0.7. https://playground.babylonjs.com/indexstable#TZUQWM#1 Is there some other way I need to set the rotation? If it renders correctly, it looks like: In the playground in FF 37/dev edition on windows I'm seeing: Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 16, 2017 Share Posted November 16, 2017 That's interesting It seems to me like a failed calculation of the view matrix that happens, for some reason, in firefox. It was fixed in 3.1, but I can't find the actually lines that were added / changed to cause this. If anyone else knows, you might be able to get it fixed with 3.0.7, but I would simply recommend using 3.1.0-beta , as it is stable enough and will soon be released. Quote Link to comment Share on other sites More sharing options...
agmcleod Posted November 16, 2017 Author Share Posted November 16, 2017 So I tried setting the rotationQuaternion directly, and that seems to do it: https://playground.babylonjs.com/indexstable#TZUQWM#2 I did try using the beta, but you might also see my thread where I'm not seeing shadows in any browser, and particle effects not rendering over the shadow only material in Safari & Chrome. Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 16, 2017 Share Posted November 16, 2017 How did we get to browser incompatibility using a single canvas element beats me Quaternion is always your friend, I am happy it is resolved this way. Quote Link to comment Share on other sites More sharing options...
agmcleod Posted November 16, 2017 Author Share Posted November 16, 2017 Quote How did we get to browser incompatibility using a single canvas element beats me Graphics are hard! When I first saw this, I suspected some rogue transform rotate3d was on the loose or something. Just didn't suspect the rotation code would be off. I would think it would be the same across browsers... Matrix math isn't controversial. RaananW 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.