Skip to content

LucasOpoka/miniRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Full Gallery

Quickstart guide for Linux (Debian Like)

Install dependencies

sudo apt update
sudo apt install git cmake make build-essential libx11-dev libglfw3-dev libglfw3 xorg-dev

Clone MLX42 repository

git clone https://github.com/codam-coding-college/MLX42.git

Build MLX42

cd MLX42
cmake -B build
cmake --build build -j4
cd ..

Clone miniRT repository

git clone https://github.com/LucasOpoka/miniRT.git

Build miniRT Mandatory version - for scenes_mandatory

cd miniRT
make

Build miniRT Bonus version - for secenes_bonus

cd miniRT
make bonus

Test run

./miniRT scenes_mandatory/8_shadows.rt

Quickstart guide for Linux (Debian Like) with Docker

Build Docker

docker build -t minirt - << EOF
FROM ubuntu
ENV DISPLAY=:0
RUN apt update && apt install -qqy x11-apps git cmake make build-essential libx11-dev libglfw3-dev libglfw3 xorg-dev
RUN git clone https://github.com/codam-coding-college/MLX42.git
RUN cd MLX42 && cmake -B build && cmake --build build -j4 && cd ..
RUN git clone https://github.com/LucasOpoka/miniRT.git
WORKDIR /miniRT
RUN make bonus
CMD ["./miniRT", "scenes_bonus/texture_bump_refraction.rt"]
EOF

Run Docker

XSOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker.xauth
xauth nlist :0 | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -
docker run -ti -v $XSOCK:$XSOCK -v $XAUTH:$XAUTH -e XAUTHORITY=$XAUTH minirt

Gallery

Textures - Bump Textures - Refraction
texture bump refraction bump + refraction texture + bump + refraction
Triangles
Intro Scenes
Patterns scenes
Misc scenes
Solar system scenes
Misshaps along the way

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published