Magneto : A Magnetic Field Simulator banner

Magneto : A Magnetic Field Simulator

9 devlogs
13h 44m 16s

Magneto is a magnetic field simulator, totally written in C++, enabling people to understand and make some experiments/ measurements with magnets.

Using parameters such as the distance between the magnet and the Visualization Particle, it can…

Magneto is a magnetic field simulator, totally written in C++, enabling people to understand and make some experiments/ measurements with magnets.

Using parameters such as the distance between the magnet and the Visualization Particle, it can give an accurate estimation of the magnetic field strength

Demo Repository

Loading README...

Cocoboyyy

Hey, I think we are great now; I have improved the user experience. I will just update the readme and prepare a release, and we will be great!!

Attachment
0
Cocoboyyy

Hey, what’s up? Lastly, I implemented multiple magnet basic interactions, and it looks really great ( it was pretty easy). Now, I will continue improving user experience before shipping this project!
Have a nice day of coding!!

Attachment
0
Cocoboyyy

Hey, I finally added a better normalisation way ( I will give the formula in the readme), and I cleaned the project and split the main into different files. The next step that I want to achieve before the first release is to create the readme and add a cursor for measurement ( with some user input) ! Have a great day of codinggg !

Attachment
Attachment
0
Cocoboyyy

What’s up? Today I made huge progress; I chose to convert the system to something that is static (to avoid calculating everything for each frame). It was quite hard because I had to improve my OpenGL understanding ( with a mesh buffer and an instance position buffer). But I like the result!! Here you can see some pictures with 50000 points… I hope you will like it ;) Have a nice day of coding!!

Attachment
Attachment
0
Cocoboyyy

Hey, I hope you have a great day of coding! Today, I worked on the magnetic field strength approximation, and I faced many issues with visualization… To make it simple, in the formula we have a 1/x^3, so values get really quickly too tiny or too big; that’s why I used a ‘Logarithmic Normalization’, but I will talk more about this in the doc!! Next step: make it more realistic and usable. Have a nice day of coding !!

Attachment
Attachment
Attachment
Attachment
Attachment
0
Cocoboyyy

Yo! So I finally managed to create something that is near from particle ( but I finally used square) . Under this devlog you will see that I started to create some visualization of field; actually, it isn’t a magnetic field but the distance to the origin. Now, it’s time to dive into more accurate physique, in order to create something realistic! I hope you have a great day of coding, bye

Attachment
Attachment
Attachment
Attachment
0
Cocoboyyy

Hey, what’s up ?! I spent the last hour trying to improve the magnet (3D) and trying to create my first spherical particle; it isn’t really easy due to the tessellation ( converting sphere into triangle), but I hope in the next devlog it will be done ;) . Have a max of fun coding, bye!

Attachment
0
Cocoboyyy

Hey, I hope you’re doing well. Today, I started to create the windows of the magnetic field simulator. I used OpenGL in C++ to do that. In the attached picture, you can see a “kind of” magnet that I will use as a base to create the first representation of magnetic field!! I hope you will like this project, have a nice day of coding and catch you next time!!

Attachment
0