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: axis system importation matrixes and math

  1. #1
    Junior Member Regular Contributor
    Join Date
    Apr 2010
    Posts
    110

    axis system importation matrixes and math

    hello.
    I'm trying to create an ifc importer(an architectural format).
    My problems are at the start:
    1)i must use matrixes and vectors , how is knows :
    1a)the order of multiplication of the matrix for vector?
    1b)the coordinate system (left handed or right handed)?
    1c)the matrixes are row major or column major?

    after ,

    if i have a different axis system , for example in my program i have y on top ,x on left and z inside and in the ifc i have z on top y on left and x inside , how i can import the geometrics items for have the same orientation and correct placing?

    ps. the used api is opengl
    thanks.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    785
    You can use a matrix to convert from one axis system to another. But if you intend to render using OpenGL the simplest might be to convert each ifc vertex as you read it into OpenGL standard format. That way any OpenGL code examples you look at will be directly useable.

    (I assume inside is the positive values)
    ifc -> OpenGL standard axes
    so ifc -> opengl
    x -> -z
    y -> -x
    z -> y

    for ifc -> your program axes
    x -> z
    y -> x
    z -> y

Posting Permissions

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