Results 1 to 4 of 4

Thread: Matrix multiplication

  1. #1
    Junior Member Newbie
    Join Date
    May 2001
    Posts
    21

    Matrix multiplication

    I'm dealing with a kind of 3D-fractal based program which heavily uses matrix multiplication. What's the faster way: build my own matrices and multiplication-routines, or use the glLoadMatrix and glMultMatrix?

    anybody?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Mar 2001
    Posts
    319

    Re: Matrix multiplication

    That depends on what you're ultimately trying to do. If you're using these matrices to draw things using OpenGL, then using the OpenGL functions could be a good idea - they could possibly be accelerated, if not in hardware then in SSE or 3DNow!.

    However, if your plan is to use OpenGL functions then read the matrix back, then I'd suggest that you stick to your own matrix code, and save the function calls and the data copies involved. You could probably optimise matrix multiplication yourself pretty well.

  3. #3
    Junior Member Newbie
    Join Date
    May 2001
    Posts
    21

    Re: Matrix multiplication

    thanx!

  4. #4
    Member Newbie
    Join Date
    Oct 2000
    Location
    Andover,MA USA
    Posts
    34

    Re: Matrix multiplication

    I agree with the above. If you find you need the matrix yourself AND your inner loops do a lot of matrix multiplication, you can use Intel's MMX compiler and library (assuming you're WIntel). It uses the SIMD (single instruction multiple data) architecture of the PIII and PIV.

Similar Threads

  1. Matrix Multiplication
    By wrx in forum OpenCL
    Replies: 18
    Last Post: 02-17-2011, 01:24 AM
  2. Matrix Multiplication
    By Jose Ricardo in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 12-08-2009, 08:47 PM
  3. Matrix Multiplication
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-09-2004, 08:27 PM
  4. Matrix Multiplication
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-28-2002, 07:53 PM
  5. Matrix Multiplication
    By Syslock in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 07-22-2002, 09:52 AM

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