Skip to content

Moved arguments around #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .idea/blinn.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 19 additions & 19 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@ include_directories(src)
include_directories(include)

add_executable(blinn
src/color.cpp
src/color.h
src/dbg.h
src/geometry.cpp
src/geometry.h
src/basics/color.cpp
src/basics/color.h
src/utils/dbg.h
src/basics/geometry.cpp
src/basics/geometry.h
src/main.cpp
src/point.cpp
src/point.h
src/ray.cpp
src/ray.h
src/render.cpp
src/render.h
src/sphere.cpp
src/sphere.h
src/square.cpp
src/square.h
src/blobsys.cpp
src/blobsys.h
src/basics/point.cpp
src/basics/point.h
src/basics/ray.cpp
src/basics/ray.h
src/rendersys/render.cpp
src/rendersys/render.h
src/renderables/sphere.cpp
src/renderables/sphere.h
src/basics/square.cpp
src/basics/square.h
src/physics/blobsys.cpp
src/physics/blobsys.h
#src/test.cpp
src/tracer.cpp
src/tracer.h src/config.cpp src/config.h src/scene.cpp src/scene.h)
src/rendersys/tracer.cpp
src/rendersys/tracer.h src/utils/config.cpp src/utils/config.h src/rendersys/scene.cpp src/rendersys/scene.h)
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Metaball/Spheres Raytracer

Renders metaballs and spheres. Uses C++. No external libraries (as of yet). Project is still being improved on. This is also an excuse for me to learn more C++.

## Current Features and Methods

Renders metaballs and spheres using ray marching and raytracing, respectively. Metaball rendering is done by first checking if a ray will enter a proper bounding sphere, before inching a ray through the bounding sphere to determine where the isosurface lies. This task is parallelized with OpenMP.

To create an interesting animation, metaballs are connected to each other with springs with various k values. We let the physics dictate the movement of the metaballs (each with a mass of 1kg) between frames. See video below:

[![Metaball Minute Youtube Video](https://img.youtube.com/vi/dfxTMVnEfB0/0.jpg)](https://www.youtube.com/watch?v=dfxTMVnEfB0)



## Todo:

- [ ] Finish writing this README...
- [ ] Multi-node cluster computing. Current metaball rendering takes a bit too long (4 cores ~ 6 sec), rendering frames are parallizable, however
21 changes: 0 additions & 21 deletions src/.exrc

This file was deleted.

2 changes: 1 addition & 1 deletion src/color.cpp → src/basics/color.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <iostream>
#include "color.h"
#include "dbg.h"
#include "utils/dbg.h"

using namespace std;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/point.cpp → src/basics/point.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


#include <math.h>
#include <cmath>

#include "ray.h"

Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions src/ray.cpp → src/basics/ray.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#include "ray.h"
#include "point.h"
#include <sstream>
#include <iostream>
#include <stdio.h>


using namespace std;
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion src/square.cpp → src/basics/square.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "color.h"
#include "square.h"
#include "point.h"

square::square() {
this->x = 0;
Expand Down
File renamed without changes.
150 changes: 0 additions & 150 deletions src/config.cpp

This file was deleted.

68 changes: 0 additions & 68 deletions src/config.h

This file was deleted.

37 changes: 0 additions & 37 deletions src/dbg.h

This file was deleted.

Loading