Search Projects

Friday, April 27, 2012

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



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. sir,in this project scaling operation is not working..
    what changes i have to make for that?

    ReplyDelete
  2. sir plzz upload the complete report for this project...

    ReplyDelete
  3. please upload the final report sir
    please sir urgent

    ReplyDelete
  4. 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......

    ReplyDelete
  5. can you specify exactly what is the problem?

    ReplyDelete
  6. 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.....?

    ReplyDelete
  7. scaling it get bigger don't you see that

    ReplyDelete
  8. no sir....there was no changes in size.....

    ReplyDelete
  9. can i get complete report of this project.......?

    ReplyDelete
  10. 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;

    }

    ReplyDelete
  11. 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.

    ReplyDelete
  12. You can't get report so fast; try download it from sample download page and try to make it according to your's project.

    ReplyDelete
  13. sir am not getting scaling operation can u say the code for scaling operation wt s the problem in program,,,,,,,,,,,,............

    ReplyDelete
  14. 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

    ReplyDelete