Thread Closed

Cubes perspective

 
Share Thread Thread Tools
May11-10, 03:30 PM   #1
 

Cubes perspective


Hello!

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.

Click image for larger version

Name:	cuboMagico.png
Views:	5
Size:	19.4 KB
ID:	25721

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

Thanks, and sorry if I wasn't so clear.
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Galaxies fed by funnels of fuel
>> The better to see you with: Scientists build record-setting metamaterial flat lens
>> Google eyes emerging markets networks
Jun30-10, 05:53 PM   #2
 
You're using the Painter's algorithm. It is severely limited so it's only ever used in conjunction with binary space partitioning. Look into using a Z-buffer or S-buffer instead.
Thread Closed
Thread Tools


Similar Threads for: Cubes perspective
Thread Forum Replies
intersection of two cubes. Calculus & Beyond Homework 9
sum of the first n cubes Calculus & Beyond Homework 3
Spivak on 1-cubes Calculus 0
Two Cubes in 3d Brain Teasers 12