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 3 of 3

Thread: Matrix/Vector multiplication - Maintain control.

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2001
    Posts
    5

    Matrix/Vector multiplication - Maintain control.

    I want to be able to do this:

    glVector Foo(0,0,-10);
    glMatrix Bar=gluPerspective(-blah-);

    Foo=Foo*Bar;


    Let the card to it in the GPU, and let me maintain control of the vector "foo". Makes culling, billboarding, etc. easier.

    I'm sure I'm not the first to suggest it, but it would still be nice!

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    3,576

    Re: Matrix/Vector multiplication - Maintain control.

    It would also be slow. Generally, when sending information between the CPU and the GPU, the fastest, most optimal path is in one direction: from the CPU to the GPU. Having glVectors and so forth around (not to mention the fact that operator overloading is a function of C++ only, and OpenGL is a C library) will only serve to slow the program down.

  3. #3

    Re: Matrix/Vector multiplication - Maintain control.

    See vertex programs.

Posting Permissions

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