From 52b952116f5a3bc8978cdf41ab40f14a1bd33a67 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Sokolov" Date: Tue, 25 Aug 2020 16:00:11 +0200 Subject: [PATCH] gitpod config typo + readme polishing --- .gitpod.yml | 2 +- README.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index 34c95d30..beac9686 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -7,6 +7,6 @@ tasks: cmake .. && make && ./tinyrenderer ../obj/diablo3_pose/diablo3_pose.obj ../obj/floor.obj && - convert framebuffer.tga > framebuffer.png && + convert framebuffer.tga framebuffer.png && open framebuffer.png && cd .. diff --git a/README.md b/README.md index d4b57a52..53d57b4d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Tiny Renderer or how OpenGL works: software rendering in 500 lines of code -**Check [the wiki](https://github.com/ssloy/tinyrenderer/wiki) for the detailed lessons.** +**Check [the wiki](https://github.com/ssloy/tinyrenderer/wiki) for the detailed lessons.** ## compilation ```sh @@ -12,9 +12,11 @@ cmake .. && make && ./tinyrenderer ../obj/diablo3_pose/diablo3_pose.obj ../obj/floor.obj ``` +The rendered image is saved to `framebuffer.tga`. You can open the project in Gitpod, a free online dev evironment for GitHub: [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/ssloy/tinyrenderer) + On open, the editor will compile & run the program as well as open the resulting image in the editor's preview. Just change the code in the editor and rerun the script (use the terminal's history) to see updated images.