DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

New Core Image Procedural Noise Generators for Filterpedia

In image processing a noise potentially annoys. But in some cases it embellishes. This short article describes some interesting applications of purposeful distortion.

Simon Gladman user avatar by
Simon Gladman
·
Apr. 21, 16 · Review
Like (2)
Save
Tweet
Share
4.57K Views

Join the DZone community and get the full member experience.

Join For Free


One of the great advantages of Core Image Kernel Language being such a close relative of GLSL is that I can scour through sites such as Shadertoy and GLSL Sandbox and copy some of the amazing work produced by their contributors pretty much verbatim to create new Core Image filters. 


Two such examples my CausticNoise (based on this Shadertoy project) and VoronoiNoise (based on this GLSL Sandbox project) filters. Both of these generator filters have now been included in Filterpedia and can be used like any other Core Image filter. 


Caustic Noise

Caustic Noise generates a tileable and animatable noise reminiscent of the caustic patterns you may see at the bottom of a swimming pool. On its own, it creates a nice effect, however, I've chained together with my height field refraction kernel that powers my RefractedTextFilter, to create a CausticRefraction filter:











Since the filter is animatable by its inputTime attribute, it works very nicely with live video. My NemoCam project applies caustic refraction to a live video feed from an iOS device to give a wobbly, underwater effect:

Voronoi Noise

Voronoi noise (also known as Worley or cellular noise) is created by setting the color of each pixel based on its distance to the nearest randomly distributed point. This filter is also animatable (as you can see above) by incrementing its inputSeed attribute. 


Using my normal map filter, both of these noise generators make excellent sources for normal maps for SceneKit materials:



Core Image for Swift 

If you'd like to learn more about the power of Core Image for generating textures, including how to leverage Metal compute shaders to create other types of noise, may I recommend my book, Core Image for Swift.


Core Image for Swift is available from both Apple's iBooks Store or, as a PDF, from Gumroad. IMHO, the iBooks version is better, especially as it contains video assets which the PDF version doesn't.


Filter (software)

Published at DZone with permission of Simon Gladman, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How Observability Is Redefining Developer Roles
  • How To Create and Edit Excel XLSX Documents in Java
  • Upgrade Guide To Spring Data Elasticsearch 5.0
  • Mr. Over, the Engineer [Comic]

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: