Results 1 to 2 of 2

Math Help - Formula for 3D glasses - perpendicular intersecting vectors

  1. #1
    Newbie
    Joined
    Apr 2010
    From
    Ottawa, Ontario
    Posts
    2

    Formula for 3D glasses - perpendicular intersecting vectors

    Hello all!

    n00b here, and I hope I'm posting in the right thread
    I'm trying to work out a formula that I'm going to be using in a C# program to generate a cyan/red anaglyph display of a 3D world.

    I need an algorithm to calculate an x,y,z coordinate in 3D space..



    - you are given points P and T and O
    - we know OP ┴ PN (always perpendicular)
    - we know TP ┴ PN (always perpendicular)
    - you are given a magnitude of X
    - the length of PN is X
    - find point N

    Of course with the information given, there are two possible solutions for N.
    I need them both


    That's me! I was testing my shader math in photoshop
    Last edited by Gannon; April 30th 2010 at 12:15 AM.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Newbie
    Joined
    Apr 2010
    From
    Ottawa, Ontario
    Posts
    2
    after doing research all night long I've learned that all I'm looking for is the cross product of the two original vectors.
    Fortunately XNA includes this function, so it's as easy as Vector3 PN = Vector3.Cross(OP, TP);
    now I'm gonna find a function that'll find a point on this vector given an origin and a magnitude
    Last edited by Gannon; April 30th 2010 at 01:15 PM.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Vectors (Perpendicular vectors) problem
    Posted in the Algebra Forum
    Replies: 3
    Last Post: May 30th 2010, 09:45 AM
  2. perpendicular vectors
    Posted in the Pre-Calculus Forum
    Replies: 4
    Last Post: February 20th 2010, 04:44 PM
  3. Perpendicular Vectors
    Posted in the Calculus Forum
    Replies: 1
    Last Post: August 31st 2009, 05:13 PM
  4. Replies: 0
    Last Post: July 26th 2008, 09:01 AM
  5. vectors; intersecting lines
    Posted in the Pre-Calculus Forum
    Replies: 0
    Last Post: October 17th 2007, 06:23 AM

Search Tags


/mathhelpforum @mathhelpforum