change sphere attributes through dat gui
Closed this issue · 1 comments
martinsiegrist commented
Hello, I've been playing around with your examples and had quite some progress however I'm wondering how I can change properties of let's say a sphere through a dat gui
I managed to change the sphere by scaling but I think I want to change the initial parameters of the sphere to have more control
here's a cube example I updated with scaling: http://mrtn.ch/3D/13_06_25_gui_02.html
and the sphere with the radius that doesn't work: http://mrtn.ch/3D/13_06_27_gui_03.html
I think you would know the solution...
thanks for your help
stemkoski commented
If you want to change the radius of the sphere, you will need to either multiply the scale vector by a constant, or recreate the sphere geometry from scratch.