Didn't work aswell..
i don't think you understand what im trying to achieve
So, i have an actuall cube model, it has 768 faces in total
I want to convert each of it's vertices's (x,y,z) values that make it have the shape of a cube, into values that form a sphere
basically i want to wrap this cube into a sphere
Thus that whole complicated math
using vec_normalize(c.x, 1) and doing the same for c.y and c.z isn't helping, because im not actually telling the program to turn it into a sphere, im just reducing it's size
Please explain the whole process to me, i'd be very gratefull, something is missing in my way of thinking and it's driving me crazy
Thank you


----------------------------- EDIT -------------------------
Exactly 10 seconds after writing the above post, i decided to try just changing the c.x, then just the c.y and then just the c.z
just to watch it fail again
and it work right away with the c.x
thank you so very much! I've been waiting for ever to have this result! thank you thank you thank you man!
Aparently i was confusing c.x,y,z with actual x,y,z values
was i thinking right or wrong? Because i just changed the vertice's X (c.x) value and the cube turned into a sphere shocked
I was not expecting it, but it worked out and THANK YOU!
here's the inicial cube


And the final sphere

Last edited by joao13pt; 05/25/13 14:00.