This project is to write a 2D and 3D flocking simulator in C++ using Qt Creator and Irrlicht ( [url removed, login to view] )
Source codes are provided in Java with the Processing Framework, so the project will essentially be a translation from Java/Processing Framework to C++/Qt/Irrlicht. Prior knowledge of Qt Creator and 3D engines is a requirement!
The project is composed of 2 parts :
- 2D part : Open [url removed, login to view] and select the "Flockers" simulation (Other simulations are not be included in this project). This is what have to be translated in Qt/C++. Java sources are provided in manson.zip. It is essential that you use the Qt framework to draw in 2D, for example with QPainter ( [url removed, login to view] )
- 3D part : Open boids_final.jar. This is what have to be translated in Qt/C++/Irrlicht. Java sources are provided in [url removed, login to view]
It is essential that you use the Qt framework and Irrlicht to draw in 3D. An example of integrating Irrlicht into Qt is available on [url removed, login to view]
The 2D and 3D simulations comes from 2 different java source codes. However it is important to have some coherence in the final C++ project. The 2D and 3D simulations must "feel similar", like coming from only one java source. Actually, if you are able to to switch the 3D simulation from a perspective projection to an orthogonal projection, you could only develop the "3D part" and get the 2D view from it. This would actually be better than writing a completely different 2D simulation but orthogonal projections are hard to achieve in Irrlicht.
Maximum allowed time for the project : 1 week.