The Ray Tracer Challenge: A Test-Driven Guide to Your First 3D Renderer (Pragmatic Bookshelf)
暫譯: 光線追蹤挑戰:測試驅動的3D渲染器入門指南 (Pragmatic Bookshelf)

Jamis Buck

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2019-04-02
  • 定價: $1,600
  • 售價: 8.0$1,280
  • 語言: 英文
  • 頁數: 250
  • 裝訂: Paperback
  • ISBN: 1680502719
  • ISBN-13: 9781680502718
  • 相關分類: GPU
  • 立即出貨 (庫存 < 4)

買這商品的人也買了...

相關主題

商品描述

Brace yourself for a fun challenge: build a photorealistic 3D renderer from scratch! It's easier than you think. In just a couple of weeks, build a ray-tracer that renders beautiful scenes with shadows, reflections, brilliant refraction effects, and subjects composed of various graphics primitives: spheres, cubes, cylinders, triangles, and more. With each chapter, implement another piece of the puzzle and move the renderer that much further forward. Do all of this in whichever language and environment you prefer, and do it entirely test-first, so you know it's correct. Recharge yourself with this project's immense potential for personal exploration, experimentation, and discovery.

The renderer is a ray tracer, which means it simulates the physics of light by tracing the path of light rays around your scene. Each exciting chapter presents a bite-sized piece of the puzzle, building on earlier chapters and setting the stage for later ones. Requirements are given in plain English, which you translate into tests and code. When the project is complete, look back and realize you've built an entire system test-first!

There's no research necessary -- all the necessary formulas and algorithms are presented and illustrated right here. Dive into intriguing topics from fundamental concepts such as vectors and matrices; to the algorithms that simulate the intersection of light rays with spheres, planes, cubes, cylinders, and triangles; to geometric patterns such as checkers and rings. Lighting and shading effects, such as shadows and reflections, make your scenes come to life, and constructive solid geometry (CSG) enables you to combine your graphics primitives in simple ways to produce complex shapes.

Play and experiment as you discover the fun of writing a ray tracer. Accept the challenge today!

What You Need:

Aside from a computer, operating system, and programming environment, you'll need a way to display PPM image files. On Windows, programs like Photoshop will work, or free programs like IrfanView. On Mac, no special software is needed, as Preview can open PPM files.

商品描述(中文翻譯)

請準備好迎接一個有趣的挑戰:從零開始建立一個寫實的 3D 渲染器!這比你想像的要簡單。在短短幾週內,建立一個光線追蹤器,渲染出美麗的場景,包含陰影、反射、絢麗的折射效果,以及由各種圖形基元組成的主題:球體、立方體、圓柱體、三角形等等。每一章都實現拼圖的另一部分,讓渲染器向前邁進一步。使用你喜歡的任何語言和環境來完成這一切,並完全採用測試優先的方法,這樣你就能確保它是正確的。透過這個專案的巨大潛力,為個人探索、實驗和發現充電。

這個渲染器是一個光線追蹤器,這意味著它通過追蹤光線在場景中的路徑來模擬光的物理特性。每一章都呈現一個小而有趣的拼圖部分,建立在之前的章節之上,並為後面的章節鋪路。需求以簡單的英語給出,你將其轉換為測試和代碼。當專案完成時,回顧一下,你會發現你已經以測試優先的方式建立了一個完整的系統!

不需要進行研究——所有必要的公式和算法都在這裡呈現並說明。深入探討從基本概念如向量和矩陣,到模擬光線與球體、平面、立方體、圓柱體和三角形相交的算法,再到幾何圖案如棋盤和環形。照明和陰影效果,如陰影和反射,讓你的場景栩栩如生,而構造實體幾何(CSG)使你能夠以簡單的方式組合圖形基元,產生複雜的形狀。

在發現編寫光線追蹤器的樂趣時,盡情玩耍和實驗。今天就接受這個挑戰吧!

你需要的東西:

除了電腦、操作系統和程式環境外,你還需要一種顯示 PPM 圖像檔案的方法。在 Windows 上,像 Photoshop 這樣的程式可以使用,或者免費的程式如 IrfanView。在 Mac 上,無需特殊軟體,因為 Preview 可以打開 PPM 檔案。