Results 1 to 3 of 3

Math Help - Cubes perspective problem

  1. #1
    Newbie
    Joined
    May 2010
    Posts
    2

    Cubes perspective problem

    Hello!

    I would like to know how to calculate perspective precedence in 3D space. (I'm not a mathematician, so I don't know if it's the correct term, but I will try to explain what I need).

    I have an observer in space (px, py, pz).

    I also have a Rubik’s Cube, with 27 "little cubes".

    I have to calculate the sequence of the nearer cubes, from observer's perspective.

    I tried to use the distance's formula to calculate this precedence between the 27 little cubes, but it doesn't help when I have some cubes rotated. I believe that there is something else to calculate, but I don't know what it is.

    The problem is seen in picture below:

    Cubes perspective problem-cubomagico.png

    The image shows the moment I'm trying to rotate it and sort using the distance formula. But the cubes with gray faces are in wrong perspective precedence.

    The distance formula I use is in http://www.flashandmath.com/flashcs4/zsort/sortpic.jpg

    Thanks, and sorry if I wasn't so clear!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor undefined's Avatar
    Joined
    Mar 2010
    From
    Chicago
    Posts
    2,340
    Awards
    1
    Quote Originally Posted by ricardoainati View Post
    Hello!

    I would like to know how to calculate perspective precedence in 3D space. (I'm not a mathematician, so I don't know if it's the correct term, but I will try to explain what I need).

    I have an observer in space (px, py, pz).

    I also have a Rubik’s Cube, with 27 "little cubes".

    I have to calculate the sequence of the nearer cubes, from observer's perspective.

    I tried to use the distance's formula to calculate this precedence between the 27 little cubes, but it doesn't help when I have some cubes rotated. I believe that there is something else to calculate, but I don't know what it is.

    The problem is seen in picture below:

    Click image for larger version. 

Name:	cuboMagico.png 
Views:	6 
Size:	19.4 KB 
ID:	16808

    The image shows the moment I'm trying to rotate it and sort using the distance formula. But the cubes with gray faces are in wrong perspective precedence.

    The distance formula I use is in http://www.flashandmath.com/flashcs4/zsort/sortpic.jpg

    Thanks, and sorry if I wasn't so clear!
    I don't have advice for your problem but I'd like to know what programming language and/or software development environment you're using for this. It looks cool! This is an area I have no experience in but am interested to learn.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    May 2010
    Posts
    2

    Software

    I'm using Flash CS4 / Actionscript 3.0 to develop.

    You can do many cool stuff with Actionscript's Flash ( this is no ad guys, just an opinion, hehe ).
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Correct perspective distortion
    Posted in the Advanced Math Topics Forum
    Replies: 2
    Last Post: March 29th 2010, 10:45 PM
  2. Probability problem about cubes
    Posted in the Statistics Forum
    Replies: 2
    Last Post: November 15th 2009, 03:51 PM
  3. Perspective issue
    Posted in the Trigonometry Forum
    Replies: 3
    Last Post: June 4th 2008, 03:05 PM
  4. Circle in perspective
    Posted in the Trigonometry Forum
    Replies: 0
    Last Post: November 3rd 2007, 06:11 PM
  5. Perspective transformation of a digital photo
    Posted in the Advanced Applied Math Forum
    Replies: 0
    Last Post: February 18th 2007, 11:54 PM

Search Tags


/mathhelpforum @mathhelpforum