1. 图像生成的流水线方法并不对应与物理系统的成像过程,这样一种非物理的方法主要有哪些优点和缺点?

    流水线增加了系统的吞吐量,减少了主机的负载,并且让内存的使用大大减少。

    缺点是在某些情况下无法将某些全局效果比如光照,阴影和物理效果做到很好的呈现。

  1. 1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    for (j = 0; j <= SPHERE_DIV; j++){//SPHERE_DIV为经纬线数
    aj = j * Math.PI/SPHERE_DIV;
    sj = Math.sin(aj);
    cj = Math.cos(aj);
    for(i = 0; i <= SPHERE_DIV; i++){
    ai = i * 2 * Math.PI/SPHERE_DIV;
    si = Math.sin(ai);
    ci = Math.cos(ai);
    points.push(si * sj);//point为顶点坐标
    points.push(cj);
    points.push(ci * sj);
    }
    }点击打开链接
    for(j = 0; j < SPHERE_DIV; j++){
    for(i = 0; i < SPHERE_DIV; i++){
    p1 = j * (SPHERE_DIV+1) + i;
    p2 = p1 + (SPHERE_DIV+1);
    indices.push(p1);//indices为顶点的索引
    indices.push(p2);
    indices.push(p1 + 1);
    indices.push(p1 + 1);
    indices.push(p2);
    indices.push(p2 + 1);
    }
    }

https://blog.csdn.net/qq_37338983/article/details/78643772

  1. 假设z轴上的点为(0,0,1),则其他的顶点为(0, 2/3,−1/3),(−6/3,−2/3,−1/3),(6/3,−2/3,−1/3)。
相关文章
评论
分享
Please check the post_relate setting in config.yml of hexo-theme-Annie! You should make sure 'postsEnable == true' and the number of site posts greater than 1.
Please check the comment setting in config.yml of hexo-theme-Annie!