Hello!(adsbygoogle = window.adsbygoogle || []).push({});

I don't know if this is the right forum to post this doubt, but here it goes:

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". Rubik’s Cube can rotate any direction.

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 shown in the figure below, when I try to rotate the cubes with gray faces vertically.

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

Thanks, and sorry if I wasn't so clear.

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Cubes perspective

Loading...

Similar Threads - Cubes perspective | Date |
---|---|

Sphere in a cube | May 7, 2015 |

Can one "chop" up S^3 into little cubes? | Mar 17, 2015 |

2D Cross Sections of a Cube | Dec 12, 2012 |

The space between a unit 'sphere' in n dimensions within an n-dimensional cube | Aug 7, 2012 |

1-point perspective Room with 2- and 3-point Objects possible? | Mar 24, 2012 |

**Physics Forums - The Fusion of Science and Community**