1000 Forms of Bunnies victor's tech art blog.

Raytracing - Camera and Multisampling Antialiasing

Finish reading Ray Tracing in One Weekend Chapter 2 to 6. Breakdown topics about raytracing analogy, simple camera model implementation, surface normal visualization, and Multisampling Antialiasing (MSAA) implementation. Raytracing Overview Light Rays (photons) are emitted from/bounced by/passing through the objects, and some of them made th... Read more

Raytracing - Ray Sphere Intersection

In raytracer, calculating ray - object intersection is very important on locating the hit point and producing correct color for the corresponding pixel. Sphere is always the best geometrical shape to start with as it is one of the simplest shape to describe mathematically. In this post I documented typical Ray class definition, ray-sphere inte... Read more

Raytracing - Image Output

The "Hello World!" of Computer Graphics. Image Output There are lots of file formats to choose to pack raytracing results, and the one that the book recommended is PPM format. PPM Format PPM aka the portable pixmap format, along with the portable graymap format (PGM) and the portable bitmap format (PBM) are image file formats belong to Ne... Read more

Raytracing - Rendering Equation Insight

Where the journey of physically based rendering begins. The Rendering Equation The physical basis for the rendering equation is the law of conservation of energy. Assuming that L denotes radiance, we have that at each particular position and direction, the outgoing light (Lo) is the sum of the emitted light (Le) and the reflected light. Th... Read more

GLSL Practice With Shadertoy

Getting started to use Shadertoy to learn and practice GLSL. Here are the first few examples I’ve been playing around. Also got the shaders embedded in my blog page. Here I documented some of my exploration about the website and some best-practice. Shadertoy First Try Watercolor Blending Made a simple shader iterating a combination of sine... Read more

Git Corner And Loading Effect Setup

Note for setting up GitHub Corners gadget on the web page to link to github repository, and for formatting my WebGL page with nice loading effect. For GitHub Corners, big thanks to the author tholman . And about the loading effect I am using PACE. Here is the code for modifying my WebGL html page to setup those gadgets: <html> ... ... Read more

PBRT Setup and Rendering Test

First PBR rendering test, looking neat. I’ve been working on this famous book about physics based rendering technique(PBR). It is a huge book that covers nearly everything about PBR from theories (physics/mathematics/computer science) to code implementation of the whole system. I am going to post my reading/researching notes on the blog just... Read more

Assembly Insight - Part 1

Just came across this Gem when browsing cat videos on Youtube. After watching it I decided to run through the case by myself on my mac to see how a C program is working under the hood. I also want to be a bit geeky this time - just use Vim to write raw C program, and use command line to compile the program and also run the executable. Everything... Read more

Infinite Possibility Of MatCap Shader

MatCap (Material Capture) shader uses an image of a sphere as a view-space environment map. It’s very cheap and looks great when the camera doesn’t rotate. It is widely used in 3D sculpting software (like Zbrush) to preview meshes. Reference Explaination of application in Zbrush Paper: The Lit Sphere: A Model for Capturing NPR Shading ... Read more

Recreate Phong Shading Model In Unity

Phong shading model is one of the most classic realistic shading models. It captures the basic features of a lit object using a very concise and straightforward theory. It matches people’s observation in daily life, and also easy to describe using math. Therefore, Phong shading model is always used as the base for other artistic shading effe... Read more

Your Browser Don't Support Canvas, Please Download Chrome ^_^``