登录
首页 » 算法 » 光线跟踪GPU实现

光线跟踪GPU实现

于 2022-01-25 发布 文件大小:341.04 kB
0 113
下载积分: 2 下载次数: 2

代码说明:

首先确定眼睛的位置和视线方向。然后确定从眼睛出发通过每个象素中心的光线方程。通过该光线求光线与场景中物体的最近交点。 若有交点,首先产生阴影测试光线,它是连接交点与光源的光线,然后计算该交点与光源间是否有阻挡物,如果没有则计算该点的Phong模型分量,若有阻挡物则不计算。若交点处的场景为反射表面,则产生反射光线,将此光线继续与场景求交。若交点处的场景具有透明性,则产生透射光线,将此光线继续与场景求交。 若无交点,则返回默认值。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论


0 个回复

  • 支持分布式网络化制造的智能数控系统的研究
    支持分布式网络化制造的智能数控系统的研究-support distributed network of intelligent manufacturing system of NC
    2022-02-12 01:22:59下载
    积分:1
  • 一个表达式解析器, 可以解析二十多种运符表达式, 支持优先级!...
    一个表达式解析器, 可以解析二十多种运算符表达式, 支持优先级!-An expression parser, you can resolve more than 20 kinds of regular expression operators in support of priority!
    2023-08-20 05:35:03下载
    积分:1
  • 产生大素数。以时间作为随机数生成的种子,随机生成大素数。...
    产生大素数。以时间作为随机数生成的种子,随机生成大素数。-Generate large prime numbers. With time as the random number generator seeds, randomly generated large prime numbers.
    2023-05-17 13:25:03下载
    积分:1
  • 3D FDTD code for electromagnetic simulation
    In the pFDTD, pre-defined, a number of functions helps you to input complex dielectric/metallic structures by the repeated use of rather simple geometric structures. For example, the later use of input object functions will take over the overlapped region with the previously defined structures. In the present pFDTD version, only metals that can be described by simple Drude model can be handled.
    2022-04-18 00:45:50下载
    积分:1
  • ssd5 机试二
    数据结构第二次实验课考试,停车场那个。只有main.cpp。
    2022-01-23 10:11:12下载
    积分:1
  • A program to demonstrate the optimization process of ant colony optimization for...
    A program to demonstrate the optimization process of ant colony optimization for the traveling saleman problem (TSP). The cities are shown as red circles, the pheromone on the connections between them (fully connected graph) by gray lines. The darker the grey, the more pheromone is currently on the edge. During the optimization, the currently best found tour is drawn in red. To run the optimization, first create a random TSP, then create an ant colony, and finally run the optimization.
    2022-02-19 22:51:42下载
    积分:1
  • 最小曲率扩边代码
    最小曲率扩边源代码,用于空白点补空,当在位场数据进行时域与频域转化时,离散数据必须为2的整数次幂,此时可对采集数据体利用最小曲率方法进行扩边,该算法精度较高,由于余弦扩边算法。
    2022-03-11 07:25:23下载
    积分:1
  • FFTW
    fftw-3.0.1
    2022-01-23 11:11:22下载
    积分:1
  • 静态多功能流水线调度
    流水线分五个步骤,每个步骤的执行时间均为一个单位时间;其中1-2-3-5组成加法流水线,1-4-5组成乘法流水线。加法和乘法不能同时执行。
    2022-01-22 00:18:39下载
    积分:1
  • 泛型的粒子滤波
    泛型粒子过滤器: 注: 重采样对这种演算法称为每个步骤执行时引导粒子滤波
    2022-02-02 16:53:42下载
    积分:1
  • 696518资源总数
  • 104517会员总数
  • 39今日下载