I had a hunch that this day will come. The day when I must face my design decisions so far and to deal with them to be able to do the challenges for the rest of the book. So it’s not a supprise that at this point the goal of the chapter is to refactort the code written so far. …
TRTC – Chapter 8 – Shadow
This chapter is not as big as the previous but the concept at hand is still important. There is quite a bit code in the raytracer so far an there is more to come. Like the book says most of the code to generate shadows is there already. What is needed is to do little tweaks in the code. Nothin …
TRTC – Making a Scene – Chapter 7
It’s been a while. I had my summer holidays and after such a long period of doing almost no coding it was kind of hard to get going again. This chapter felt some how extra hard but at the end when all was working I wondered why it was so hard. One thing I must mention also. The code base …
TRC- Light and Shading – Chapter 6
Things are getting more and more interesting here. The red circle that appeared on the file as the result of the last chapters putting it together part was cool. The result that is promised at the end of this chapter is cooler still 🙂 Now we are about to add the light and shading to make the drawing to represent …
TRTC – Ray-Sphere Intersections – Chapter 5
Hitting my head on the wall… Whoa. It’s a while. First I was lost in a side track implementing scriptability for my other macOS project. During that process I learned that sometimes you should just think a while, trust your self and skip search engine usage 🙂 Still the main reason why this one took so long was that at …
TRTC – Matrix Transformations – Chapter 4
Compared to the previous chapter this was easier to deal with. In this chapter we could more like just to use the building blocks to create something useful. More like putting the pieces together rather than creating the actual pieces. Different transformations are represented using different kind of matrices. Our starting point will be the identity matrix of size 4×4. …
TRTC – Matrices – Chapter 3
Remembering the times back when I was in the high school. I wish that some one would have had the wisdom to motivate me by telling that matrices are crucial when doing 3D stuff on computers. It might have helped to keep the motivation up what comes to studying math 🙂 So I’m not going to focus on how to …
TRTC – Creating a canvas – Chapter 2 Part II
In the last post I mentioned that I will write about the Metal. Well I must reconsider. No Metal needed here. Sorry if I went ahead of the things. Wonder if I even need the Metal all all? “A canvas is just a rectangular grid of pixels” Jamis Buck To create a grid means creating a two-dimensional array. So that’s …
- Page 1 of 2
- 1
- 2