SFML community forums

General => SFML projects => Topic started by: LarsXYZ on May 03, 2016, 08:16:51 pm

Title: Gravity Sandbox
Post by: LarsXYZ on May 03, 2016, 08:16:51 pm
Hi! I am a first year engineering student. In our programming class we had to use SFML. I really liked it, so I made my first bigger programming project using it. It's a gravity sandbox.

Features:

 - Object types
 - Collisions
 - Roche limit
 - System generation
 - Life

I have exams now, so I wont be able to work on it for a month or so.

When I come back I want to implement a GUI with SFGUI. Does anyone have any experience with it?

http://www.youtube.com/watch?v=jN0vHxv7PjM

If you have any questions about the program just ask!

If you're interested in following the project i recommend subscribing to my youtube channel, I post update videos detailing each update I release :)
Title: Re: Gravity Sandbox
Post by: ChronicRat on May 03, 2016, 10:32:42 pm
Cool, very nice!
Title: Re: Gravity Sandbox
Post by: Jonny on May 04, 2016, 09:23:05 am
Very cool! Are you using N-body simulation?

Also are you by chance a ksp fan? :P
Title: Re: Gravity Sandbox
Post by: LarsXYZ on May 04, 2016, 12:46:54 pm
At the moment I am using brute force Eulers. So it's n-body. But I am looking into upgrading to improved Euler or leapfrog.

Yeah, I've played way too much KSP.
Title: Re: Gravity Sandbox
Post by: R23MJ on May 22, 2016, 07:49:24 pm
Oh boy, I love things like this, just downloaded it. It's probably going to distract me for a couple hours, haha, great project, thanks for sharing.
Title: Re: Gravity Sandbox
Post by: R23MJ on May 22, 2016, 07:53:05 pm
FYI: Windows defender claims this is a virus. You might want to look into that.
Title: Re: Gravity Sandbox
Post by: eXpl0it3r on May 22, 2016, 09:45:10 pm
No problem for me with Windows Defender, unless you're talking about a different file - which file are talking about?
Title: Re: Gravity Sandbox
Post by: R23MJ on May 23, 2016, 02:31:03 pm
Ah, I apologize, the executable was the file giving me problems. I didn't scan it, defender just said there was a problem and refused to allow me to open it.
Title: Re: Gravity Sandbox
Post by: LarsXYZ on July 07, 2016, 03:46:57 pm
Hi guys. I've released v0.9 now. I made a video detailing the changes: http://www.youtube.com/watch?v=qD9iAlD26G4

What do you think? :)
Title: Re: Gravity Sandbox
Post by: Hapax on July 07, 2016, 11:09:20 pm
Looks pretty! :)
Some nice improvements but where did the life simulation go?
Title: Re: Gravity Sandbox
Post by: Cpl.Bator on July 08, 2016, 04:51:09 pm
Very nice.
the gui must be improve , and why you dont use existing gui like sfgui or tgui ? both lib are easy to integrate.
Title: Re: Gravity Sandbox
Post by: LarsXYZ on July 08, 2016, 06:44:18 pm
Looks pretty! :)
Some nice improvements but where did the life simulation go?

It's still there! Not much has changed with it. I just didn't show any of it in this video. For the v1.0 release I will make a final trailer showing of all the features. :)
Title: Re: Gravity Sandbox
Post by: LarsXYZ on July 08, 2016, 06:46:22 pm
Very nice.
the gui must be improve , and why you dont use existing gui like sfgui or tgui ? both lib are easy to integrate.


In my newest version I am using TGUI as a GUI. It is still super utilitarian though. I am no designer :P
Title: Re: Gravity Sandbox
Post by: Hapax on July 08, 2016, 10:06:41 pm
Good news. Glad you didn't scrap that!

You can embed the YouTube videos by simply removing the "s" in "https" ;)
Title: Re: Gravity Sandbox
Post by: LarsXYZ on July 09, 2016, 06:13:31 pm
Good news. Glad you didn't scrap that!

You can embed the YouTube videos by simply removing the "s" in "https" ;)

Ah okay. I'll do that next time. Thanks
Title: Re: Gravity Sandbox
Post by: LarsXYZ on July 11, 2016, 09:25:26 pm
Hi again! I've finally completed my simulator! I've chosen to make it open source.

Trailer: http://www.youtube.com/watch?v=2ksVjpxY5mI
Screenshots: http://imgur.com/a/TMpCg
Download link: http://www.mediafire.com/download/t49epesrn80427y/v1.0.zip
Source code: https://github.com/larsXYZ/Gravity-Simulator-v1.0-SOURCE

I hope you like it/find it interesting! =)
Title: Re: Gravity Sandbox
Post by: Tank on July 14, 2016, 07:49:09 am
Interesting stuff, good work. :)