Giter Site home page Giter Site logo

particleeffectprofiler's Issues

Game视图下看不见东西

我拖了个特效在场景,右键-特效-测试。运行起来后,Game视图看不到东西。OverDraw的数据也没有,我断点看,就是RT里面没有任何像素,都是空的。其他粒子数据是有的。请问下要咋解决下呢。

增加支持的 Unity 版本信息

建议增加支持的 Unity 版本信息。
在使用 Unity 5.6.6f2 导入项目后,有编译错误,去除未定义的枚举修正。
运行后发现使用反射调用的 API ParticleSystem.CalculateEffectUIData 不存在。

OverDraw计算不对

hello打扰了,想请教下OverDraw计算这个是怎么用的呢?
我看代码,在EffectEvla.cs中,IsEmptyPix()函数判断是否为空像素,是判断r b g是否都等于0。
我看意思,这个应该就是要把除了特效,剩下背景颜色都当成(0,0,0)。
于是我把摄像机的 Background Type设置为 Solid Color,然后Background的rgb颜色设置为 (0,0,0)。

但是我运行起来发现,黑色背景的颜色值为 (0.03137255f, 0.03137255f, 0.03137255f),不为 (0,0,0)
导致OverDraw计算时,每帧的pixTotal 都是整个屏幕像素(1280x720 = 921600),然后实际绘制的像素 pixActualDraw 也跟这个值差不多,导致OverDraw的值一直是1 。

我把 IsEmptyPix() 判断是否为空像素,改成判断r b g是否都等于0.03137255f。
但是 OverDraw 会很大,就感觉好像g值不太对。

请问是我这个使用方式有问题吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.