sable Posted November 5, 2018 Share Posted November 5, 2018 I was looking at the pg in the above post, and noticed that the near plane is positioned incorrectly. It seems that passing in a source plane to meshBuilder's createPlane function translates the plane in the wrong direction, and also rotates it so that it is facing the wrong way. For a plane with normal (0,0,1), and a point on the plane (0,0,10), meshBuilder will position the plane at (0,0,-10) and face it looking along the -ve Z axis. Example pg, with what I believe are fixes here. Quote Link to comment Share on other sites More sharing options...
bghgary Posted November 8, 2018 Share Posted November 8, 2018 @jerome Any ideas? Quote Link to comment Share on other sites More sharing options...
jerome Posted November 8, 2018 Share Posted November 8, 2018 no idea, sorry Quote Link to comment Share on other sites More sharing options...
Gijs Posted November 11, 2018 Share Posted November 11, 2018 No fix, but here's the playground with just the wrong plane and the original CreatePlane function in the top. May be helpful. https://www.babylonjs-playground.com/#E29R4J#7 sable 1 Quote Link to comment Share on other sites More sharing options...
bghgary Posted November 12, 2018 Share Posted November 12, 2018 @sable Your changes look correct to me. There might be a way to optimize it more, but it's probably good enough. Do you want to create a pull request? Quote Link to comment Share on other sites More sharing options...
sable Posted November 12, 2018 Author Share Posted November 12, 2018 Cool, done. https://github.com/BabylonJS/Babylon.js/pull/5500 Thanks @Gijs for that pg, made it easy to test. bghgary and Gijs 1 1 Quote Link to comment Share on other sites More sharing options...
Art for machine Posted January 11, 2019 Share Posted January 11, 2019 Lol, I just spent a looong time on this trying to figure out what I was doing wrong, thanks for the fix :) Quote Link to comment Share on other sites More sharing options...
Guest Posted January 11, 2019 Share Posted January 11, 2019 We moved to a new forum: forum.babylonjs.com Quote Link to comment Share on other sites More sharing options...
Art for machine Posted January 13, 2019 Share Posted January 13, 2019 Thanks. 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.