Imagine sketchfab with an infinite number of different models! I made a program that would generate all kinds of OBJ models, all kinds of placement of combinations of dots and meshes.
Now I have added a second version of the application where we could see any OBJ models with any number of vertices, and meshes from 1 to infinity. of the program where there is a level input field in which we can enter the number 1 to infinity, which will be proportional to the number of vertices and meshes.
This is a continuation of my theme on blenderartists
The probability that a gun-like structure will be generated is a difficult problem because it depends on many factors such as the number of vertices, the number of faces, the range of coordinates, etc.
However, we can try to estimate this probability using some approximate methods.
One way to assess this probability is to use the concept of “complexity” of the structure. The complexity of a structure can be defined as the number of different elements that make up it, such as vertices, faces, edges, etc.
A pistol is a relatively complex structure consisting of many elements, such as a barrel, handle, trigger, etc. Therefore, the probability that a structure resembling a pistol will be generated will be low if the number of vertices and faces is small.
Let’s look at the following assessment:
- The probability that a structure consisting of 10 vertices and 10 faces will be generated is approximately 10^(-10), since each vertex and each face have 10 possible locations.
- The probability that a structure consisting of 100 vertices and 100 faces will be generated is approximately 10^(-100), since each vertex and each face have 100 possible locations.
As you can see, the probability that a structure resembling a gun will be generated decreases rapidly with an increase in the number of vertices and faces.
However, this is only a rough estimate, and the real probability that a structure resembling a gun will be generated can be much higher if we take into account some features of generating random structures, such as symmetry, repetition, etc.
In general, the probability that a gun-like structure will be generated is very low, but not zero. This means that, although it is very unlikely, it is still possible that a gun-like structure will be generated if we generate a sufficiently large number of random structures.
=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/
In order to present the full scale, I made an online version ~> Endless sketchfab on Babylon.js (Version 0) | Babylon.js Playground.
Of course, you should not manually check the random connection of vertices and faces and click “try again” 125,386,365 times until you get an acceptable result… Let’s do an orderly generation instead of a chaotic one, where at least we’ll understand the logic… Here is the second online version of the infinite sketchfab ~> Endless sketchfab on Babylon.js (Version 1 - Ordered generation) | Babylon.js Playground.
Great, but now I need to add the ability to teleport so that I don’t have to fly for a billion years to the desired OBJ model… Let’s add such a possibility, here is the third version of the program where there is such an opportunity ~> Endless sketchfab on Babylon.js (Version 2 - With the ability to teleport) | Babylon.js Playground
But we do not take into account that there should be all possible OBJ models with all possible number of vertices and faces, that is, the chunk number should be proportional to the number of vertices and faces in the OBJ model! They must be so that OBJ models are not generated in height, but only along the X-coordinate axis, which is proportional to the placement and combination of vertices and faces without repetition on all possible coordinates, and also along the Z-axis coordinate, which is proportional to the increase of these vertices and faces! ~>
Endless sketchfab on Babylon.js (Version 3 - Serpentine paths) | Babylon.js Playground