My Grav sim is ready for you to test... if you want :)

Started by
8 comments, last by kc_0045 18 years, 11 months ago
This program calculates the force of gravity between a user defined number of bodies with user defined: mass, radius, position, and inital velocity. There is a config file to define these things with a relatively clear instruction file. There is still some bugs in the zoom function. I have made a default sim config file for your viewing pleasure, feel free to change it and play around all you want. If you get an error creating the direct 3d device, make sure that the resolution is set to something your monitor can handle. That can be done through the config file. This is my first graphics program so be gentle on me. and be sure to read the instructions file before running it. and dont be scared to move the screen aroung with the arrow keys or zoom in or out with page up and down. well thats it give it a try if you would like and give feedback. I am gonig to make a good gui and convert to 3d eventually. click me to download thanks
These tears..leave scars...as they run down my face.
Advertisement
Awesome! I love it :)
I think it would be cool if when a body collides with another it should be absorbed by the larger mass and the resulting momentum of the larger mass gets recalculated.
Good work.
Error Creating Direct3D Device

Edit: I have the newest DirectX unless one was released like a few days ago.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
                                                          
Looking for video game music? Check out some of my samples at http://www.youtube.c...ser/cminortunes            
                                                          
I'm currently looking to create music for a project, if you are interested e-mail me at cminortunes@gmail.com    
                                                          
Please only message me for hobby projects, I am not looking to create music for anything serious.
SumDude: You have to adjust the first 2 lines in the GravSim.txt file to suit your monitor/graphics card.
oh there it goes, pretty cool.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
                                                          
Looking for video game music? Check out some of my samples at http://www.youtube.c...ser/cminortunes            
                                                          
I'm currently looking to create music for a project, if you are interested e-mail me at cminortunes@gmail.com    
                                                          
Please only message me for hobby projects, I am not looking to create music for anything serious.
Quote:Original post by Sailorstick
Awesome! I love it :)
I think it would be cool if when a body collides with another it should be absorbed by the larger mass and the resulting momentum of the larger mass gets recalculated.
Good work.


That will happen after the one bodie is at rest on another bodie. Like when a smaller one is bouncing around the larger one, after a while when it has lost enuogh kinetic energy it gets merged into the large mass bodie. right now I take out like .5% of the total momentum transferd for any given collision.

maybe Ill make a choice in the gui for the type of collisions, elastic perfectly inelastic or just inelastic. I will make it user defined for how much energy is lost in a collision as well. because even though it is not realistic to see gigantic superballs bouncing around in space, it looks pretty cool.
These tears..leave scars...as they run down my face.
Yeh cool... maybe have it so that you can move the large body mass independantly and so the properties or the other particles will change?

Also your gravSimOut.txt file is dumping mass amounts of info.... after just a minute of watching the sim its up to 200mb :o:o

hmm Ill upload the version that only outputs 2k to gravsim.out
These tears..leave scars...as they run down my face.
ok its up
These tears..leave scars...as they run down my face.
when i ran it, i got Error creating direct3d device... :(

Edit: nevermind i just read the post up above :P ill edit again after i run it

Edit: nice :D i tryed making somthing like this once, but it didnt work out. good job! :D (somthing id like to see, is have like lots of tiny planets everywere and have them all form into one big one :P but im to lazy to change the file :) haha )

This topic is closed to new replies.

Advertisement