effects

Cocos2d effects slow down FPS drammatically and how to initialize EAGLView properly

三世轮回 提交于 2019-12-11 14:22:32
问题 EDIT2: In response to the answer below I did create a different GameScene for testing the framerate performance with 4 sprites animated by a CCShaky3D effect. The problem still persist as the fps is still around ~15fps. I paste the code at the end of this question to facilitate reading. My assumption is that is due to the fact that I am running more than one CCShaky3D at the same time. Is anyone able to run multiple CCShaky3D effects at the same time without frame rate drop? I introduced

CSCore: How to apply an effect during audio capture

◇◆丶佛笑我妖孽 提交于 2019-12-11 11:09:14
问题 First of all: I found already this question: Is it possible to capture audio output and apply effects to it?. But it does not answer my question. My problem: I've asked how to record the audio output with cscore a few month ago: C# recording audio from soundcard. All that works fine, but now I would like to extend my application. I would like to offer the ability to apply effects to the recorded audio in realtime. I've already found this documentation: http://cscore.codeplex.com/wikipage

How to apply all instagram photo effects in android

坚强是说给别人听的谎言 提交于 2019-12-11 05:06:51
问题 Hi Guys I am developing a similar app like Instagram, tumbler, Filker etc. But I stuck in photo effects actually I need photo effects like Instagram. I generated some new effects by the help of Color Matrix, saturation, image masking etc. But I am not able to get similar effect like Instagram have. Any know about instagram photo effects color matrix or other fectors which give me exact effects or any library which provide me similar effects. I want to include one thing that I create some

How do I return a value from a PureScript function with an EXCEPTION effect?

风流意气都作罢 提交于 2019-12-11 01:05:28
问题 I've just started learning about PureScript effects, and I'm stuck trying to make a function that has an EXCEPTION effect. lengthGt5 :: forall eff. String -> Eff (err :: EXCEPTION | eff) String lengthGt5 a = if (length a <= 5) then throwException $ error "Word is not the right length!" else a main = do word <- catchException handleShortWord (lengthGt5 "test") log word where handleShortWord err = do log (message err) return "Defaut::casserole" When I try and run this I get the following error

WPF ShaderEffect with PS 3.0 shaders

不羁岁月 提交于 2019-12-10 12:05:48
问题 Where could I find examples of PS 3.0 shaders used as ShaderEffects for WPF 4? I'm looking for tutorials, presentations, any resource on this matter. 回答1: The best information you're going to get is that of the MSDN documentation for the ShaderEffect class in WPF 4.0. Were you looking for anything more specific? 回答2: In fact, there still aren't any resources at all on WPF + PS 3.0 (at least after searching 20 minutes on the web). You'll have to wait or create your own PS 3.0 shaders. 来源:

DirectX world view matrix multiplications - GPU or CPU the place

帅比萌擦擦* 提交于 2019-12-10 10:27:34
问题 I am new to directx, but have been surprised that most examples I have seen the world matrix and view matrix are multiplied as part of the vertex shader, rather than being multiplied by the CPU and the result being passed to the shader. For rigid objects this means you multiply the same two matrices once for every single vertex of the object. I know that the GPU can do this in parallel over a number of vertices (don't really have an idea how many), but isn't this really inefficient, or am I

Create custom FrameworkContentElement to add diagonal line over text in WPF

泄露秘密 提交于 2019-12-10 03:49:11
问题 Is there any way to create a custom FrameworkContentElement (or an Inline ) that draws a diagonal line over its content? Something like Strike-through decoration but with a diagonal shape: It is not possible to inherent from TextDecoration or TextEffect (they are sealed). Any idea? 回答1: UPDATE : I tried to create an example as minimal as possible. In more complex scenarios you will have to extend this. Here is how it looks: this is the corresponding xaml: <AdornerDecorator> <StackPanel>

Android Cover Flow with image shadow effect

喜夏-厌秋 提交于 2019-12-09 23:52:12
问题 I want to implement cover flow as below I have tried Carousel, but its not the same thing. Did some google search was not able to find something even near to the cover flow implemented in given example. 回答1: Definitely have a look at this, FancyCoverFlow. There is a demo app for it in the Play store as well that shows the reflection requirement you'd like. 回答2: have you tried this: blog post public Bitmap getRefelection(Bitmap image) { // The gap we want between the reflection and the

Glass effects UIView

孤街浪徒 提交于 2019-12-09 21:34:38
问题 I would like to know how it is possible to add a glass effect on a UIView I would like something like this effects on the gray translucent view you can see here : Thanks 回答1: There's nothing like glass effect in UIView .All you can do is set the opacity of the view between 0 and 1.Also the view shown above has fine set of images which makes it seem like your "Glass Effect". Well If you what your UIView to be "shiny and elegant" , you can do it in two ways :- 1>You can simply have effects in

Apply Post Render Effect to SpriteBatch in XNA

那年仲夏 提交于 2019-12-09 13:50:15
问题 Is there a way, in the XNA framework, to render your 2D scene using the typical SpriteBatch method and then, after that frame is rendered, apply effect to the whole image? For example, blurring, sepia or even making the whole thing look like an old time movie film, with grain, dust, lines, etc? 回答1: Yes - what you'll do is set the render target to render to a texture instead of out your graphics hardware. Then, once your output is in a texture you'll apply your pixel shader effects, and send