Q109:用PBRT渲染Blender导出的模型 (2)
来源:互联网 发布:南昌小目标网络 编辑:程序博客网 时间:2024/05/16 16:03
前续:Q109:用PBRT渲染Blender导出的模型
这里只是小编自己练习用Blender建模的笔记。
还是参考:台湾大神的blender教程全集
对应内容是其中“小狗玩具模型”部分。
理论部分和“前续”是一样的,后面主要是小编看视频学习时做的笔记。还有就是,将模型导出后,用PBRT渲染时的脚本机器输出图形。
笔记
PBRT脚本
#sharp.pbrt -- a simple pbrt input file that displays a cone, sphere# and refletive plane#Richard P. Sharp - CIS782 Fall 2004#first we set up the eyeLookAt 1 5 10 0 0 -3 0 1 0 #ex ey ez lx ly lz ux uy uz#the cameraCamera "perspective" "float fov" [30]#this is the filter used for antialiasingPixelFilter "mitchell" "float xwidth" [2] "float ywidth" [2]#name the fileFilm "image" "string filename" ["doggie.exr"] "integer xresolution" [400] "integer yresolution" [400]Sampler "sobol" "integer pixelsamples" [64]Integrator "directlighting"#begin describing sceneWorldBegin#light sourceAttributeBegin CoordSysTransform "camera" LightSource "distant" "point from" [0 0 0] "point to" [0 0 1] "color L" [3 3 3]AttributeEnd#transform the worldAttributeBegin Translate 0 -1 0 Rotate 35 0 1 0 AttributeBegin Scale 1.5 1.5 1.5 Translate 1.5 1.5 -1.5 Rotate -90 0 1 0 Material "plastic" "color Kd" [.4 .2 .2] "color Ks" [.5 .5 .5] "float roughness" [.025] Shape "plymesh" "string filename" "geometry/mesh_00001.ply" AttributeEnd AttributeBegin Scale 1.5 1.5 1.5 Translate 1.5 1.5 -1.5 Rotate -90 0 1 0 Material "plastic" "color Kd" [.4 .2 .2] "color Ks" [.5 .5 .5] "float roughness" [.025] Shape "plymesh" "string filename" "geometry/mesh_00002.ply" AttributeEnd AttributeBegin Scale 1.5 1.5 1.5 Translate 1.5 1.5 -1.5 Rotate -90 0 1 0 Material "plastic" "color Kd" [.4 .2 .2] "color Ks" [.5 .5 .5] "float roughness" [.025] Shape "plymesh" "string filename" "geometry/mesh_00003.ply" AttributeEnd AttributeBegin Scale 1.5 1.5 1.5 Translate 1.5 1.5 -1.5 Rotate -90 0 1 0 Material "plastic" "color Kd" [.4 .2 .2] "color Ks" [.5 .5 .5] "float roughness" [.025] Shape "plymesh" "string filename" "geometry/mesh_00004.ply" AttributeEnd #define a reflective ground plane AttributeBegin Scale 20 20 20 Material "matte" "color Kd" [0.1 1 1] #this is a triangle mesh, the first set of points define four xyz #coordinates, the second set defines the mesh by indexing into #those points Shape "trianglemesh" "point P" [ -1 0 -1 1 0 -1 1 0 1 -1 0 1 ] "integer indices" [ 0 1 2 2 3 0 ] AttributeEndAttributeEndWorldEnd
输出图形
45度角:
90度角:
丑晕了啦,对不起大神的教学视频。
原图:
阅读全文
1 0
- Q109:用PBRT渲染Blender导出的模型 (2)
- Q109:用PBRT渲染Blender导出的模型(3)
- Q109:用PBRT渲染Blender导出的模型
- blender导出的模型在unity里无法贴图材质
- 用Blender导出模型文件,与贴图制作
- 如何使用Blender将点模型的obj文件渲染成网格模型
- [软件渲染器入门]三,加载通过Blender扩展导出JSON格式的网格
- 使用Blender批量导出/转换模型
- 使用Blender批量导出/转换模型
- 使用Three.js + Blender构建在浏览器端显示的3D模型(2)
- Q128:PBRT-V3,“体渲染”积分器的“传播方程”(15.1章节)
- 关于blender导出urho3d场景的问题
- PBRT 具有照片真实感的渲染和光线追踪算法
- (转载)在C++程序中使用pbrt进行渲染
- Q126:PBRT-V3,VolPathIntegrator(体渲染)流程概述
- Q140:PBRT-V3,各种渲染算法(Integrator,积分器)汇总
- 【H5 3D应用开发】Blender 制作导出Obj模型带纹理到three.js(二)
- Q118:PBRT-V3材质及其对应的反射模型(笔记)
- 64bit centos如何编译 32bit的程序
- 1、不一样的C++系列--C到C++的升级
- POJ2674-Linear world
- android p2p 学习
- Linux--重定向dup&&dup2
- Q109:用PBRT渲染Blender导出的模型 (2)
- Android状态机源码分析
- hdu 1007 解法
- openvpn实现内网 映射到 外网
- 实现 QPushButton 默认效果
- 关于hdu 1007 老是 TLE的认知
- ARM开发板开发基础
- JAVA模拟实现Windows屏保/实现JFrame窗口透明到桌面
- FCN中反卷积、上采样、双线性插值之间的关系