Create realistic clouds in Xcode [closed] - ios

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to dynamically create realistic clouds including their movement and multiplication (density). I found this link which seem to explain more than I can understand. I cannot find a way to replicate the clouds and there is practically no other tutorial online. Does anyone know how can I achieve this result? Thank you in advance!

use scene kit you can make a dynamic particle effect:
https://developer.apple.com/library/prerelease/ios/samplecode/SceneKitVehicle/Introduction/Intro.html
in this example you can find, after the vehicles code, the smoke animation. You can gat all the stuff you need from there, like smoke.scnp, smoke.png.
You need to change some row of code like the smoke color, the light color and the camera position.
But with that i guess you can have one of the best result possible, as real time cloud simulation, in iOS.
(other solution would be using openGL but trust me this is a ton easier)
maybe this guide can also be useful to understand the basis (you just need them to achieve your clouds) :
http://www.raywenderlich.com/83748/beginning-scene-kit-tutorial

Related

In Swift 4, how do you create bright/shiny/glowy views? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Im trying to create a view that glows very intensely and in the dark even, kind of like what this app here has accomplished (https://itunes.apple.com/us/app/mood-colors/id545822095?mt=8). I tried adding a sprite kit particle to the view and started messing with that but it really didn't take me anywhere and I couldn't get the results I wanted. Any help would be greatly appreciated. Also, incase you want to know, I am working with Swift 4 on a regular single view app and I am a bit of a beginner.
Thanks in advance.
This is only images showed with bright colors. If the images have very vibrant colors this could be achieved. It also looks like there are several shapes that the user can set a color to themself. But please bear in mind that phones using OLED (as iPhone X) can burn the image in and destroy the screen if something is shown very statically.
If you like to draw shapes (like a star) there is a solution That can be found here
Happy coding!

Recognising complex objects in an image [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm going to be more specific about the situation:
I've captured a screenshot from the game DotA. The information I want to get is what objects eg. heroes (also its name, hp, ...), creeps (also which side), towers, etc. is visible in the image and where they are. A problem come from the fact that in DotA 2 many of these object can be viewed from many perspective, so let's reduce the problem and assume that every object have only one orientation. How might this problem be solved quickly enough, that it can recognise all objects in real time at about 30fps? Any help or suggestions is welcome.
I think that you have the good flags: CNN for image segmentation. So my point is that for so many different objects from different points of view and scale (because I guess that you can zoom in/out on your heroes/objects), the easiest way (but the heaviest in term of computation) is to build one CNN for each type of object.
But images would help a lot to get a better understanding of the problem.

Paint Bucket in iOS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm stuck on a problem and needed some help or guide for a possible solution.
Basically in my application there will be a map with several zones.
The user can select any of these areas, at that time this area is filled with a color.
Imagine a map like this one, so i need to be able to change the color of only one country.
Something like what happens in the books of paintings (https://itunes.apple.com/pt/app/colorfly-best-coloring-book/id1020187921?mt=8), or Paint Bucket command in the Photoshop .
Any idea how to get something like this on iOS ?
Thanks in advance
The paint bucket technique you're looking for is a set of graphics algorithms usually called "flood fill". There are different approaches to the implementation depending on the circumstances and performance needs. (There is more at that wikipedia link.)
I have no experience with it, but here is a library from GitHub that purports to implement this for iOS given a UIImage object: https://github.com/Chintan-Dave/UIImageScanlineFloodfill
Re: your question about doing this without user touch: yes, you'll want to keep a map of countries to (x,y) points so you can re-flood countries when required. That said, the intricacies of the county borders might make an algorithmic fill inexact without more careful normalization of the original source. If your overall map only contains a small set of possible states, there are other ways of achieving this goal, like keeping a complete set of possible images (created in ie Photoshop) and switching them out, or keeping a set of per-country "overlay" images that you swap in as needed. (But if the flood fill is accurate on that source image, and performant for your needs, then great.)

Side-scrolling "map" or "level" game for ios [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to make a simple game with a sidescrolling map.An object is supposed to move through this "map" and it should include walls and other objects which my moving object can collide with. I have been looking some at spritekit and that seems like the thing I want to use.
My question is how do i make that kind of side-scrolling map which includes walls and other objects?
The sample "Adventure" project from Apple (and the accompanying documentation) provides scrolling maps, walls, and the rest of what you're looking for. It's top-down, not side-scrolling, but all the principals are the same. The only thing you'd need to make it properly side-scrolling is new art and gravity (which the SpriteKit tutorial does a reasonable job of explaining).

How can you draw candlestick charts on iOS? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am new to Quartz, and I would like to draw a candlestick chart in iOS, but I don't know how.
How can I draw charts like this? Are there any good examples for iOS?
Core Plot may be able to do it. If not, it's probably a pretty easy thing to add to the Core Plot library.
http://code.google.com/p/core-plot/
You can do it with SwiftCharts, there are 2 candle sticks examples ready to use - one interactive and other not-interactive (with less overhead, in case you don't need interactivity)
(Disclosure: I'm the author)

Resources