Results 1 to 5 of 5

Thread: Tranformation Results

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2004

    Tranformation Results

    If I use glRotate, glScale, or any of the other functions to perform a transformation in OpenGL, is there anyway to get the results of the matrix multiplication (i.e. the transformed verticies) returned back to me, or can they only be sent down the pipeline from there?


  2. #2

    Re: Tranformation Results

    Not in the brain-dead simple "tell me what you're thinking" way, no. There *are* ways to do that sort of thing, but they'll not be appropiate for what you're doing.

    The easiest thing to do is to find yourself a vector library and apply the same operations you send to OpenGL on an appropiate matrix - this keeps the end result client-side and easily accessible.

    This isn't, however, something to do for more than just debug. If you're wanting to do this kind of thing at run-time there's probably a better way of doing whatever it is you're trying to do. If this is the case, please post details!

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2004

    Re: Tranformation Results

    The reason I asked,was because I thought I could use those functions to make my really fast GPU do it, well, really fast.

  4. #4
    Junior Member Newbie
    Join Date
    Jul 2000
    Morrisville, NC

    Re: Tranformation Results


    Do you mean something like glGetDoublev(GL_MODELVIEW_MATRIX, double *ptr) that populates the ptr with the values of the modelview matrix?


  5. #5
    Senior Member OpenGL Guru
    Join Date
    Dec 2000
    Reutlingen, Germany

    Re: Tranformation Results

    What Bode said should work, BUT it wonīt be "really fast".

    Either your GPU does it, but then you will slow your app down, due to syncronizing the CPU and the GPU, or the functions wonīt be processed by your GPU, at all, but the driver lets your CPU do it. Then their still might be a syncronizing issue AND itīs still done by your CPU.

    GLIM - Immediate Mode Emulation for GL3

Similar Threads

  1. tranformation matrix of .3ds files (not resolved)
    By airseb in forum OpenGL: General
    Replies: 7
    Last Post: 09-03-2005, 02:47 PM
  2. Manual Tranformation?
    By Curandero in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-16-2004, 05:11 AM
  3. Getting the tranformation of a point
    By MrPython in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 12-27-2003, 05:19 AM
  4. modify tranformation matrix
    By manu in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-04-2001, 02:55 AM
  5. Vertex position after tranformation?
    By sicklab in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 12-14-2000, 12:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean