Pryme8 Posted June 21, 2018 Share Posted June 21, 2018 So if one was to extrude something that needs to make a 90 degree turn what would be the best method. want it to be like two 45 degree miter cuts that are joined. https://www.babylonjs-playground.com/#WGTQ6E#1 Quote Link to comment Share on other sites More sharing options...
JohnK Posted June 22, 2018 Share Posted June 22, 2018 Quite a difficult problem IMHO. Done something with mitering in 2D and 3D with rectangular cross section and with wall building http://doc.babylonjs.com/snippets/house_use Don't think it will be possible with ExtrudeShape in its current form. With a lot of thought using CreateRibbon might give something. Give it a bit of thought tomorrow. Maybe someone else will have more ideas. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted June 22, 2018 Author Share Posted June 22, 2018 Ok, creative thought time! stay tuned. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted June 22, 2018 Author Share Posted June 22, 2018 https://www.babylonjs-playground.com/#WGTQ6E#3 I think this would be a valid method, not done with it yet but might give you an idea. I need to just make sure I am pulling the correct points and this will work I bet! https://www.babylonjs-playground.com/#WGTQ6E#7 Yup, this will work, just need to finish some logic. **UPDATE** Needs some changes, to cover all basis... but here we go: https://www.babylonjs-playground.com/#WGTQ6E#8 JohnK 1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted June 22, 2018 Author Share Posted June 22, 2018 https://www.babylonjs-playground.com/#WGTQ6E#9 Solved... Now I need to figure out how to fix the shading. https://www.babylonjs-playground.com/#WGTQ6E#11 JohnK, Arte and GameMonetize 3 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted June 26, 2018 Author Share Posted June 26, 2018 https://www.babylonjs-playground.com/#ZDRAW1#1 So I improved the miter function a little, but now I want to really fix up some thing with it. Mainly dealing with the UV, gonna write up a custom shader to debug it seeing how the custom Standard material refuses to display UV data... 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.