Rigid Body Transformation : A project demonstrate Rotation, Scaling, Transformation

Rajeev


Description:  Rigid Body Transformations is one of  the most important applications in computer graphics.  It means Rotation, Scaling, Transformation of 3-Dimensional objects, like teapot, torus, cone, cube and octahedron. It also includes changes of background colors and rotations, including the 3 ways, like of  x-axis, y-axis and z-axis.The above operation can be done by using mouse interface.

A part from this a small header section is there at the top, which contains informations, like project name with it associates. The angle and velocity of rotation, is indicated on the header bar. A timer is also placed on header, which shows the times elapse as the program executed.


Usages:  Right click to see the options


 Rotation On : Set the rotation in the object.               
 Translation :
                         X - axis Translation On : Move objects in x-direction.
                         Y - axis Translation On : Move objects in y-direction.
                         Z - axis Translation On : Move objects in z-direction.
 Objects : Selects the below mentioned objects with sub-menu selection

                           Teapot
                          Cone
                          Cube
                          Torus
                         Octahedran
 Change Background :  Selects the colours mentioned below with sub-menu selection

                       Red 
                       Blue
                       Green 
                       Black
 Scaling On:  Put the scaling on objects.

Download : Project code

14 comments

  1. Ramya.R
    sir,in this project scaling operation is not working..
    what changes i have to make for that?
  2. Rakesh S Basavaraj
    sir plzz upload the complete report for this project...
  3. Rahul Gj
    please upload the final report sir
    please sir urgent
  4. tejash
    sir..i need complete report for this project...its very urgent...plzzzz.........send to
    tejaradhya@gmail.com........and in this project scaling operation is not working....what to do for this sir....? give me a solution......
  5. OpenGL Projects
    can you specify exactly what is the problem?
  6. tejas
    In menu SCALING ON option is there know ....by clicking that there is no changes in the objects......what changes i have to make sir.....?
  7. OpenGL Projects
    scaling it get bigger don't you see that
  8. tejas
    no sir....there was no changes in size.....
  9. tejas
    can i get complete report of this project.......?
  10. OpenGL Projects
    you right there is not scaling function - something is missing.

    Go through these two links and add you own.

    Transformation in OpenGL

    Tutorial on scaling in OpenGL

    For your sake i am giving some code you can work as this need some time and precesion.

    Look these -

    int scaling=0;

    int axis=0;

    float x_axis=2.0;

    float y_axis=2.0;

    float z_axis=2.0;

    int x_axis1=0;

    int y_axis1=0;

    int z_axis1=0;

    also similar to this code for scalef ok!

    switch(tran)

    {

    case 1: glTranslatef(center, 0.0, 0.0);

    break;

    case 2: glTranslatef(0.0, center, 0.0);

    break;

    case 3: glTranslatef(0.0, 0.0, center);

    break;

    }
  11. tejas
    i have to submitt report of this project tomorrow only....so,plzzz........i request you to mail complete report of this project at tejaradhya@gmail.com plzzzz................sir.
  12. OpenGL Projects
    You can't get report so fast; try download it from sample download page and try to make it according to your's project.
  13. shwetha
    sir am not getting scaling operation can u say the code for scaling operation wt s the problem in program,,,,,,,,,,,,............
  14. Mayuri Y Mahekar
    Sir please send me the source code for Rigid Body Transformation:A project demonstrate for Rotation, Scaling and Transformation.........sir plz send to maayuri94@gmail.com

Join the conversation