ABOUT: ------ VirtualGallery.pde Explore a miniature virtual gallery. CONTROLS: --------- space - toggle between drag/move mouse modes DRAG MODE: drag vertically to walk forward/backward in direction of camera drag horizontally to rotate direction of camera shift - hold shift while dragging to "strafe" side-to-side, up-down middle/third button drag functions same as shift-drag, but may not work on all systems MOVE MODE: move the mouse away from vertical center to walk forward/backward move the mouse away from horizontal center to turn left/right EITHER MOUSE MODE: 'x' - invert mouse X coordinate 'y' - invert mouse Y coordinate mouse wheel walks forward/backward in direction of camera, but may not work on all systems KEYBOARD: arrow keys work as you'd expect to move and turn, FPS game-style shift key toggles "strafe" side-to-side LICENSE (CODE): --------------- Copyright (C) 2010 David Bollinger (davebollinger_a-t_gmail-d_o_t-com) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. LICENSE (ASSETS): ----------------- All art??.jpg images are Copyright David Bollinger, All Rights Reserved. Please use only your own art images in any derived works. floor.jpg, wall.jpg & ceiling.jpg were all derived from "free" textures. no additional rights are claimed for the derivations, use them as you wish, subject only to the terms of the originals, which are described here: http://www.photoshoptextures.com/terms-of-use.htm frame.jpg is hereby dedicated to the public domain (woohoo! ;) MAKING YOUR OWN GALLERY: ------------------------ Simply name your images art00.jpg - art19.jpg and place in the data folder. Ideally, resize images so that the larger of width/height is an even power of 2. art02.jpg is the center image on the "front" wall, it's a nice place to put a "placard" if you wish.
Source code: VirtualGallery.zip
Built with Processing