• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            eryar

            PipeCAD - Plant Piping Design Software.
            RvmTranslator - Translate AVEVA RVM to OBJ, glTF, etc.
            posts - 603, comments - 590, trackbacks - 0, articles - 0

            OpenCascade Ray Tracing Rendering

            Posted on 2014-01-11 14:36 eryar 閱讀(3035) 評論(0)  編輯 收藏 引用 所屬分類: 2.OpenCASCADE

            OpenCascade Ray Tracing Rendering

            eryar@163.com

            摘要Abstract:OpenCascade6.7.0中引入了光線跟蹤算法的實現。使用光線跟蹤算法可實現高質量的渲染效果,且可以使用GPU提升渲染效率。

            關鍵字Key Words:OpenCascade, Ray Tracing

             

            參考鏈接:Ray tracing as alternative rendering method for OCCT visualization component

            http://dev.opencascade.org/index.php?q=node/898

             

            OpenCascade 6.7.0對顯示部分做了些重大改進,其中突破性的改變是使用OpenCL實現了光線跟蹤算法。作為庫TKOpenGl的一部分,光線跟蹤算法與標準的顯示模塊完全集成。從此,光線跟蹤也可以作為顯示的一種方法。與其他第三方庫的光線跟蹤庫的區別是,內置的光線跟蹤算法確保了實時渲染時的性能,性能與OpenGL的性能相近,在有大量模型時性能比OpenGL的還要好。

            光線跟蹤功能如下:

            l High-quality shading by interpolating normal across the triangle pixels and using advanced illumination model (Phong shading);

            l Depth-correct order-independent transparency for any number of overlapped objects;

            l Sharp shadows from isotropic point and directional lights without any approximation – greatly improve visual appearance;

            l Specular reflections and environment mapping – for high-quality rendering of metallic surfaces;

            l Low-cost adaptive anti-aliasing allows to improve image quality by removing jagged edges from the image;

            l Based on cross-platform OpenCL framework – runs on GPUs of major vendors (NVIDIA and AMD/ATI);

            l Makes the most of the mid-/top-range GPUs but also runs successfully on low-end GPUs that support OpenCL。

            只要OpenCascade編譯時啟用OpenCL支持,光線跟蹤的使用是相當簡單,只需要調用函數V3d_View::SetRaytracingMode()就可以把3D view切換成光線跟蹤渲染啦。參考V3d_View和文檔或者Draw Test Harness的vraytrace和vsetraytracemode命令實現的源程序去詳細了解如何設置光線跟蹤的一些選項。

            最簡單的測試光線跟蹤的方式是在Draw Test Harness中輸入如下命令:

            Draw[2]> source samples/tcl/bottle.tcl

            生成效果如下圖所示:

            wps_clip_image-14073

            Figure 1.1 Render bottle and text with ray tracing

            image

            wps_clip_image-6333

            Figure 1.2 Render pipe and equipment models with ray tracing

            wps_clip_image-32616

            Figure 1.3 Render pipe and equipment models with ray tracing

            從上圖可知,使用光線跟蹤效果很不錯,可以看到鏡面效果,很Cool!

            97视频久久久| 精品一区二区久久| 国产成人精品久久| 粉嫩小泬无遮挡久久久久久| 国产精品伦理久久久久久| 狠狠色丁香久久婷婷综合蜜芽五月 | 久久久精品国产免大香伊| 久久影院综合精品| 久久伊人中文无码| 国产精品久久久久aaaa| 国产一区二区久久久| 青青草原1769久久免费播放| 久久精品国产2020| 亚洲国产成人久久综合区| 久久精品国产福利国产秒| 国产精品99久久久精品无码| 欧美日韩中文字幕久久伊人| 少妇久久久久久久久久| 伊人久久精品影院| 久久人人爽人人爽人人爽| 久久国产精品久久国产精品| 中文国产成人精品久久不卡| 亚洲欧美国产日韩综合久久| 久久福利片| 狠狠精品久久久无码中文字幕| 91久久婷婷国产综合精品青草| 日产精品久久久久久久| 97久久国产露脸精品国产| 一级做a爰片久久毛片毛片| 欧美久久久久久精选9999| 免费观看成人久久网免费观看| 国产精品99久久99久久久| 久久精品国产亚洲AV高清热| 无码专区久久综合久中文字幕| 国产亚洲精久久久久久无码77777 国产亚洲精品久久久久秋霞 | 久久精品?ⅴ无码中文字幕| 久久久无码精品亚洲日韩按摩| av色综合久久天堂av色综合在| 精品国产日韩久久亚洲| 亚洲精品无码久久一线| 久久久免费精品re6|