OS4 DepotLogo by McFly 
(anonymous IP: 54.196.98.96,1206) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (328)
   o Datatype (47)
   o Demo (181)
   o Development (534)
   o Document (21)
   o Driver (88)
   o Emulation (142)
   o Game (859)
   o Graphics (460)
   o Library (93)
   o Network (202)
   o Office (57)
   o Utility (807)
   o Video (61)

Total files: 3880

Full index file
Recent index file

 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


Support the site


 Readme for:  Development » Utility » smoothscroll.lha

Smoothscroll

Description: A smooth subpixel SDL/GL(!!!) scroller/map editor
Download: smoothscroll.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 266kb
Version: 1.1
Date: 17 Oct 2006
Author: David Olofson, AmigaOS 4.0 compile by Spot / Up Rough
Submitter: Spot / Up Rough
Email: spot/triad se
Homepage: http://olofson.net/examples.html
Requirements: MiniGL/Warp3D (!!!) + WarpView and a compatible gfx card.
Category: development/utility
License: GPL
Distribute: yes
Min OS Version: 4.0
FileID: 2185
 
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 286  (Current version)
286  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
                Smooth Scrolling
                ----------------

      This is a simple demonstration of ultra
    smooth scrolling, using OpenGL and sub-pixel
      accurate rendering. Map editor included.


The demo works best with retrace syncronized pageflipping,
and on systems that are fast enough to maintain a steady
full frame rate. In works pretty well without retrace sync,
but it isn't nearly as smooth at higher speeds.

Note that interpolation across tile edges is solved in a
most primitive way in this demo; it's built right into the
tile palette. Rather than having the engine do some magic,
I'm just relying on the map to use only "compatible" tiles
together. The net result is that the pixels *outside* a
tile will always match the corresponding pixels of the
surrounding tiles on the map.

Command line switches:
 -sdl  Use SDL 2D for rendering
 -w  Use windowed mode
 -s<scale> Set scale (Default; SDL: 1, OpenGL: 2)
 -b<bpp>  Use <bpp> bits per pixel mode
   (Default: auto)
 -e  Activate map editor
 -m <name> Use map file <name>
 -ntf  Disable the "time filter"

Redundant switches:
 -gl  Use OpenGL for rendering (default)
 -f  Use fullscreen mode (default)
 -tf  Enable the "time filter"

Control:
 Arrow keys Change the scrolling speed.
 SPACE  Stop scrolling instantly.
 ESC  Exit demo.


Using the Map Editor
--------------------
This demo includes a primitive map editor that I used to
create the demo map. The editor works only in SDL mode
(which is selected automatically), and supports higher
resolutions through the -s<scale> switch. The map file
edited is the default map file, or the file specified
using the -m <name> switch.

Editor control:
 F2 or S  Saves the current map, OVERWRITING
   any existing file with the same name
   as that specified as the map name.

 ESC  Exits the editor WITHOUT saving.

 SPACE  Switches between selection mode and
   editing mode.

 CTRL  Enters selection mode, but only for
   as long as the CTRL key is held down.

 Arrow keys Scroll the map.

 Mouse  Moving the mouse (obviously) moves
   the cursor. An animated marker
   indicates which exact tile is under
   the cursor.

 Mouse buttons
  Selection mode:
   Selects tile for the button clicked.

  Editing mode:
   Pastes tile selected for the clicked
   button.


Have fun!


   //David Olofson <david()olofson.net>

           __________________________________________
  .________                                        /_________.
  |                                                           |
  |        A M I G A   O S   4 . 0   C O M P I L E   B Y      |
  |                                      .____.               |
  |  ______       _________.___          .   _|___            |
  | /  ___/______/   ._    .  /________  :    ___/_________ _  _
_ _____._           |/    :_/   ._    _:    
        |/          _|     |     |/      |     
        |           ______|     |       |     |       ____ _  _
_  _ ________________|     |     |       |_______________    .
                       .cRb|_____________|e^D.                |
  |                                                           | 
  |                A B O U T   T H I S   P O R T              | 
  |                                                           | 
  |  This is an SDL/OpenGL app, if you are running AOS4 upd4  | 
  |   or earlier remember to start WarpView  before running   | 
  |                       SmoothScroll.                       | 
  |                                                           | 
  |   The -w (window mode) switch doesn't work, I've never    | 
  |    been able to make an SDL/GL app run in window mode.    | 
  |              A bug in SDL or Warp3D maybe?                | 
  |                                                           | 
  |                                                           |
  |   I am in a shitty economical situation, so if you feel   | 
  |  that what I do is  worth anything, use paypal to donate  |  
  |         to my email addy, spotATtriadDOTse, thanx!        | 
  |                                                           | 
  |                    Spot / Up Rough 2006                   | 
  |___________________________________________________________|


Copyright (c) 2004-2018 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment