<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hanecci</author_name>
  <author_url>https://blog.hatena.ne.jp/hanecci/</author_url>
  <blog_title>OLD hanecci’s blog : 旧 はねっちブログ</blog_title>
  <blog_url>https://hanecci.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>学生の頃に実装したレイトレーサーで, Ambient Occlusionの計算をした結果の画像を貼っておきます.手法としてはピクセル単位で飛ばしたRayと物体との衝突点において, その法線を中心として半球状にランダムに64個のRayを生成して遮蔽度を計算しています.参考にした本は, &quot;Ray Tracing from the Ground Up&quot;, Kevin Suffernです. この本のp129に, cosine分布で半球状にRayをランダムに生成するコードが載っています.</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhanecci.hatenadiary.org%2Fentry%2F20100324%2F1269454647&quot; title=&quot;レイトレーシングでのAmbient Occlusionの計算 - OLD hanecci’s blog : 旧 はねっちブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/h/hanecci/20090326/20090326033917.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-03-24 03:17:27</published>
  <title>レイトレーシングでのAmbient Occlusionの計算</title>
  <type>rich</type>
  <url>https://hanecci.hatenadiary.org/entry/20100324/1269454647</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
