Smooth tile scrolling in Direct3D

This is a discussion on Smooth tile scrolling in Direct3D within the Game Programming forums, part of the General Programming Boards category; Several people have asked me to tell them how to do smooth scrolling in Direct3D. The problem is that you ...

  1. #1
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596

    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 07:41 AM.

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    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, 02:56 PM
  5. Tile Editor
    By Nick in forum Linux Programming
    Replies: 3
    Last Post: 08-10-2001, 11:24 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21