• 对于火焰效果的接触


    rollout FErollout "火焰特效" 180 height:245
    (
     button btn1 "火焰" pos:[12,20] 140 height:30
     bitmap bmp1 "" pos:[12,70] 140 height:120
     button btn2 "渲染预览" pos:[51,205] 64 height:21
     
     on btn1 pressed do
     (
      resetMaxFile #noprompt
      global 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 output140 outputheight:120 vfb:off
      bmp1.bitmap = view
     )
    )
    rollout r1 "参数调节" 180 height:245
    (
     spinner sp1 "浓烈程度: " pos:[40,3] 133 height:16 range:[0,50,15] type:#float
     
     slider sl1 "火焰大小: " pos:[40,28] 136 height:44 range:[0,100,80]
     
     on sp1 changed spValue do
     (
      vf.density = spValue
      if spValue <= 15 then
      (
       vf.inner_color = color 252 252 0
       vf.outer_color = color 225 30 30
      ) else if spValue >30 then
      (
       vf.inner_color = color 253 255 94
       vf.outer_color = color 144 126 255
      ) else
      (
       vf.inner_color = color 253 255 94
       vf.outer_color = color 225 129 129
      )
     )
     on sl1 changed slValue do
     (
      sgizmo.radius = slValue
     )
     on sp1 buttonup spVaue do
     (
      view = render output140 outputheight:120 vfb:off
      FErollout.bmp1.bitmap = view
     )
     on sl1 buttonup do
     (
      view = render output140 outputheight:120 vfb:off
      FErollout.bmp1.bitmap = view
     )

    FEFloater = newRolloutFloater "火焰特效浮动显示" 300 400
    addRollout FErollout FEFloater
    addRollout r1 FEFloater

  • 相关阅读:
    性能测试二十四:环境部署之Redis多实例部署
    性能测试二十三:环境部署之Redis安装和配置
    性能测试二十二:环境部署之Nginx
    性能测试二十一:环境部署之mysql
    性能测试二十:环境部署之Tomcat多实例部署+日志监控
    性能测试十九:jmeter参数优化+排错
    Zookeeper学习
    Zookeeper学习
    Zookeeper学习
    Hadoop Balancer源码解读
  • 原文地址:https://www.cnblogs.com/gaitian00/p/2210337.html
Copyright © 2020-2023  润新知