About 1,780,000 results
Open links in new tab
  1. 2D Transformation in Computer Graphics | Set 1 (Scaling of …

    Mar 22, 2023 · Scaling operation can be achieved by multiplying each vertex coordinate (x, y) of the polygon by scaling factor s x and s y to produce the transformed coordinates as (x’, y’). So, x’ = x * s x and y’ = y * s y. The scaling factor s x, s y scales …

  2. 3D Scaling Program Using C Programming - THIYAGARAAJ.COM

    In this program, we'll explore how to scale a 3D object represented as a 3D rectangular cuboid (box) using user-provided scaling factors. In computer graphics, 3D scaling involves altering the dimensions of an object in three dimensions: length (x-axis), width (y-axis), and height (z-axis).

  3. C PROGRAMMING: THREE – DIMENSIONAL TRANSFORMATION

    Jun 21, 2020 · Step 1: Start the program. Step 2: Display the cube. Step 3: input the translation vectortx,ty,tz. Step 4: using the function line, display the object before and after translation. Step 5: input the scaling factor and reference point. Step 6: using the function line, display the object before and after scaling. Step 7: input the rotation angle.

  4. C Program for 2D Transformation (Translation, Rotation and Scaling)

    Oct 2, 2017 · sfx and sfy are scaling factor. tpx and tpy are for translation point. ang is for angle for rotation and t variable is use for angle in radian. c for choice/option.

  5. 2D Transformations in Computer Graphics using C++

    Aug 12, 2021 · Shearing of Rectangle : shear of rectangle Note: It is better to not mess with the variable values used in source code unless you have the knowledge of pixel positioning.

  6. Translation of objects in computer graphics - GeeksforGeeks

    May 3, 2024 · Prerequisite : depth-buffer (or Z Buffer) method A-Buffer method in computer graphics is a general hidden face detection mechanism suited to medium scale virtual memory computers. This method is also known as anti-aliased or area-averaged or accumulation buffer.

  7. COMPUTER GRAPHICS- Implement 2D Transformation : Translation, Scaling ...

    Sep 28, 2020 · In this experiment we Implemented 2D Transformation such as Translation, Scaling, Rotation, Reflection and Shearing. Conclusion: It becomes easy to perform more than one transformation on a single object by implementing various …

  8. 3D Transformation Graphics Program in C - Blogger

    Oct 2, 2020 · To write a C program to implement 3D transformations such as translation, rotation and scaling of objects. Algorithm: 1. Read the co-ordinates (x, y, z) of the object. 2. Display the original object. 3. Read the translation vector (tx, ty, tz). 4. Calculate the new co-ordinates as follows: x’ = x + tx. y’ = y + ty. z’ = z + tz. 5.

  9. C Program for 2D transformations such as translation, scaling, …

    Construct a 2D object (use Drawpoly ()) e.g. (x,y) 4. A) Translation. a. Get the translation value tx, ty. b. Move the 2d object with tx, ty (x’=x+tx,y’=y+ty) 5. B) Scaling. a. Get the scaling value Sx,Sy. b. Resize the object with Sx,Sy (x’=x*Sx,y’=y*Sy) 6. C) Rotation. a. Get the Rotation angle. b. Rotate the object by the angle ф.

  10. C++ Implementation of Scaling in Computer Graphics

    Nov 27, 2022 · There are two scaling factors i.e., S x, in the x-direction, and S y, in the y-direction. If scaling factor ( S x /S y) > 1 => size of the object will be enlarged. If scaling factor ( Sx/Sy) < 1 => size of the object will be reduced. If S x and S y are equal then we call it uniform scaling.

Refresh