admin: admin
yes, saving doesn’t work there, and some functions don’t work. p.s. Whatever you broke there)))
and edits the project:
physicsCalc
- If we have a project where we need more than one 3D model, then there are 4 ways:
1.1 Create some config.json and manually write everything there.
1.2 Make an admin panel for resources that changes config.json.
1.3 Make an admin panel that changes the database on the server.
1.4 Use ready-made paid solutions like playcanvas, etc.
2 I followed the path of 1.2, advantages:
2.1 It is on the server as a folder, you need to copy it to another one and it works there too.
2.2 Unlike 1.3, you don’t need knowledge of working with databases and server administration.
2.3 In the code, you already have all the elements in memory and you don’t need to pull them up dynamically.
2.4 If you need any field in the description, it can be done in minutes. No work updating the database.
2.5 No FOREIGN junk like in playcanvas, etc.
2.6 Admin is not sharpened for either constructors or games, but you can do all this on it.
What is in the admin panel.
- Loading 3D objects (all formats), loading Materials (easy to add new ones), loading simple information blocks.
- When creating a new block, an icon with svg is generated. That is: Create a new block, insert it into the code (there is a picture), and then replace it with a beautiful and necessary one.
- Primitive editor of 2D pictures, both svg and png. That is, in a minute you can draw an icon on the notes and not waste time searching for it on the Internet. Yes, then you can replace it to match the style of the application. And you do not necessarily change it.
- I also have texts, when creating there, N number of languages like en: ‘text_33_en’ are generated. This is also visible in the application. Yes You can change this text to the correct one or someone else))
- Field for boxes, that is, the initial goborits of the 3D object, sometimes you need to know them before loading the model.
- Additional fields Buline, numeric, text
- Adding 3D marks, that is, we add a box and it is either a physical shape or is attached to the graphics of the 3D object.
- Markers, adding and managing points, as an addition to the model. Yes, they have many properties, show 2D binding, bind joints, a system of connections of physics geometries, etc.
- Methods of changing in the loaded object, position, rotation, scale and adding materials from the database.
- Tree recording system. That is, we can simply create a tree from all the elements in the admin panel, and then use this tree as parts and lists, for example, what is in the menu and what elements to show in it.