PDA

View Full Version : Matrix/Vector multiplication - Maintain control.



SquidMan
12-06-2001, 02:15 PM
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!

Korval
12-06-2001, 03:06 PM
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.

Maj
12-07-2001, 09:45 AM
See vertex programs.