📜 ⬆️ ⬇️

Dive into the Depth: how to fit reality into a small box

Hello! This is the second article in which I would like to tell in more detail and show our view on the process of creating the game, what we are doing now. So ... Immersion continues ...

image

And I would like to start with the basics, as you know, the foundation is the most important thing in building a house. So relax from the code while we are focusing on the drawings and plans for the future structure :)

The foundation of the project that we are doing is to create a certain “Database of Views”, as I call it, or if it is simpler, then a database of objects and interactions between them.
')
From my point of view, it is logical to begin with this, but so far, with the exception of a few projects, no one is trying to do it, as deep as we want. And we want, roughly speaking, to transfer a database of images, objects and interactions from our reality into that very small box called a computer. Sounds schizophrenic? Yes, it is only at first glance! :)

Thoughts about the impossibility of implementing such a large-scale project, in fact lie in the limitations of our thinking, fear of starting to do something that no one else has done and a little bit in the limitations of the available computer resources at the moment, the last, fortunately, is solved.

To those who immediately reject at the root the possibility of implementing such a project, I would suggest reading further just like a fairy tale, there everything is possible. The rest I suggest to delve into the pictures as deeply as possible, because in our opinion, we as humans, or rather, our brain is exactly the way it is, as we are trying to do, and the reality is drawn on the basis of the constantly updated database of images, logical chains and ideas about everything around that we managed to accumulate and unpack, turning these ideas into "our own experience." And, accordingly, if we want to make such a digitized copy of the device of our reality inside a computer (as far as possible), we need to build on how we work, and for this we will have to dig a little deeper than usual.

image

The image represents, only very approximately, a separate composite object in the database and a multitude of direct and indirect interactions formed between the objects.

image

As the database of objects and interactions is filled, configurations that are similar by certain criteria form certain “conglomerates,” so that fish living in water and dew drops formed during the process of condensation of water vapor form a conglomerate: Water element. This is all just for an example, well, a little for reflection.

image

Then we will talk about why such a database of objects and their interactions is compiled, and how to work with it all.

In general, the database itself is an “array of arrays in an array,” and globally, so far divided into two areas:

1) Objects;
2) Actions.

Or you can still say - on nouns and verbs - the one who does and on the process that is being performed.

As I said, all the subjects of the database are of a composite nature, i.e. Despite all the complexity and illusory integrity, they can be broken down into smaller components (with the exception of some of the most fundamental manifestations, beyond which we are not going to go), and in this “collapsible” form, it is much easier to present and implement them. Thus, the compound object “Fruit Salad” can be represented as a collection consisting of an apple, a banana, an orange, cream and a plate in which the product is prepared, and then, using a certain predetermined algorithm, make a salad out of it. Yet it is easier than trying in some way to model a salad without delving into the ingredients it contains. Yet the global idea is that the user will be able to take a spoon and try this virtual salad, and for this you need to "describe" each object and all its possible connections with other objects of this virtual reality database ... It is difficult, long, but possible.

About birds


Further, for example, I randomly took the direction of the implementation algorithms for the flight of the bird, so let's talk about it.

image

The action differs from the compound object in that its manifestation, unlike the possibility of the manifestation of a separate object, is not possible, because, as they say, there is nothing to talk about. Well, the flight, yes the flight and what's next ... While there is no one who flies - there is no action, there is no one to commit them. And as soon as some “noun” appears, - so it immediately tries to do something, and even acquire a bunch of epithets along the way - what a beautiful flight, the sky is blue and the sun is clear ...
image
Finally, I left the most interesting, - this is how we will work with this constantly updated database of objects and interactions, this is what we affectionately call "4D Programming." We want to realize that feeling when an unconscious computer begins to understand you from a half-word ... As far as its "learning", i.e. replenish and update the database, analyzing the user's request-request, isolating objects, parts and actions between them from it, substituting and matching the right one from its base, to execute the desired algorithm by the user.
image
In the next part I will continue the story, I plan to make an even deeper cut in the details of the project. Thank you for your attention and everything will turn out!



First introductory part: Immersion in Depth: how to make a quality project without millions in your pocket and why you shouldn’t be afraid of “long-term construction projects”

Source: https://habr.com/ru/post/320564/


All Articles