I added a few methods to three-orbit-controls to be able to manually define phi or theta and be able to rotate to a given point.
// rotation in Y
controls.setAzimuthalAngle(theta);
// rotation in X
controls.setPolarAngle(phi);
| 1) Clone and build WebKit | |
| git clone https://github.com/WebKit/WebKit.git WebKit | |
| cd WebKit | |
| Tools/Scripts/build-webkit -cmakeargs="-DENABLE_WEBGPU_BY_DEFAULT=1" --debug | |
| 2) Run your app | |
| __XPC_METAL_CAPTURE_ENABLED=1 Tools/Scripts/run-minibrowser --debug --url http://localhost:5000/index.html#/loaders/gsplat |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\Facades\View; | |
| use Illuminate\Support\ServiceProvider; | |
| use Illuminate\View\Factory as ViewFactory; | |
| class AppServiceProvider extends ServiceProvider | |
| { |
| import bpy | |
| myCurve = bpy.data.curves[0] # here your curve | |
| spline= myCurve.splines[0] # maybe you need a loop if more than 1 spline | |
| scale = 200 | |
| curvepath_template = """ | |
| var curves = new THREE.CurvePath(); | |
| %s |
I added a few methods to three-orbit-controls to be able to manually define phi or theta and be able to rotate to a given point.
// rotation in Y
controls.setAzimuthalAngle(theta);
// rotation in X
controls.setPolarAngle(phi);
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);