Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Gravity Sandbox  (Read 10792 times)

0 Members and 1 Guest are viewing this topic.

LarsXYZ

  • Newbie
  • *
  • Posts: 25
    • View Profile
Gravity Sandbox
« 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 :)
« Last Edit: July 09, 2016, 06:14:12 pm by LarsXYZ »

ChronicRat

  • Sr. Member
  • ****
  • Posts: 327
  • C++ programmer
    • View Profile
    • My blog
Re: Gravity Sandbox
« Reply #1 on: May 03, 2016, 10:32:42 pm »
Cool, very nice!

Jonny

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Email
Re: Gravity Sandbox
« Reply #2 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

LarsXYZ

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Gravity Sandbox
« Reply #3 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.
« Last Edit: May 04, 2016, 12:49:40 pm by LarsXYZ »

R23MJ

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: Gravity Sandbox
« Reply #4 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.

R23MJ

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: Gravity Sandbox
« Reply #5 on: May 22, 2016, 07:53:05 pm »
FYI: Windows defender claims this is a virus. You might want to look into that.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
Re: Gravity Sandbox
« Reply #6 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?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

R23MJ

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: Gravity Sandbox
« Reply #7 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.

LarsXYZ

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Gravity Sandbox
« Reply #8 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? :)
« Last Edit: July 09, 2016, 06:13:59 pm by LarsXYZ »

Hapax

  • Hero Member
  • *****
  • Posts: 3346
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Gravity Sandbox
« Reply #9 on: July 07, 2016, 11:09:20 pm »
Looks pretty! :)
Some nice improvements but where did the life simulation go?
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Cpl.Bator

  • Hero Member
  • *****
  • Posts: 540
    • View Profile
Re: Gravity Sandbox
« Reply #10 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.

LarsXYZ

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Gravity Sandbox
« Reply #11 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. :)

LarsXYZ

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Gravity Sandbox
« Reply #12 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

Hapax

  • Hero Member
  • *****
  • Posts: 3346
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Gravity Sandbox
« Reply #13 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" ;)
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

LarsXYZ

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Gravity Sandbox
« Reply #14 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

 

anything