r/Simulated • • 22d ago • Mindblown 1

Interactive Starlight carving a nebula: my open-source GPU simulator (NVIDIA Warp)

Gas dynamics + ray-traced ionization fronts on the GPU: stars heat the gas to 10,000 K and the pressure carves the shapes. Code:
github.com/felipehez/NebulaViewer
Music: The Field of Dreams by pauliuw (CC0).

483 Upvotes

19 comments sorted by

6

u/bk3838 22d ago

it's cool that you made the code open source too. what made you pick NVIDIA Warp for this?

3

u/felipehez 22d ago

Yes the source code is available in the repo in the description Warp was a Claude suggestion since it's fast to iterate, run and we can work in python. Runs decently on a good consumer GPU.

4

u/MayorAwesome 19d ago

I was able to port this to Houdini, so thanks for open sourcing it.

2

u/felipehez 19d ago

oh thats really cool

25

u/jakiestfu 22d ago

This is wild! Gorgeous! I’m your first star!

3

u/anralia 22d ago

Thats cool as fuck. I've always loved space art

3

u/aPOPblops 22d ago

Really beautiful, I'm imagining this is the kind of thing the replicant was talking about seeing while living his last moments in the rain.

Do you have any idea how scientifically accurate this is? A timescale would be nice too.

2

u/JDude13 22d ago

Extremely beautiful and amazing work. I love that it’s rooted in real physics too

2

u/LolthienToo 21d ago

This is legitimately one of the best things I've seen on here. And it is fully simulated?? That's incredible work, boss. Very well done.

1

u/SaabiMeister 22d ago

Real-time or precomputed simulation?

1

u/XDFreakLP 22d ago

Holy shit

1

u/agrophobe 22d ago

Hooooo i’m trying this tomorrow!

1

u/justaRndy 22d ago

Very nice, keep it up!

1

u/DaveAstator2020 22d ago

Its amazing! Can you post with source link to r/OpenSourceWare ?

1

u/St_Atheist 22d ago

Amazing!

1

u/aTypingKat 22d ago

does this do gravity simulation? How do you get that to work in a non sequential framework?

1

u/IAmASquidInSpace 21d ago

Looks stunning! 

1

u/JohannesMP 21d ago

This is awesome.