zoukankan
html css js c++ java
a test example for eray
#include
"
eray.h
"
ei_verbose( on );
ei_link(
"
base
"
);
ei_options(
"
opt
"
);
ei_samples(
-
1
,
1
);
ei_contrast( .
1
, .
1
, .
1
);
ei_trace_depth(
2
,
2
);
ei_end_options();
ei_camera(
"
cam1
"
);
ei_frame(
1
);
ei_output(
"
jpg
"
,
"
x.jpg
"
);
ei_focal(
100
);
ei_aperture(
144.724029
);
ei_aspect(
1.179245
);
ei_resolution(
500
,
424
);
ei_end_camera();
ei_instance(
"
caminst1
"
);
ei_init_object(
"
cam1
"
);
ei_end_instance();
ei_shader(
"
point_light_shader
"
,
"
point_light
"
,
"
color
"
, ei_val(color(
1
,
1
,
1
)),
"
shadow
"
, ei_val( on ),
"
factor
"
, ei_val(
1
), ei_end );
ei_light(
"
light1
"
);
ei_lightsource(
"
point_light_shader
"
, ei_end );
ei_origin(
141.375732
,
83.116005
,
35.619434
);
ei_end_light();
ei_instance(
"
lightinst1
"
);
ei_init_object(
"
light1
"
);
ei_end_instance();
ei_shader(
"
phong_shader
"
,
"
phong
"
,
"
ambience
"
, ei_val(color(
1
,
1
,
1
)),
"
ambient
"
, ei_val(color( .
5
, .
5
, .
5
)),
"
diffuse
"
, ei_val(color( .
7
, .
7
, .
7
),
"
specular
"
, ei_val(color(
1
,
1
,
1
)),
"
exponent
"
, ei_val(
50
), ei_end );
ei_material(
"
mtl
"
);
ei_opaque();
ei_surface(
"
phong_shader
"
, ei_end );
ei_end_material();
ei_object(
"
obj1
"
);
ei_visible();
ei_shadow();
ei_trace();
ei_group(
"
mesh
"
);
ei_vector(
-
7.068787
,
-
4.155799
,
-
22.885710
);
ei_vector(
-
0.179573
,
-
7.973234
,
-
16.724060
);
ei_vector(
-
7.068787
,
4.344949
,
-
17.619093
);
ei_vector(
-
0.179573
,
0.527515
,
-
11.457443
);
ei_vector(
0.179573
,
-
0.527514
,
-
28.742058
);
ei_vector(
7.068787
,
-
4.344948
,
-
22.580408
);
ei_vector(
0.179573
,
7.973235
,
-
23.475441
);
ei_vector(
7.068787
,
4.155800
,
-
17.313791
);
ei_vertex(
0
);
ei_vertex(
1
);
ei_vertex(
2
);
ei_vertex(
3
);
ei_vertex(
4
);
ei_vertex(
5
);
ei_vertex(
6
);
ei_vertex(
7
);
ei_polygon(
"
mtl
"
,
0
,
1
,
3
,
2
, ei_end );
ei_polygon(
""
,
1
,
5
,
7
,
3
, ei_end );
ei_polygon(
""
,
5
,
4
,
6
,
7
, ei_end );
ei_polygon(
""
,
4
,
0
,
2
,
6
, ei_end );
ei_polygon(
""
,
4
,
5
,
1
,
0
, ei_end );
ei_polygon(
""
,
2
,
3
,
7
,
6
, ei_end );
ei_end_group();
ei_end_object();
ei_instance(
"
inst1
"
);
ei_init_object(
"
obj1
"
);
ei_end_instance();
ei_instgroup(
"
world
"
);
ei_init_instance(
"
caminst1
"
);
ei_init_instance(
"
lightinst1
"
);
ei_illuminate(
"
lightinst1
"
);
ei_init_instance(
"
inst1
"
);
ei_end_instgroup();
ei_render(
"
world
"
,
"
caminst1
"
,
"
opt
"
);
//
render frame 1
ei_incremental_camera(
"
cam1
"
);
ei_frame(
2
);
ei_output(
"
jpg
"
,
"
y.jpg
"
);
ei_aperture(
100
);
ei_end_camera();
ei_incremental_shader(
"
point_light_shader
"
,
"
color
"
, ei_val(color(
1
,
0
,
1
)), ei_end );
ei_render(
"
world
"
,
"
caminst1
"
,
"
opt
"
);
//
render frame 2
查看全文
相关阅读:
第八章:Junit—— Eclipse 中 Junit 中的 webDriver 解压版
第八章:Junit—— Eclipse 中 Junit 中的 webDriver 完整版
第八章:Junit——在 Eclipse 中里面 导入 Junit 的 jar 包
20135203齐岳信息安全系统设计基础——实验三实验报告
20135203齐岳 信息安全系统设计基础第十二周实践总结
20135203齐岳信息安全系统设计基础——实验二实验报告
20135203齐岳 信息安全系统设计基础第十一周学习总结
20135203齐岳信息安全系统设计基础——实验一实验报告
20135203齐岳 信息安全系统设计基础第十周学习总结
20135203齐岳 信息安全系统设计基础第九周学习总结
原文地址:https://www.cnblogs.com/len3d/p/1172893.html
最新文章
AutoIT: 如何从excel中取值并判断条件?
AutoIT: 对数据库的访问,数据提取操作
AutoIT: 返回文件目录下所有的文件名,包括子文件
AutoIT: 下载文件函数
AutoIT: 如何通过坐标相对位置来对无法识别的Menu以及GridView进行定位点击操作
AutoIT: WinGetText的作用
AutoIT: 处理GridView控件的一些折中方法
AutoIT: 捕捉路由器登陆的小例子
AutoIT: 通过页面抓取来陈列任务管理器里面所有进程的列表
AutoIT: 学习对GUI Sample上所有的资源进行操作
热门文章
AutoIT: FileReadLine可以对文件进行读行操作
AutoIT: ControlCommand是一个非常重要的指令
AutoIT: 对文件系统的菜单进行操作,有专门的语句WinMenuSelectItem
第三章:使用 FildElements 来练习元素定位
第三章:CssSelector 来定位 class 复合元素的样式
1. 常用的 dos 命令
第八章:Junit——TestSuite 的测试套件的 事例
第八章:Junit——TestSuite 的测试套件的理解
第九章:testng——在 Androd Eclipse ADT 在线安装失败的处理方法
第九章:testng——在Android Eclipse ADT 中 在线安装步骤
Copyright © 2011-2022 走看看