An open API service indexing awesome lists of open source software.

https://github.com/lucasfturos/blackholeinc

Buraco negro em C
https://github.com/lucasfturos/blackholeinc

c cmake

Last synced: 12 months ago
JSON representation

Buraco negro em C

Awesome Lists containing this project

README

          

# Black Hole in C

Um buraco negro feito em C

## Instalação e Execução

### Requisitos

- CMake
- GCC
- Make
- SDL2

### Instruções:

1. Clone o repositório:

```
git clone https://github.com/lucasfturos/BlackHoleInC.git && cd BlackHoleInC
```

2. Crie a pasta build:

```
cmake -S . -B build && cd build
```

3. Compile o programa:

```
make
```

4. Execute o programa:

```
./src/Demo
```

## Screenshot

### Primeiro render

![](/screenshot/out1.gif)

### Segundo render

![](/screenshot/out2.png)

## Referências

1. [Implementing General Relativity: Rendering the Schwarzschild black hole, in C++ - James (@20k)](https://20k.github.io/c++/2024/05/31/schwarzschild.html)
2. [Path-Traced Black Hole - Zi7ar21](https://www.shadertoy.com/view/7tS3DW)
3. [Ray Tracing Black Holes - Eliot Han, Michael Tu, Alejandro Garcia](https://eliot1019.github.io/Black-Hole-Raytracer/)