Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Robot Arm

  1. #1
    Newbie Newbie
    Join Date
    Apr 2016

    Robot Arm

    Hi help required ,

    i am practicing to create this robot arm with fingers , can anybody give me the full code so that i will be able to understnd it .Click image for larger version. 

Name:	ch03-4.gif 
Views:	253 
Size:	3.4 KB 
ID:	2249

  2. #2
    Member Regular Contributor
    Join Date
    Apr 2012
    Los Angeles
    You won't understand it if someone gives you the 'full code'.
    You have to work through it to learn it.
    Start simple. Draw the first block, i.e. the one on the left of your diagram.
    Look at intro tutorials to OpenGL to help you get started.
    Note that the blocks are solid and are illuminated by a light source.
    Also the background is white (assuming your goal is the arm in the figure).

    Good luck. Have fun!

  3. #3
    Member Regular Contributor
    Join Date
    Jan 2011
    Paris, France
    Take a look at at the "Hierarchical Modelling: Robot Arm" section

    The code given can to be compiled with a simple "gcc glutArm.c -lglut -lGL -lGLU -o glutArm" when glutArm.c is the code source given

    You can control the rotation of this arm using S,L,R,E (and s,l,r,e) keyboard keys

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts