Endless sketchfab

My github code.

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.

Запись_2024_12_10_05_38_57_797

Maybe someone will continue to implement my idea and come up with a better version of the program, but for now I must continue to move towards the realization of my universal mission…

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:

  1. 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.

  2. 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.

2 Likes

You can also press the R button to save the OBJ model to the desktop
Запись_2024_12_10_06_02_45_348

1 Like

Now I have added a second version of the program 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.

1 Like

I made the app (Endless sketchfab) now you can download it.

Now the only question is how to find the model we need, and therefore I added functionality so that when we click on the button, a window opens, and we can select the OBJ file so that we can find the exact version of the file by vertices and faces.
Запись_2024_12_16_01_48_26_844
github code

Ah yes, “we don’t look for easy ways” :grin:

Do you know the easier way!? :face_with_raised_eyebrow:

2 Likes

Now you can download the application via the link where did I add this change without SMS and registration of course… :hugs:

Sure. You push buttons until something shows up on a screen. No coding knowledge required!
They say you can write “War and Peace” this way. Eventually.

In order to present the full scale, I made an online version ~> Endless sketchfab on Babylon.js (Version 0) | Babylon.js Playground.

Do you know the easier way!? :face_with_raised_eyebrow:

Certainly not manually obversing a random connection of edges, and clicking “try again” 125,386,365 times until you get an acceptable result.

1 Like

Okay, 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.

Now you just need to understand the logic in which chunk to look for the right sequence of numbers to find the desired OBJ model…

This is interesting as an artistic experiment, it can even be justified with a metaphysical purpose like this , but “a gun-like structure”… :person_facepalming:

At least the typewriting monkeys search for a Shakespeare work.

If you refine your original idea this can become a good one.

1 Like

Yes, it’s not a problem at all, the logic is clear to us, we just need to calculate the number of permutations of the sequence of numbers without repetitions, and replacing them with duplicates will just turn out that the number will be too astronomically huge, but this is not any significant problem, since I can just consistently shift the logic of sequence generation, and from the desired interval of the sequence of permutations get the same the most generation sequences, just doing it for the sake of just one gun model is stupid, a much more interesting task would be to extract something meaningful from this endless ocean of chaos, and create an infinitely meaningful sketchfab, but here my ideas end, and I simply do not have such a goal…

Although if you are interested or really need it, you can try to find the OBJ model you need in this endless ocean of chaos with the help of my new version where you can teleport ~> Endless sketchfab on Babylon.js (Version 2 - With the ability to teleport) | Babylon.js Playground

image

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! Here is the corrected 3 version ~>
Endless sketchfab on Babylon.js (Version 3 - Serpentine paths) | Babylon.js Playground

A local version with input fields where the first field is the total number of vertices and faces, and the second field is the model number in this endless sketchfab library…

Endless sketchfab on Babylon.js (Version 4 - Local version with input fields for the model) | Babylon.js Playground

A local version with the auto-switch to the random model button.

Endless sketchfab on Babylon.js (Version 5 - With the auto-switch button) | Babylon.js Playground

I added the download model button, and solved all the other problems now it’s a FULL version.

Endless sketchfab on Babylon.js (Version 8 - FULL version) | Babylon.js Playground

Shouldn’t it be in the coding/scripting category?

It is already marked in the categories code, procedural, modeling.