← Back

ofxPlasticTexture

github.com/pierrextardif/ofxPlasticTexture · @pierrextardif
OF 0.11 Releases Graphics Shaders

Generates plastic-style textures using a single auto-reloaded shader, with shortcuts to change the texture offset at runtime.

7 0 Last commit 6y ago Created 6y ago

Branches ahead of master

These branches have commits not yet on master — could be unmerged fixes or work in progress worth a look.

dev 2 commits ahead · last commit 6y ago

README

ofxPlasticTexture



OpenFrameworks Plastic textures generator.

.

Install OF

In order to install OpenFrameworks, find the guide here.

Description



Structure

The addon works with ofxAutoReloadedShader, that's the only dependency. It has been added as a local addon in order to get the exact same version.
There is only one header for easy reading, and only one shader file too.
The addon can be used as a local_addon or not, the line 14 of ofxPlasticTexture.hpp must be commented out if not used as a local addon:
#define LOCALADDON
in order to get the right path.

Getting Started



Local Addon

Add this to your OF/apps folder.

Normal Addon

Add this to your OF/addons folder, and comment out :
#define LOCALADDON
from ofxPlasticTexture.hpp line 14.

</br> Try the example.

ShortCuts:



    // ==== ofApp.cpp  
    if(key == ' ')plastic.updateTexture(); // changes textures offset
    if(key == 'r')plastic.resetTextureOffset(); // reset offset to (0,0)
    if(key == 'm')plastic.moveTexture(); // noise Offset Moves / Stops


Author



_pierre Tardif_ codingcoolsh.it :floppy_disk:

License



This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments



TheBookOfShaders :crystal_ball:

Get this addon

HTTPS
SSH

Latest release

1.0 Release-1.0 published 6y ago
version 1.0 working with Openframeworks 11.0 on macOS Catalina.