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: scaling factor on axis

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2011
    Posts
    1

    scaling factor on axis

    Hello,
    I am a new user of Open Inventor. I am looking for the way to draw Z axis with different scaling factor, can anyone help pointing out the solution? In my application, the z values are too small compared with the x & y values, so I need to scale the z values up in order to view them all on the scene, but I cannot find the correct parameter and function to use.
    Thanks for help.

  2. #2
    Junior Member Newbie
    Join Date
    Jan 2005
    Location
    San Diego, CA
    Posts
    20

    Re: scaling factor on axis

    The usual solution would be an SoTransform or SoScale node. The scaleFactor field takes an SbVec3f containing scale factors for the X, Y and Z axes. A scaleFactor of 1,1,2 for example would expand the Z axis without affecting the X and Y axes.

Posting Permissions

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