AI prompts
base on # Verlet Integration (C)
![ezgif com-video-to-gif (1)](https://github.com/marichardson137/VerletIntegration/assets/77594556/967af388-d558-48f2-bd8d-4e9e92fe2bd1)
### Synopsis
This is an implementation of [Verlet Integration](https://www.algorithm-archive.org/contents/verlet_integration/verlet_integration.html), a numerical method commonly used for approximating trajectories. It's made with the C programming language and [OpenGL](https://www.khronos.org/about/), a popular API for GPU rendering. See [here](https://github.com/marichardson137/PyOpenGL) for the Python version (outdated).
### Key Features
- Simulate thousands of particles (at 60 FPS) experiencing real-time collisions, arbitrary forces, constraints, and linking.
- First person camera that can be controlled using the mouse and keyboard _or_ animated along a path ([Bézier curve](https://en.wikipedia.org/wiki/B%C3%A9zier_curve)).
- Custom [OBJ](https://en.wikipedia.org/wiki/Wavefront_.obj_file) file parser to import models from [external applications](https://www.blender.org/) and convert mesh data into an OpenGL-friendly data structure.
- Substeps, mathematical approximations, and sampling for improved simulation _accuracy_ and _stability_.
- Algorithms to generate structures like recursive [Icospheres](https://en.wikipedia.org/wiki/Geodesic_polyhedron).
- Mouse picking with a custom frame buffer to interact with objects in a 3D scene.
![ezgif com-video-to-gif](https://github.com/marichardson137/VerletIntegration/assets/77594556/83056570-5de0-491c-aeaa-783b583da1d7)
### Optimizations
- [Instance rendering](https://learnopengl.com/Advanced-OpenGL/Instancing)
- Multithreading (deterministic vs. non-deterministic)
- [KD-Tree](https://en.wikipedia.org/wiki/K-d_tree) or [Octree](https://en.wikipedia.org/wiki/Octree) spatial partitioning
### References
1. Math module by [Felipe Ferreira da Silva](https://github.com/felselva/mathc/tree/master) for working with vectors, matrices, and common mathematical functions.
2. Implementation of KD-Tree spatial partitioning by [John Tsiombikas](https://github.com/jtsiomb/kdtree).
3. [GLEW](https://glew.sourceforge.net/) for "wrangling" OpenGL functions and [GLFW](https://www.glfw.org/) for window management.
### Applying/releasing an attractive force w/ the Keyboard
![ezgif com-video-to-gif](https://github.com/marichardson137/VerletIntegration/assets/77594556/628fa123-fc7b-4b54-b402-64a5d2d4570a)
### Linking particles into a "Net"
![ezgif com-video-to-gif (2)](https://github.com/marichardson137/VerletIntegration/assets/77594556/9b7cde39-567f-459b-9474-305534c78618)
### Icosphere which maintains its pressure using [Ideal Gas Law](https://en.wikipedia.org/wiki/Ideal_gas_law)
![ezgif com-video-to-gif (3)](https://github.com/marichardson137/VerletIntegration/assets/77594556/937feb63-ffb4-4247-838c-f48b08db6508)
### System Specs.
- MacBook Pro (13-inch, M1, 2020)
- Chip - Apple M1
- Memory - 8 GB
- OS - Monterey Version 12.1
I have no idea if this will run on your machine but you're welcome to try by calling `make` in the root directory followed by `./app`
", Assign "at most 3 tags" to the expected json: {"id":"10112","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"