火焰特效MaxScript——1.2版
实现功能:
增加一个可以调节火焰密度的Spinner
通过调节Spinner的值
实现火焰的浓烈程度
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 rollout r1 "参数调节" width:162 height:245 ( spinner sp1 "浓烈程度: " pos:[16,7] width:133 height:16 range:[0,50,15] type:#float on sp1 changed spValue do ( vf.density = spValue ) ) on FireEffect open do ( addRollout r1 rollup:true ) on FireEffect close do ( removeRollout r1 ) on btn1 pressed do ( resetMaxFile #noprompt 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 ) )
文章来源: blog.csdn.net,作者:fengda2870,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/fengda2870/article/details/5572458
- 点赞
- 收藏
- 关注作者
评论(0)