Coloring a 3D Surface
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 64 articles for 0.004 sec
Re: Coloring a 3D Surface     

Group: microsoft.public.win32.programmer.directx.graphics · Group Profile · Search for Coloring a 3D Surface in microsoft.public.win32.programmer.directx.graphics
Author: TFM
Date: Aug 16, 2007 16:15

...Yes I know how to set color of each vertex but I can... to give this color interpolation over a 3D surface 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 ...
Show full article (5.06Kb) · Show article thread
Re: Coloring a 3D Surface     

Group: microsoft.public.win32.programmer.directx.graphics · Group Profile · Search for Coloring a 3D Surface in microsoft.public.win32.programmer.directx.graphics
Author: Geoffrey Summerhayes
Date: Aug 16, 2007 12:44

...Yes I know how to set color of each vertex but I can...> to give this color interpolation over a 3D surface 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 ...
Show full article (4.61Kb) · Show article thread
Re: Coloring a 3D Surface     

Group: microsoft.public.win32.programmer.directx.graphics · Group Profile · Search for Coloring a 3D Surface in microsoft.public.win32.programmer.directx.graphics
Author: TFM
Date: Aug 16, 2007 12:33

... Yes I know how to set color of each vertex but I can...> to give this color interpolation over a 3D surface 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 ...
Show full article (2.48Kb) · Show article thread
Re: Coloring a 3D Surface     

Group: microsoft.public.win32.programmer.directx.graphics · Group Profile · Search for Coloring a 3D Surface in microsoft.public.win32.programmer.directx.graphics
Author: Geoffrey Summerhayes
Date: Aug 16, 2007 09:25

...Yes I know how to set color of each vertex but I ...> to give this color interpolation over a 3D surface 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+...
Show full article (2.10Kb) · Show article thread
Re: Coloring a 3D Surface     

Group: microsoft.public.win32.programmer.directx.graphics · Group Profile · Search for Coloring a 3D Surface in microsoft.public.win32.programmer.directx.graphics
Author: TFM
Date: Aug 16, 2007 06:38

...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 3D surface I've ....PositionColored(x, y, (float)z, (int) (Color.Blue.ToArgb() * x) + (int)(...
Show full article (2.01Kb) · Show article thread
Re: Coloring a 3D Surface     

Group: microsoft.public.win32.programmer.directx.graphics · Group Profile · Search for Coloring a 3D Surface in microsoft.public.win32.programmer.directx.graphics
Author: TFM
Date: Aug 20, 2007 17:44

...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 * ...
Show full article (3.15Kb) · Show article thread
Re: Coloring a 3D Surface     

Group: microsoft.public.win32.programmer.directx.graphics · Group Profile · Search for Coloring a 3D Surface in microsoft.public.win32.programmer.directx.graphics
Author: TFM
Date: Aug 20, 2007 14:36

... 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)));...
Show full article (2.89Kb) · Show article thread
Re: Coloring a 3D Surface     

Group: microsoft.public.win32.programmer.directx.graphics · Group Profile · Search for Coloring a 3D Surface in microsoft.public.win32.programmer.directx.graphics
Author: Geoffrey Summerhayes
Date: Aug 20, 2007 09:47

... (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 ...
Show full article (2.25Kb) · Show article thread
Re: Coloring a 3D Surface     

Group: microsoft.public.win32.programmer.directx.graphics · Group Profile · Search for Coloring a 3D Surface in microsoft.public.win32.programmer.directx.graphics
Author: TFM
Date: Aug 20, 2007 07:06

... 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...
Show full article (3.89Kb) · Show article thread
Re: Coloring a 3D Surface     

Group: microsoft.public.win32.programmer.directx.graphics · Group Profile · Search for Coloring a 3D Surface in microsoft.public.win32.programmer.directx.graphics
Author: Geoffrey Summerhayes
Date: Aug 17, 2007 13:17

...+ 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 ...
Show full article (3.18Kb) · Show article thread
1 · 2 · 3 · 4 · 5 · 6 · 7 · next