SlideShare a Scribd company logo
1 of 22
曲面レイトレ入門
2013/08/24
Toru Matsuoka
曲面をレンダリング
●
曲面
– Bezier, B-Spline, NURBS
●
曲面をレンダリング
– Reyes
●
ピクセル精度で分割
– テッセレーション
●
事前にテッセレーションレベルを指定
問題点
●
問題点
– Reyes
●
レイトレーシングでないので鏡面反射などが表現でき
ない
– テッセレーション
●
事前にテッセレーションレベルを指定する。
●
適切なレベルは絵を見ないとわからない。
レイトレで曲面をレンダリ
ング
●
テッセレーションなし
– 調整が必要ない
●
レイトレーシング
– 鏡面反射や GI が可能
曲面
●
曲面:
– ”テンソル積曲面:曲線と曲線の“積 として構成さ
れるもの
曲線
●
パラメトリック曲線
– パラメータによって定義
●
表現方法
– Bezier
– B-Spline
– NURBS
曲線の互換性
●
パラメトリック曲線は次数(階数)が同じな
ら変換可能
●
表現能力
– Bezier < B-Spline < NURBS
曲面レイトレの手法
●
直接曲面と光線の接触位置を求めるのはむず
かしい
– 高次の方程式を解く必要がある
●
数値的な手法
– 2分法
– Bezier Clipping 法
曲面レイトレの計算方法
●
Bezier に変換
– B-Spline, NURBS などの曲線は Bezier に変換す
る
●
Bezier Clipping 法
– 速く収束
Bezier 曲線
●
凸包性
– CP (コントロールポイント)の凸包はその曲
線を内側に含む
→CP の AABB に曲線は必ず含まれる。
Bezier Clipping
●
Bezier Clipping[Nishita et al. 1990]
●
線分とベジェ曲線の交差を高速に求める方法
Bezier Clipping
●
CP ( Control Points )から凸包を作る
●
凸包の辺と直線の交差位置の最小値最大値を
求める
●
最小値最大値の範囲が大きければ曲線を半分
に分割する。小さければその範囲で曲線を切
り取る。
●
十分に小さくなるまで繰り返す。
Bezier Clipping
光線 vsBezier 曲面
1. 光線を Z 軸の座標系に曲面を変形する
2. 曲面に2次元の回転をして Bezier Clipping
しやすくする
3.U 方向、 V 方向それぞれ交互に Bezier
Clipping 法を繰り返す
4. 十分に範囲が小さくなるまで 2, 3 を繰り返
し、最後に Bilinear 曲面と交差を求める。
光線を Z 軸に
●
光線を Z 軸にする座標系を定義する。
T = -Ray.org
R = [dot(Upper,Ray.dir),Upper,Ray.dir]^t
M = R*T
●
曲面のすべての CP を座標系に変換
– Bezier は affine 保存性があるため CP を affine 変
換すればその曲面も affine 変換される
Bezier Clipping しやすくする
●
2次元の回転を加える
光線と Bilinear 曲面を交差
●
Bezier 曲面の4すみの CP から Bilinear 曲面
を作り、これと光線との交差テストを行う。
●
BiLinear 曲面は解析的に解くことができる。
結果
カーブのレイトレース
●
カーブのレイトレース
– Ribbon 状にレンダリング
●
非常に幅の狭い曲面だと過程する。
カーブのレイトレース
●
結果
100000 hair
応用
●
サブディビジョンサーフェス
– Catmull-Clerk
●
4*4 の接続された面に注目すると B-Spline パッチと同
様となる。
●
B-Spline パッチの取り出しは Opensudiv を用いれば
可能(たぶん!)
●
B-Spline パッチは Bezier パッチに変換可能
●
ゆえに Catmull-Clerk は直接レイトレ可能
まとめ
●
レイトレで Bezier 曲面をほぼ直接レンダリン
グすることは可能
●
Bezier 以外の曲面も事前に Bezier に変換す
ることでレイトレ可能

More Related Content

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

曲面レイトレ入門