I'm learning XNA, little stuck. I need a fade from 255 black to transparent, can I achieve this by using GraphicsDevice.Clear method?
Related
I'm attempting to create a painting app for iOS. One feature I hope to have is like Photoshop's "Mixer Brush Tool." In Photoshop you can adjust the wetness, mix and flow of the brush.
I looked at all the core image effects, even the distortion effects but did not see anything similar. Anyone know of any sample code that does this? If not, any direction to guide me through would be great. I'm stuck at the moment.
I am looking to add the ability to draw shading into a project I am working on. Basically I need to replicate shading that appears on the bottom and right part of a frame border. I have added a reference to it below.
Has anyone got any knowledge on how to achieve this sort of shading? I have never dealt with this form of shading before.
I'm trying to work on the graphical aspect of a game I'm designing in Xcode using sprite kit, and I was wondering if anyone knows how the main character sprites in games like Leo's Fortune and Badland are animated when touched (they fluff up and morph very fluently). How could this be accomplished and what compatible file type could execute this fluent animation? Is .flv compatible with Xcode? I would rather not change the texture in a keyframe sort of way with a .png because that would require a lot of textures at a high texture switching rate.
Any advice on this matter would be greatly appreciated
Thanks
I'm working on an paint app for iOS platform.And I used CGContextAddQuadCurveToPoint to make the line more smooth. But I'm stuck in how to simulate the stroke.
Papers 53 is a really cool app. I just wanna simulate the stroke just like what 'Papers 53' does.
Any idea about changing the width of the line dynamically and smoothly during drawing?
I found an article about this stuff.
http://www.merowing.info/2012/04/drawing-smooth-lines-with-cocos2d-ios-inspired-by-paper/
This one is really reliable and I just used its algorithm to simulate smooth stroke by using Quartz2d successfully.
I'm looking to draw a custom shape (say, a solid rectangle) using openGL ES in an iOS game built upon the Cocos2d framework. In another StackOverflow question, I saw a suggestion to use [CCDirector sharedDirector].openGLView; however, I am unsure as to how to go about this. Perhaps someone can provide an example or point me to some sample code?
Thanks in advance!
There are two tutorials I can recommend for doing this, depending on what exactly you are trying to achieve.
Generating Textures using CCRenderTexture - here
Generating Textures using OpenGL - here