Skip to content
Sample applications for the Cinder framework
C C++ GLSL Batchfile
Find file
Latest commit 28d2f1d @paulhoux Updated OneWorldMultipleWindows sample. Field of view wasn't calculat…
…ed correctly and the instanced Pistons were not compatible with multiple windows.
Failed to load latest commit information.
All/common Updated OneWorldMultipleWindows sample. Field of view wasn't calculat…
AnalogClock Update README.md
AudioVisualizer Merge branch 'build-fix'
BloomingNeon Merge branch 'build-fix'
BouncingBalls Merge branch 'build-fix'
FXAA Updated executables.
FastTrails Merge branch 'build-fix'
FlickrImageViewer Updated executables.
GeometryShader Updated executables.
HexagonMirror Updated executables.
OneWorldMultipleWindows Updated OneWorldMultipleWindows sample. Field of view wasn't calculat…
PerspectiveWarping Updated executables.
PickingByColor Updated executables.
PostProcessing Updated executables.
SMAA Updated executables.
ShaderToy Updated executables.
SimpleSceneGraph Switched to using a std::vector instead of std::deque in the node gra…
SimpleShader Updated executables.
SmoothDisplacementMapping Updated executables.
Stars Star labels now have an offset and scale with distance/magnitude.
TextRendering Updated text labels in Stars sample.
TransparentMesh Updated executables.
.gitignore Replaced AllSamples with a build script.
FOLDERS.jpg -
README.md Updated README.md
build.bat Tweaked build.bat: it now stops at the first error.

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 2013 compiler, which is the compiler of choice for the Windows platform. The code should also work with Visual Studio 2015. XCode support for MacOS X is currently not 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. vc2013) 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\vc2013\cinder.vcxproj for Visual Studio 2013
    • 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-2015, 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.

Something went wrong with that request. Please try again.