JohnK Posted July 7, 2018 Share Posted July 7, 2018 I was inspired by this topic to produce a bezier surface. The surface is not a mesh but a logical object that contains the data from which you can build the mesh using a ribbon. I restricted myself to a bicubic surface. Over the next weeks I will add some other methods and who know perhaps try to write a typescript version and PR it. This PG animates the surface by changing the control points, https://www.babylonjs-playground.com/#KT9EE7#1 In this PG you can move the control points (purple spheres) in the direction of the chosen axis. Click on a control to move the axes to that control, click on a cone to set the axis along which you move the control ( done by giving mesh behaviours a go) then drag the control https://www.babylonjs-playground.com/#KT9EE7#2 Work still in progress. have fun. NasimiAsl, Nabroski, The Leftover and 6 others 9 Quote Link to comment Share on other sites More sharing options...
3D for mortals Posted July 7, 2018 Share Posted July 7, 2018 ... keep the direction. It can be helpful for many users Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted July 8, 2018 Share Posted July 8, 2018 wonderful @JohnK ** move in z direction not worked for me JohnK 1 Quote Link to comment Share on other sites More sharing options...
JohnK Posted July 8, 2018 Author Share Posted July 8, 2018 1 hour ago, NasimiAsl said: ** move in z direction not worked for me Had a look and it seems to depend on viewing angle whether an axis works or not. I expect it has something to do with my incomplete understanding of using dragBehaviors After further reading and digesting what it said I have simplified the PG https://www.babylonjs-playground.com/#KT9EE7#3 NOTE: In new PG since no axis or plane is defined then ` Dragging will occur along the plane facing the camera `. Thank you for spurring me on to check again. NasimiAsl, Wingnut and jerome 3 Quote Link to comment Share on other sites More sharing options...
jerome Posted July 8, 2018 Share Posted July 8, 2018 excellent tool ? Quote Link to comment Share on other sites More sharing options...
Arte Posted July 8, 2018 Share Posted July 8, 2018 @JohnK Spheres not selectable If points underneath the mesh.` Quote Link to comment Share on other sites More sharing options...
JohnK Posted July 8, 2018 Author Share Posted July 8, 2018 53 minutes ago, Arte said: Spheres not selectable If points underneath the mesh.` If you change camera view so that mesh not in front of them you can select again. First time with dragging behavior. Probably much better ways to interact with controls but wanted to give new methods a go and get a quick demo up and running. Any improvements welcome. Working on multi surfaces at the moment. Quote Link to comment Share on other sites More sharing options...
The Leftover Posted July 9, 2018 Share Posted July 9, 2018 Pretty splendid! Quote Link to comment Share on other sites More sharing options...
Wingnut Posted July 11, 2018 Share Posted July 11, 2018 https://www.babylonjs-playground.com/#KT9EE7#5 I had some momentary thoughts about warped fun-house mirrors, distorting reflections in funny ways. But, that BABYLON.Plane in line 195... refuses to bend. Nice feature/meshmaker, JohnK! Thank you!!! The Leftover 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.