This very elaborate sample will show you how to:
- render advanced, animated point sprites using shaders
- construct VBO meshes that are not GL_TRIANGLES like TriMesh
- use the IrrKlang sound engine to play sound effects and music
- use the CameraStereo class to render in stereoscopic 3D (side-by-side)
- perform cylindrical projection using a frame buffer and a special fragment shader
- create your own camera class that can be animated or controlled by the user
- read and parse a text file containing data
- read and write a binary data file for faster loading
Note: for the sample to play music, add MP3, WAV, OGG and/or FLAC files to the ./assets/music folder.
Controls:
- use the mouse to control the camera
- press SPACE to enable automatic camera animation
- press S to toggle stereoscopic (side-by-side) 3D
- press D to toggle cylindrical projection (3x 60 degrees view)
- press G to toggle the celestial grid
- press L to toggle name labels
- press C to toggle constellations
- press V to toggle vertical sync
- press F to toggle full screen
- press A to show/hide the cursor arrow
- press ESC to quit
- press MEDIA_NEXT_TRACK to play the next song
- press MEDIA_PREV_TRACK to play the previous song
- press the MEDIA_STOP or MEDIA_PLAY_PAUSE keys to stop, play and pause the music
-Paul
Copyright (c) 2012-2013, 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.