Results 1 to 4 of 4

Thread: moving checkerboard surface

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2009

    moving checkerboard surface

    Hello everyone,

    I am programmer but I don't have that much experience in OpenGL. I am also new to forum.

    My main goal is to create a "ground" surface with a checkerboard pattern. The camera is aimed ahead and it appears as if you are walking on the surface.

    I know how to generate and bind and wrap the checkerboard texture (using mipmaps). I am wondering what is the best way to simulate the walking over effect ?

    any help, demos or suggestions are greatly appreciated

  2. #2
    Junior Member Newbie
    Join Date
    Aug 2009

    Re: moving checkerboard surface


  3. #3
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Grenoble - France

    Re: moving checkerboard surface

    What do you mean "walking over" ?
    A simple glTranslatef is enough ?
    Read this page to learn more about transformations :

  4. #4
    Senior Member Regular Contributor Heiko's Avatar
    Join Date
    Aug 2008
    the Netherlands

    Re: moving checkerboard surface

    For very simple `walking' or moving you can indeed use glTranslatef. If you want to make a turn, use glRotatef(degrees, x, y, z) with (x,y,z) being the axis arround which you'll want to turn (which is probably the vertical axis: 0, 1, 0).

Similar Threads

  1. Replies: 0
    Last Post: 07-30-2015, 06:41 PM
  2. glColorPointer question, checkerboard
    By gangstare23 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 09-20-2011, 10:03 AM
  3. Fragment shader - checkerboard?
    By mksaccount in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 06-23-2010, 01:54 PM
  4. moving over an infinite textured surface
    By indexicality in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 12-10-2005, 08:18 AM
  5. texturing a checkerboard
    By mikemor in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 09-27-2002, 04:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean