Sample applications for the Cinder framework
C C++ GLSL Other
Switch branches/tags
Nothing to show
Clone or download
paulhoux Added color dithering sample, showing the effect of dithering on the …
…quality of the image.

If you run this on a laptop, you'll notice that 6-bit dithering seems to look better than no dithering. This is probably due to the fact that most laptop panels are actually 6-bit color depth.
Latest commit 198ad7e May 23, 2018
Permalink
Failed to load latest commit information.
All/common Added formatter script and reformatted the source code. May 13, 2016
AnalogClock Formatting. Mar 29, 2018
AudioVisualizer Updates to make the samples compatible with Cinder v0.9.1 Mar 29, 2018
BloomingNeon Updates to make the samples compatible with Cinder v0.9.1 Mar 29, 2018
BouncingBalls Updates to make the samples compatible with Cinder v0.9.1 Mar 29, 2018
DepthOfField Updates to make the samples compatible with Cinder v0.9.1 Mar 29, 2018
Dithering Added color dithering sample, showing the effect of dithering on the … May 23, 2018
FXAA Formatting. Mar 29, 2018
FlickrImageViewer Formatting. Mar 29, 2018
GeometryShader Updates to make the samples compatible with Cinder v0.9.1 Mar 29, 2018
HexagonMirror Formatting. Mar 29, 2018
OneWorldMultipleWindows Formatting. Mar 29, 2018
PerspectiveWarping Updates to make the samples compatible with Cinder v0.9.1 Mar 29, 2018
PickingByColor Formatting. Mar 29, 2018
PostProcessing Updates to make the samples compatible with Cinder v0.9.1 Mar 29, 2018
SMAA Formatting. Mar 29, 2018
ShaderToy Formatting. Mar 29, 2018
SimpleSceneGraph Formatting. Mar 29, 2018
SimpleShader Updates to make the samples compatible with Cinder v0.9.1 Mar 29, 2018
SmoothDisplacementMapping Updates to make the samples compatible with Cinder v0.9.1 Mar 29, 2018
Stars Formatting. Mar 29, 2018
TextRendering Formatting. Mar 29, 2018
TransparentMesh Formatting. Mar 29, 2018
.clang-format Add Clang format. May 11, 2016
.gitignore Updates to make the samples compatible with Cinder v0.9.1 Mar 29, 2018
FOLDERS.jpg - Aug 10, 2013
README.md Update README.md Mar 29, 2018
build.bat Updates to make the samples compatible with Cinder v0.9.1 Mar 29, 2018
formatter.bat Added formatter script and reformatted the source code. May 13, 2016

README.md

Cinder-Samples

Sample applications for the Cinder framework. These samples are meant to be used with the latest official release of Cinder. Git users should build against the 'master' branch.

These code samples are compatible with the Microsoft Visual Studio 2015 compiler, which is the compiler of choice for the Windows platform. XCode support for MacOS X is currently not officially supported, but the C++ and GLSL source code should run on all platforms without modifications. If you find an inconsistency or platform related bug, please notify me or create a pull request, so that I can fix the issues and make these samples as cross-platform as possible.

Find specific, sample related information in the sample's README.md files.

Downloading and using the samples with Cinder
  • Make sure you have downloaded the Cinder Framework. It is recommended to use Git, because this will make it easier for you to keep up to date with the latest versions of both Cinder and these samples. To learn more about how to create a copy of the Cinder Github repository, visit: http://libcinder.org/docs/welcome/GitSetup.html
  • Make sure the Cinder master folder is called cinder_master, so that the samples can find it automatically.
  • Make sure you can successfully compile Cinder yourself.
  • Download the samples and place them next to Cinder's master folder:
  • Open a command window (or Terminal)
  • Switch to the disk containing the Cinder root folder, e.g.: d:
  • Browse to the Cinder root folder: cd path\to\cinder_master
  • The samples must be placed next to the cinder_master folder, so go up one level: cd ..
  • Clone the samples repository: git clone https://github.com/paulhoux/Cinder-Samples.git cinder_samples
  • Your folder should now look like this:

Folders

  • Alternatively, you can download the repository as a ZIP-file and manually add the files to a "cinder_samples" folder.
  • To run a sample, browse to the sample's folder and double-click the pre-compiled executable (.exe)
  • To compile the sample yourself, browse to the sample's project folder (e.g. vc2015) and double-click the project file (.vcxproj) or solution (.sln) to open it in Visual Studio. Then, press F7 to compile the sample. It should compile without errors, provided you also compiled the Cinder Framework itself.
  • To make sure that both Cinder and the sample code are always up to date, you can add the Cinder Framework project to your solution:
  • From the File menu, select Add... and then Existing Project...
  • Browse to cinder_master\proj\vc2015\cinder.vcxproj
  • Click the Open button
  • In the Solution Explorer, right-click on the sample project (e.g. AnalogClockApp)
  • Select (Build Dependencies and then) Project Dependencies...
  • Make sure the cinder project is selected by clicking in the check box. This way, Cinder will be built before the sample.
  • Click the OK button
  • Compile the solution (both Cinder and the sample) by pressing F7.

Thanks to all contributors and to the people behind the Cinder framework for doing an excellent job!

-Paul

Copyright (c) 2012-2018, Paul Houx - All rights reserved. This code is intended for use with the Cinder C++ library: http://libcinder.org

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.