...Yes I know how to set color of each vertex but I can... to give this color interpolation over a 3Dsurface I've ....PositionColored(x, y, (float)z, (int) (Color.Blue.ToArgb() * x) + (int)(....Magenta.ToArgb() * y) + (int) (Color.Green.ToArgb() * z));- Hide quoted text ... average of the four corner colors V.r = (a*C1.r+... you mean by 4 corner colors ? And who is going to ...
...Yes I know how to set color of each vertex but I can...> to give this color interpolation over a 3Dsurface I've tried....PositionColored(x, y, (float)z, (int) (Color.Blue.ToArgb() * x) + (int)(....Magenta.ToArgb() * y) + (int) (Color.Green.ToArgb() * z));- Hide quoted text -... average of the four corner colors V.r = (a*C1.r+b... you mean by 4 corner colors ? And who is going to ...
... Yes I know how to set color of each vertex but I can...> to give this color interpolation over a 3Dsurface I've tried....PositionColored(x, y, (float)z, (int) (Color.Blue.ToArgb() * x) + (int)(Color.Magenta.ToArgb() * y) + (int) (Color.Green.ToArgb() * z));- Hide quoted text -...an average of the four corner colors V.r = (a*C1.r+b... you mean by 4 corner colors ? And who is going to ...
...Yes I know how to set color of each vertex but I ...> to give this color interpolation over a 3Dsurface I've ...(x, y, (float)z, Color.Green.ToArgb() * Color.Magenta.ToArgb()); First ....PositionColored(x, y, (float)z, (int) (Color.Blue.ToArgb() * x) + (int)(....Magenta.ToArgb() * y) + (int) (Color.Green.ToArgb() * z));- Hide quoted text -... average of the four corner colors V.r = (a*C1.r+...
...gmail.com> wrote: I have a 3D like the following:http://tabishfayyaz.googlepages...com/blackGraph.JPG How do I color them to give a picture ... list of vertices. I heard coloring has something to do with ... I know how to set color of each vertex but I ... to give this color interpolation over a 3Dsurface I've ....PositionColored(x, y, (float)z, (int) (Color.Blue.ToArgb() * x) + (int)(...
...0.0 <= y <= 1.0 So, in the corners the only color that contributes is the color of that corner and in the center they all contribute equally. (in the center a=bb=c=d=1.0...- yMax); float realZ = (zMin + zMax - 2 * z) / (zMin - zMax); vColor = Color.FromArgb(Math.Abs((int)(realX * 255)), 255, Math.Abs((int)(realY * ...
... and 0.0 <= y <= 1.0 So, in the corners the only color that contributes is the color of that corner and in the center they all contribute equally. (in the center a=bb=c=d=1.0)... - yMax); float realZ = (zMin + zMax - 2 * z) / (zMin - zMax); vColor = Color.FromArgb(Math.Abs((int)(realX * 255)), 255, Math.Abs((int)(realY * 255)));...
... (4.0) for any x,y when 0.0 <= x <= 1.0 and 0.0 <= y <= 1.0 So, in the corners the only color that contributes is the color of that corner and in the center they all contribute equally. (in the center a=bb=c=d=1.0) That's why the code had x/24 in the formula because ...
... c4.B * d) / 4.0f; Color vColor = r*65536+g*256+... that be assigned to the Color data type ? Simpler and better...... vColor = Color.FromArgb(r,g,b); --- Geoff using the following: int...c4.B * d) / 4; Color vColor = Color.FromArgb(r,g,b...So, in the corners the only color that contributes is the...
...+ c4.B * d) / 4.0f; Color vColor = r*65536+g*256+b...should that be assigned to the Color data type ? Simpler and better...... vColor = Color.FromArgb(r,g,b); --- Geoff using the following: int r... c4.B * d) / 4; Color vColor = Color.FromArgb(r,g,b);... So, in the corners the only color that contributes is the ...