Hey guys,
I was looking for some 3D-Rock-Models for another project, but quickly found out that I need a lot of them,
so I was wondering if it’s possible to generate them procedural and export the .obj files
Here is a small scratch:
https://playground.babylonjs.com/#345DWH#3
The result is quite bad, probably because of my lack of skills in geometry and 3D-Graphics
So maybe some of you guys could point me in the right direction here?
How I do it:
- Create a Sphere-Mesh with Random diameters
- use the forceSharedVertices()-method to prevent seams (due the next step)
- add some noise to the vertices
- add a displacementMap which uses the “distortion.png” from our PG-assets
An other nice web-gl example which works way better then mine (still not perfect imho) can be found here:
http://erkaman.github.io/gl-rock/example/index1.html
Maybe the project is too ambitious for me…will be hard to get a variety of rocks like in these examples:
Your thoughts and help are appreciated