收藏 分享(赏)

VR入门必读.doc

上传人:yjrm16270 文档编号:6800666 上传时间:2019-04-22 格式:DOC 页数:11 大小:101KB
下载 相关 举报
VR入门必读.doc_第1页
第1页 / 共11页
VR入门必读.doc_第2页
第2页 / 共11页
VR入门必读.doc_第3页
第3页 / 共11页
VR入门必读.doc_第4页
第4页 / 共11页
VR入门必读.doc_第5页
第5页 / 共11页
点击查看更多>>
资源描述

1、VR 入门必读VRAY 简单使用及建议: 一 安装: 1:请下载最新版本,可以解决无法贴图问题 下载地址: http:/ http:/ 2:将.40.DLL 文件拷贝到 3DMAX 下,将.40.DLR 文件拷贝到 PLUES 下就可使用。 注意 这个插件好像设置了使用期限,过期后将日期调回去应该可以使用,但后面的版本我就不知道开发人员会不会加什么秘密武器在里面了,我的日期是在之前所有版本的限时快到时调到 2000 年的,所以一直都没出什么问题,呵呵! 二 v-ray 简单入门 1、建立场景,(怎样的场景不用我多说了,看书吧。)认为材质和摄影角度满意后,在菜单 Customizeprefere

2、ncesRenderingCurrent Renderer 中将渲染器设为 vray,这一步骤和 mental ray 渲染器的设法是一样。 2、在渲染菜单中,在 indirect illmination(GI)下,勾选 On, 就可以渲染出最简单的 GI 效果来。 3、是不是发现物体边缘有很多锯齿边?下边再勾选 Image sampler(Anti-aliasing)中的 Simple two-level。 全局照的设置过程就这么简单,刚才我所做的渲染过程也就两分钟,但是速度还和一大堆 设置有关,速度时间的弹性也很大,以上我都基本上用默认的数值。 还有一个 Multiplier 数值要注意,

3、它控制着二级照明强度,将它调大场景也许会更亮,但不要和灯光强度概念混淆了。 4、 VRAY 的渲染参数面板中, 有一个环境 Environment, 只有两项 一个是 Environent color(环境颜色)选项 ,它的作用 mental ray、FR 的环境色一样 一个是环境贴图以及强度设置。 从功能上来说,它是取代 MAX 自身参数的,最重要的作用应该是用来支持简化的 HDR 方式,就象 FR 渲染器一样,可以设置环境贴图的照明强度。 要得到天空光效果也很容易,打开 G I 后,在 MAX 环境菜单中把缺省的黑色改成一个兰灰色,或者给它一个球形环境贴图这样我们就打开了全局照明, 渲 一

4、遍试试 注意:1. vray 对 max 本身的环境色、背景不敏感。将场景中的灯 光 Exclude 掉所有物体,勾选 Environent color 下的 Override MAXS 选项,将颜色设为阳光色再渲一次,(渲染之前记得在场景中将“天窗“打开)结果如图 5 所示。 2. VRAY 对于渲染的视图有严格的要求,它必须是在有透视的视图中才能渲染,比如。透视视窗,摄影机视窗。对于 T、B、R、L、 S 、K、F、U 这一类,没有透视的视窗是什么也不会渲染的。 过程就这么简单,但经验还要慢慢陪养哟。 v-ray 入门(1 )-全局光照明 我个人的理解,vray 在不打开 gi 的情况下与

5、好像与 max 扫描线渲染器差不多,打开gi, 有两种方式急性全局光照, 1) 直接计算,速度极慢,但 gi 光照效果准确 Direct GI computation produces much more detailed images than the irradiance map; in addition it does not produce flickering in animations. For highly detailed geometry (like the one below) it will produce much more pleasing (but very slo

6、w) results. For example the attached picture rendered in 2 and a half hours (mostly because there is a HDRI map in VRays environment slot, which needed a lot of samples to remove the noise). If you are ready to accept longer render times - by all means use direct GI 1) 模拟计算,在原渲染结果上附加一层光照贴图(vray 快速 g

7、i 的秘诀), 附加方式有三种, (见 vray 附带说明书 )根据我的初步试验及理解,它好像不能改变原渲染器渲染的最亮部分,而是在原渲染的结果上附加了 gi 的效果. 全局参数的设置: 1. Max rate 参数与 Min rate 参数 我的理解: 此值表现光线的层次分布 将屏幕分成一个各小区, 光线在此分布, 设置越高, 光线层次 , 光线过渡越光滑,自然,越明显 1 ) Vray 在计算光照贴图时, 将场景细分成一个个基本正方形, 每个正方形的顶点都有一个颜色, 如果你定义一个顶点为蓝色, 另一个顶点为红色, 那么他们之间将是用蓝色到红色的平滑渐变 , 光照贴图正是用顶点颜色来表达灯

8、光效果的, vray 通过细分模型的面来达到提高精细度的目的,您可以在光能传莶问 翱诶纯刂葡阜值某潭?2) Min rate 参数控制细分的最小值. Max rate 参数控制着开始细分计算正方形的大小 渲染计算时渲染窗口中会出现一个个小方块对场景进行细分,刚开始出现小方块的大小与 Max rate 的值相关,其值越小方块越大,花的时间越短. 第二遍细分计算方块会更小 最后一遍计算时的方块大小由 Min rate 决定 Min rate 主要 一般来说,模拟计算 gi 时渲染时间主要花在光照贴图的计算上了,计算遍数或者说几幅光照贴图 (max rate 值-min rate 值 +1), 计算

9、遍数或者说几幅光照贴图 (max rate 值-min rate 值 +1) , 越多 效果就越好 也就是说 max/min 为 -9 / -2 时, 效果比 max/min -3/-2 好 2 其它参数 Hsph subdivs: 计算 gi 时的采样值,与定义值为 15,加大它肯定会增加渲染时间,但增加的不多, Hspr 细分值 默认为 15,到 2530 为佳,再大也会像 b razil 一样了 注意此值表现材质及贴图的细腻程度, 光滑程度 Clr thershold Normr thershold 根据 vray 原作者的回答: thats it. Lowering these par

10、ameters will make irradiance map calculations longer, but will capture GI detail better Personally I dont ajust these settings, But I guess if they are set to high, you start loosing detajl, and if to low, it needs more subdivs (time) to render smooth?. There is something about the detail which is l

11、ost (small objetcs such as the horizontal elements on the wall seem a bit flat. Ive read that by reducing the Normal thresh that can become better Interp. Samples: 40 (此值为光照贴图加入原渲染结果的精度,可设大一点,不太影响渲染时间) 此值太大 ,softing in surfaces, 一般 40 即可 Secondary bounces: subd: 1, depth: 3 (注意:为达到良好的 gi 效果,最好不要关掉第二

12、级反弹,节约时间的关键在于 max min 的值及光照贴图的幅数)也不要轻易的动原设定值。)depth 大一点,这样, 渲染的细节就会多一点 As for sec. bounce subdivision parameter, I think it controls the sampling of the secondary bounces, that is the higher this number is the less noisy the image. Depth 控制光线反射 ,反弹的次数, 一般场景不超过 5 假如是玻璃, 应该大一点. 关于灯光 一次反弹与二次反弹的uliplier

13、 值问题 1、非封闭空间,由于没有很多物体做光线的反射,缺省的一次、二次反弹值都是一样的,这样可以弥补空间散失的反射光线。 可以出效果,但是觉得这样的效果很平淡。(建议不要这样用。) 2、非封闭空间,可以利用环境贴图做为补充照明,所以要把二次反弹值减小。(建议这样用)要点是把环境贴图和二次反弹值 联合在一起考虑。 3、封闭空间,环境贴图已经不起作用了,但是物体已经可以形成足够的二次照明,所以如果还是用缺省的值,二次反弹就会太亮,灯光布置足够多的时候,连一次反弹都会太亮。所以我的习惯是灯光亮度、一次反弹、二次反弹的值呈降幂排列比如: 1. 20.80.5。 也可用 0.70.70.5 灯光参数的

14、意义 On - should be obvious Double-sided - this has effect only on planar maps. It will make them cast light on both sides. 两面都发光。 Transparent - when this is on, the light will not be visible, but will cast light. This can be very useful for interior scenes - you can put transparent lights at the wind

15、ows, instead of counting just on skylight. 不选中时,灯是可见的。选中时,灯不可见,可以用来模拟天光,窗口的进光 Ingore light normals - by default VRay takes in account the angle between a shadow ray and the light. This produces a noisy image, even in areas that are completely lit (not in shadow). Turning this option on will make VRa

16、y ignore this angle and will make the image less noisy (but not physically correct). 默认状态下,vray. (此处不明),这将产生麻点,即使在完全不在阴影中的区域内。勾选中后 vray 将不考虑这种这种地方,麻点会少点,(但物理上是不正确的) No decay - by default VRay lights become weaker as the distance from them increases - this is how lights behave in the real world. Howe

17、ver, it may not be very convenient to work with. Turning this option on will cause VRay to ignore this distance. You will probably have to adjust the Multiplier if you change this option. Also, it seems that using it causes some artifacts which we will try to fix. 不衰减 Store with irradiance map - thi

18、s option allows you to store the diffuse illumination from a VRay light in the irradiance map. It may be useful in fly-through animations. 与光照贴图一起保存,对游历动画很有用。 Type and Size I think are clear, with the exception of W size - currently it does nothing, since the two supported types need at most two dim

19、ensional parameters. Subdivs - this controls the quality (graininess) of the shadows. Greater values will produce smoother shadows. The parameter determines the number of samples (per pixel) that VRay will make in order to calculate the shadows (actually, this parameter is the square of the number o

20、f samples). VRay may send less (but never more) shadow rays when possible without loss in visual quality. 控制阴影的质量。大点会光滑一点。与采样值的平方成正比。 Low subdivs - this is used instead of Subdivs for irradiance map calculations and also when the level of a ray becomes greater than the degrade depth (see below). Eac

21、h intersection of a ray with a surface increases its ray level by one. For example reflections typically increase the level of a ray by one, and refractions - by two, since the ray needs to pass through the front and the back surface of the refractive objects. 这个看不懂,呵呵。 Degrade depth - this is the r

22、ay level after which Low subdivs will be used instead of Subdivs. In the recent version of VRay, sampling is to a large extent handled automatically, so you can set this to a large value without performance loss. 这个好像说没用。嘿嘿。楼 主 | Posted: 2006-11-12 10:02tds 设计 (TDS 设计互动)小技巧: 1. 要获得较理想的光照效果还必须打开二次光照反

23、射,速度将会急剧的下降 二就是加大 min rate 和 max rate(最多到-2,-1,再加大就像 brazil 一样了),或在 rate 为-3,-2 的情况下加大下面的 Hspr 细分值(默认为 15,到 2530 为佳,再大也会像 b razil级别: 管理员精华: 7 发帖: 4135威望: 2560 点积分: 1257 点贡献值: 9 点朋友圈: tds在线时间:290(小时 )注册时间:2006-09-20最后登录:2006-12-26一样了 )! 调试过程中可以暂时关掉二次反弹,正式渲染的时候再打开,不建议关掉二次反弹换取速度,会少很多效果的。 出现黑斑的处理方式: 1)、

24、优化模型,去掉模型的相交,采取平接和稍微离开一点距离的方式。 2)、加大 Irradiance 里 Hsps Subdivs 的值。 2 即使是单色的物体,比如白墙壁,都不要仅给它 MAX 的基本材质,在 DIFFUSE 里给它一个白色的贴图图片,可以减少产生黑斑。3, 草图计算时, 可先用 320x240 图幅计算光照贴图, (用此方法可加速, 也可将 Min rate 值设低, 例如为 -2 达到较好精度 ), 将光照贴图存盘, 根据 vray 作者的回答, 光照贴图及图幅的大小与出图的质量无关, 但是, 它们的渲染时间却不相同, 图幅越小, 时间越短, 具体原因如下: (问: I hav

25、e noticed that rendering the same scene using different size region devisions, you get significantly different rendertimes. I havent noticed any loss in quality really either. Could someone explain to me why there is a difference in speed. Also, is there a loss in quality? In my simple test scene I

26、dont see any, but maybe in a more complex scene it would be noticable 答: There should be no difference in the final image, no matter what is the size of your render regions. However, every region requires some setup time. Also, when you use antialiasing filters, there is a border around each region

27、that needs to be additionally rendered so that the edges of regions blend smoothly. As the region size increases, this additional work takes less time compared to the total render) 草图计算参数 (处标注外,区域为默认值) max/ min -7/-2 Interp. Samples: 100 下次正式计算时可调出, 正是出图是最好直接计算 GI(时间奇长) v-ray 入门(2 )-景深 1、参考建立场景,并开摄影

28、机的 Environment Ranges 下的show 选项。在数值里填上合适的数值,这些数值控制取景范围。你会发现在视图中,有条黄线会随数值的更改会移动,根据调Near 数值尽量把黄线放在 Camera.target 附近。当然也许你的场景中的 Near 数值会我不一样,没关系的。(Camera.target 的位置其实代表的就是兴趣点,也就是渲染完最清晰的那部份) 2、打开渲染设制,在 Filtering/DDF 卷展栏下,勾选在 Depth of field 下的 ON 选项,然后在 Focal dist 里填入刚才那个 Near 数值,这样就决定了兴趣点的位置。也可以勾选 Get f

29、rom camera(直接从摄影点获取兴趣点),如果你勾选了 Get from camera 那么刚才的 Near 数值就不起作用了。(是不是有点多此一举?如果你做的是静帖,那么直接用 Get from camera 好了。) 3、 下面有两个数值值得注意。 Shutter size:它控制着取景深度,如果把这个数值调高的话,那个景深的程度会更大些。(效果上看,更模糊点。)Subdivs:这个数值控制着景深效果的极别,把它调高的,可取得更理想的画质,(图 3 是 Subdivs=3 的效果,图 4 是 Subdivs=10 的效果。当然会增加渲染时间。我认为最后渲染时,至少要把它设为 8 以上

30、。 4. 焦点模糊速度很快。 A 区是设置焦点模糊的,勾选 ON 就可以打开了,第一个按钮是设置焦距的 下面的勾,选取后就是以摄影机的落点为焦点。下来是快门的光圈尺寸,和现实中的摄影机一样,光圈越小越清晰,越大景深越 浅越模糊。B 区是过滤方式,选项很丰富,自己慢慢去试吧。评价是可用、好用、设置简单、速度飞快。 v-ray 简单入门(3 )-焦散。 要作出焦散效果: shadow 要用 vray shadow , 反射和折射贴图都要用 VRAYMAP 才行 焦散的参数简单得只有 4 个参数 Sph Subdivisions 越大越真实, 注意, 其值大小的 2 倍与渲染时间成正比 Multip

31、ler 越大焦散效果越明亮 Search Dist. 焦散光子的追踪影响的范围值, 调小了就会一个一个的光斑很明显,如果大一点速度就会明显下降,但是效果很好。 Max Photons 控制焦散效果的清晰与模糊, 越大, 越模糊, 其值为 15 时, Sph Subdivions 大于 6000 后才起作用 , 但这时的焦散效果并不是太好 1. 勾选参数后,加大 MULTIPLIER 值到 60000 左右就可以出效果了,你颗狠心将其加到 100000(最大值), 其速度仍然飞快 . 注意: 渲染时间的平方与 sph subdivs 参数值的两倍成正比 2. 还有个办法是加大灯光的亮度然后调整灯

32、光的衰减值,根据其官方范例的的灯光设置时,用 vray light 将灯的强度调到 20,000 以上例如 600,000,再打开灯光的指数衰减, 但是我想说的是如果这样设置将使灯光的摆放位置成为问题,因为有了衰减,灯离的远些就会使场景迅速变暗,而更糟糕的是就会出现你渲染的图里那种很亮的边缘(靠近灯光)而另一边很暗。 有办法可以解决此问题,就是灯光使用默认强度(一般为 1.0),再到 Vray 渲染面板, 在散焦一栏里将强度(英文是 Multiplier)设为 800000 左右,就可轻松设置灯光了!欢迎指教! 前一个方法简单一点,我常是两者合用。我发现它的好处是焦散的效果似乎能落在透明材质本

33、身里面,这样玻璃的效果非常好。 Actually, for the past month or so, you havent had to stick to the method in the documentation, new features have since been implemented to make that outdated. You can use any of the max standard lights. Ive had good success with caustics by using normal light values (eg multiplier 1

34、, no decay etc) and boosting the caustics multiplier in the vray rendering parameters instead to 100000. I also find that decreasing the caustic search parameter to 1 or less and increasing the subdivisions and photons will give really nice clear sharp caustics (no blurry splodges of light) Again I

35、wish there was a feature to save the caustics map, similar to how you can save the irradiance map. Also would like to be able to tell vray which lights to cast photons, as I usually only want 1 or 2 lights to cast caustics. not all of them v-ray 简单入门(4 )-材质的制作 1. 金属的制作: As for the metal material, se

36、t diffuse color to be a dark to very dark grey - VRay reflection map to almost white, say 80 - 85% white and glossiness 20 - 40 depending on how soft you want. Glossy samples should be at least 6 but 8 provides a nice smooth result with just enough noise to create a shimmery feel. Ill do tests at 4

37、samples just to get quicker idea. The nice thing about now being able to save irradiance maps is that testing refections and refractions is much faster. Crome. Make a Vray Material. Set the reflection color to a full white for a absolutly perfect crome surface. (you might want to mess it up a bit?)

38、2. 玻璃的制作: 331.2 in reply to 331.1 Glass. Make a Vray Material. Set the reflection color to a full white and make it fresnel. Set the refraction color to a near full white. Set the IOR around 1.55. Yes, you can do fast, realistic thin glass just by making a transparent material with in IOR of 1 and F

39、resnel reflectance with an IOR of 1.6 or so - but until VRay gets itself a proper, integrated material, it wont look quite right with GI and caustics - but it doesnt do that yet anyway. well. for architectural renderings, Ive been using architecturalglass (doh!), a free script/material that quickly

40、helps you make good fast rendering glass by automating the task of getting up and running those falloff maps one should use when making realistic glass. The only thing youve to do by hand (because it even has preset parameters| remember to click on faloff and shadow maps boxes to get them generated)

41、 is to change the generated raytrace map for a vray map, so it gets realistic reflections rendered. The fresnel parameter works nice with scanline, and youd have to do the same thing with the map (change it to vray map and set it to refraction). Get it at Works well for me 3 bump 贴图问题 有四种解决在间接光照下 b

42、ump 的办法, 1. 用 Direct GI (等于没说), 不过这是 Vlado 说的,权威性不消说,我看得心都凉了。 2. 使用 Glossy Reflection, 这样可以比较真实地计算出 bump。给一点点反射贴图,使用 glossy 模式(vraymap 中的)。但是.时间也不好说了。相信是正确的,我也试了一下。时间宝贵,舍不得开 glossy,直接 reflection 了。 3. 使用大片的 vraylight 面光源来模拟天光,而不是直接使用天光。Vlado 也提到用 vraylight 这一点,当时没明白,今天看到 vlado给出的他 sponza 渲染,明白了。这个对于

43、完全室内的(如前面的那个室内教堂)还是有问题的。我想来我只能偷偷地打辅助光了 4. Concerning bump maps: Correct bump maps are already supported, its only sample madness. You need a lot of GI samples and for shiny materials the speculars 如何模拟室外窗口照亮室内的 scene so whats now with an checkbox for interiorscenes. First You had to overexpose the s

44、un and sky, and then you had to define the windows as lightsource a special windowsmaterial would be the same. 三 使用经验: 1: 灯光:增加 VRAYLIGHT 灯,可修改长宽,可做线槽发光效果。SAMPING 是用来调整阴影精度的,但速度也会慢。 建议:使用 MAX 自带的灯,可提高速度,做线槽发光效果再用。 2: 贴图:MAX 中增加两个 VRAY 贴图,反射中用 VRAYMAP, 建议:可不用修改参数,修改色彩即可。可提高速度。 3: 渲染:勾选 ADAPTIVE 项,其中参数可提高渲染抗锯齿精度 .勾选 INDIRECT ILLMINATION 项打开 4. gi 时 只有 vray 专用影子,才有阴影 ,反射必须用 vray 贴图 5 做焦散灯光强度要高 300-1000 灯光要用反比衰减 阴影最好打开 vray map. 还有焦散的光子反弹量要在 300-1000 左右 4. 关于反射的效果,你只要在反射里面贴上 vray 专用反射帖图就可以获得很好的效果了。 如果你打开 GI,最好不要让天空是黑色(除非是夜景)因为如果你调了反射的话,就很可能反射的是天空,当然是黑色的了 因为 vray 对反射算的很精确。

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报