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
查看全文
相关阅读:
Alpine linux如何配置和管理自定义服务
nginx仅允许域名访问禁止IP访问
解决influxdb的log日志输出位置
python配置文件INI/TOML/YAML/ENV的区别
window获取本机所有IP
学习本来的样子
yum/编译安装Zabbix 5.0 LTS
redis问题优化
解决nginx同端口强制跳转https配置ssl证书问题
通过DNS验证自动申请nginx证书
原文地址:https://www.cnblogs.com/len3d/p/1172893.html
最新文章
Mysql常用命令(一)
历史书单
Java 集合系列0、概述
Spring源码分析:Spring IOC容器初始化
Spring-Boot:Spring Cloud构建微服务架构
Spring-boot:5分钟整合Dubbo构建分布式服务
Spring-Boot:6分钟掌握SpringBoot开发
Spring-boot:快速搭建微框架服务
Stream-快速入门Stream编程
Python-WXPY实现微信监控报警
热门文章
将博客搬至CSDN
Python 错误类型及解决方法
Python 读取 pkl文件
OpenCV Python教程(1、图像的载入、显示和保存)
Python实现knn
python 读取文件夹下的图片进行处理
常见机器学习算法比较
Python基础教程笔记 第二章
配置ubuntu16.04下Theano使用GPU运行程序的环境
Python基础教程笔记 第一章
Copyright © 2011-2022 走看看