Thread: Smooth tile scrolling in Direct3D

  1. #1
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607

    Smooth tile scrolling in Direct3D

    Several people have asked me to tell them how to do smooth scrolling in Direct3D.

    The problem is that you cannot use the per-pixel DOS algo because this requires locking and unlocking textures which is a big no no in a render loop.

    So here is the solution with code for Direct3D 9.0.
    Last edited by VirtualAce; 01-23-2005 at 08:41 AM.

  2. #2
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Updated versions.

    Last one had several bugs

    Make sure that you shut off the ZBuffer as on some cards this will prevent anything from being displayed.


    g_pDevice->SetRenderState(D3DRS_ZENABLE,false);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Smooth walking on tile based map system
    By abraham2119 in forum C Programming
    Replies: 8
    Last Post: 07-10-2009, 10:33 AM
  2. Need testers for editor
    By VirtualAce in forum Game Programming
    Replies: 43
    Last Post: 07-10-2006, 08:00 AM
  3. Tile map loading/saving
    By sand_man in forum Game Programming
    Replies: 16
    Last Post: 04-23-2005, 09:38 PM
  4. Tile Engine in Direct3D
    By frenchfry164 in forum Game Programming
    Replies: 2
    Last Post: 03-30-2003, 03:56 PM
  5. Tile Editor
    By Nick in forum Linux Programming
    Replies: 3
    Last Post: 08-10-2001, 11:24 PM