Results 1 to 4 of 4

Thread: use of vector algebra in 3d graphics

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2002
    Location
    Bangalore,karnataka,Country
    Posts
    4

    use of vector algebra in 3d graphics

    hi all ,

    I just want to know where/how do you use vector algebra in 3d graphics. While i've read that you use dot product and vector product in 3d graphics, but how do you use it and in what context?
    please let me know if there are any links that explain this.

    your reponse is greatly appreciated.

    thanks
    Anil

  2. #2
    Member Contributor
    Join Date
    Nov 2002
    Posts
    96

    Re: use of vector algebra in 3d graphics

    I primarilly use vector algebra to rotate points and calculate lighting normals.

    For example when you want to spin an object around a certain point, or rotate your camera view vector.
    Use the cross product to calculate lighting normals. Saves you a lot of time calculating and entering them yourselves.

    When you want to do very basic stuff that is about the only places where you need the algebra. But I'm sure there are many more things you can use it for.

  3. #3
    Halcyon
    Guest

    Re: use of vector algebra in 3d graphics

    Hey Anil,

    Vector algebra is used all over the place in 3d graphics. The simplest as structural mentioned is for lighting normals. You can use the cross product (or as you say the vector product) to get the surface normal to pass into the lighting equation.
    The dot product comes in pretty handy too. If you want to know about what the angle between two vectors is or if you want it to do backface culling. I actually just learnt about this in a post i made, but if the dotproduct of the view vector (from the monitor into the screen) and the surface normal is less than zero, it's a back of a surface and can be culled, but if it is greater than or equal to 0 it is drawn. There is also a form of bumpmapping that relies on the dot product. I think it's called dot3 bump mapping. Simulating fluids in grahphics involve a lot of vectors too. There are tons of uses!

    - Halcyon

  4. #4
    Junior Member Newbie
    Join Date
    Dec 2002
    Location
    Bangalore,karnataka,Country
    Posts
    4

    Re: use of vector algebra in 3d graphics

    Thanks Halcyon,

    I really appreciate your response. I just got the hang of this vector funda in 3d graphics from your response.
    Thanks once again.

Similar Threads

  1. Vector graphics and unwanted tessellation.
    By Iljamal in forum OpenGL: User Software
    Replies: 1
    Last Post: 07-13-2016, 06:58 AM
  2. Raster Graphics and Vector Graphics
    By Mukund in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 02-08-2011, 05:40 PM
  3. OpenGlES 2D Vector Graphics Loading and Drawing?
    By GanMatt in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 07-28-2010, 03:50 PM
  4. 2D vector graphics with opengl
    By noeska in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 08-26-2009, 12:03 PM
  5. vector graphics database
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 11-03-2001, 04:11 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