Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Object Coordinates and World Coordinates Help???

  1. #1
    Junior Member Newbie
    Join Date
    May 2018
    Posts
    5

    Object Coordinates and World Coordinates Help???

    Well recently i had the problem of scaling an object but the scaling was also affecting the position. I found this Solution but i can't understand how to implement it. Can you show me in code how its done?

    Thank you.

  2. #2
    Junior Member Newbie
    Join Date
    May 2018
    Posts
    9
    If you want, you can try using the GLM library, which simplifies transformations.
    trans = glm::scale(trans, glm::vec3(1.5, 1.5, 1.5));
    https://learnopengl.com/Getting-started/Transformations ...(section) In practice

Posting Permissions

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