Results 1 to 2 of 2

Thread: Moving 3D objects

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2001
    Location
    Blagoevgrad,Bulgaria
    Posts
    18

    Moving 3D objects

    How can I move 3D objects,for example, by pressing the direction keys?

  2. #2
    Junior Member Newbie
    Join Date
    Jul 2001
    Location
    Grenade, Spain
    Posts
    14

    Re: Moving 3D objects

    Have you try the glut Keyboard routine?

    You can use variables to specify position of 3d objects. When you press a key, you can decrement or increment its value. You move the object with glTranslatef(x,y,z) before displaying the object.

    Now I can't remember the name of the glut function for keys, but if you have the specification, you can look it up.

Similar Threads

  1. moving 3D objects
    By shoman007 in forum OpenGL: macOS
    Replies: 0
    Last Post: 12-18-2018, 03:12 AM
  2. Moving Objects
    By CoolBeanJ in forum OpenGL: Basic Coding
    Replies: 17
    Last Post: 04-26-2011, 07:00 AM
  3. Moving two objects together
    By Sklar in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-31-2004, 11:26 AM
  4. Moving 3D objects
    By Itskata in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 07-11-2001, 03:53 AM
  5. Moving objects in 3D
    By wrapper in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 11-24-2000, 11:47 PM

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