火焰特效MaxScript——1.1版

主要功能:

在上一个版本的基础上添加新的功能

增加渲染预览功能

 

utility FireEffect "火焰特效" width:162 height:245 ( button btn1 "火焰" pos:[12,20] width:140 height:30 bitmap bmp1 pos:[12,70] width:140 height:120 button btn2 "渲染预览" pos:[51,205] width:64 height:21 on btn1 pressed do ( sgizmo = spheregizmo radius:80 vf = fire_effect() addAtmospheric(vf) appendGizmo vf sgizmo cam = freeCamera pos:[0,180,0] target:(targetObject()) max vpt camera ) on btn2 pressed do ( view = render outputwidth:140 outputheight:120 vfb:off bmp1.bitmap = view ) )

 

代码运行效果:

 

火焰特效MaxScript——1.1版_第1张图片

点击“火焰”按钮

再点击“渲染预览”按钮

火焰特效MaxScript——1.1版_第2张图片

 

你可能感兴趣的:(button)