3D rendering


AlexVergaraGil
08-20-2007, 01:39 PM
Hi all!
I have an array with dimensions m x n x o and I must perform a rendering for example in a plane (or maximum projection, etc) and give an m' x n' output.
My problem is when m' or n' are in the same order of m, n or o there appear blank spaces. I cannot find a concise algorithm to make this. does some one help me.
good work
Alex
PS
Dimensions and array type are not relevant as I can obtain the initial array in linear form.

Kevin Dolan
08-24-2007, 06:19 AM
I'm not sure what you mean by blank spaces, but it sounds to me like what you need is a form of trilinear interpolation.

You have an m x n x o array, and you want an m' x n' plane from that three-dimensional space, right? Once you have defined the plain you want, you can specify the coordinates of the x-y position of each element of your new array, in the coordinate system of your original three-dimensional space. These coordinates will generally be fractional values, but each point will lie within a cube specified by four points in the original array. The value you assign is then just a weighted average of those four points.

Kevin

sreeja
11-06-2007, 04:06 AM
I can't understand this 3D rendering.