I have work in this project “3D Solar System Simulation” as a graphics course. It may not be accurate as our solar system but perfect for learning OpenGL in c#(SharpGL). For accurate simulation we have to do little research effort which I haven’t time to do so. I have created this within one week and provide the platform for simulation of solar system. All eight planet revolve around the sun in elliptical path and also rotated about their own axis. You can see my technique how I make the possible for rotation in its own axis and revolution around the sun simultaneously. There are some limitation in this project which I will discuss below.You can also download the complete project with source code from below.
The requirement to run and learn this project:-
The things you learn in this project:
You can download the complete project file with source code and exe file from here or below. If you face the any problem regarding the project then leave the comment and you can also mail me.
Download: Simulation_of_SolarSystem
The requirement to run and learn this project:-
- Os windows 7 and visual studio IDE
- You must add the template for SharpGL
- Basic knowledge of OpenGL ,C# and windows form.
The things you learn in this project:
- Timer control in windows form
- Texture mapping technique in Sphere
- Creating the dynamic array using List in C#
- Generating the co-ordinate for elliptical path
- Rotation method in OpenGL in C#(SharpGL)
- Due to texture mapping which had provided the real look for all planet
- All planet revolve around the sun and as well as rotate about their own axis
- Sun stay in stationary position
- The ring of the saturn is not drawn
- The rotation and revolution speed may not be accurate
- The asteroid belt and stars hasn’t added.
- You can improve the limitation by adding the ring for saturn , asteroid belt and stars in the sky
- Do little research to make the speed of rotation and revolution accurate
- Change the viewing direction and make the path of planet by making the thin elliptical ring and give the name by rendering text.
The output screen of project look like this:
Download: Simulation_of_SolarSystem
Can this 3D Solar System change to wpf(c#) form?
ReplyDeleteI have used ShapGL for windows form. For wpf you have to install SharpGL template for WPF. Then create the Project for SharpGL for WPF. SharpGL code is same for both WPF and windows form you just need to change the code form windows form to WPF. You can do it easily.
DeleteCould you tell me how to texture mapping in wpf,I had read your article (Texture mapping in SharpGL (OpenGL in C#) sample program for windows form )
Deletebut the code is c not c#. Thanks for your help
Do u have the source code for stack n queue data structures
ReplyDeleteNo I don't.
DeleteHello Check my Solar System in C# it has a class to draw stars with GL_POINT
ReplyDeletehttp://www.codeproject.com/Articles/577259/D-solar-system-with-OpenGL-and-Csharp
yes, C# has drawing Options there
Delete,k
ReplyDelete