0
Gradient fill on 3D objects
This discussion was imported from CodePlex
SeanV12 wrote at 2013-06-06 22:46:
How do you go about doing a gradient fill on a tube? My attempts have been unsuccessful and only show the last listed color.
So if anyone can help, how would you give this tube a gradient?
TubeVisual3D tube1 = new TubeVisual3D();
tube1 .Path = new Point3DCollection();
tube1 .Path.Add(new Point3D(0, 0, 0));
tube1 .Path.Add(new Point3D(10, 10, 0));
tube1 .Diameter = 5;
Thanks for reading, and thank you for the toolkit.
So if anyone can help, how would you give this tube a gradient?
TubeVisual3D tube1 = new TubeVisual3D();
tube1 .Path = new Point3DCollection();
tube1 .Path.Add(new Point3D(0, 0, 0));
tube1 .Path.Add(new Point3D(10, 10, 0));
tube1 .Diameter = 5;
Thanks for reading, and thank you for the toolkit.
objo wrote at 2013-06-07 12:10:
There should be a
See the StreamLines demo (but this demo uses the
TextureCoordinates property on the TubeVisual3D. Set the texture coordinates for each point and use a gradient material!
See the StreamLines demo (but this demo uses the
MeshBuilder, not the
TubeVisual3D).SeanV12 wrote at 2013-06-08 16:15:
Alright, got it! Thank you very much.
SeanV12 wrote at 2013-06-18 00:22:
Am I correct in understanding that since the TextureCoordinates property only tracks the X values, it's not possible for an object that moves up the Y axis only, with a static X value, to be painted with a gradient?
For reference, what I'm trying to do is to make certain points along a tube's path different colors.
For reference, what I'm trying to do is to make certain points along a tube's path different colors.
objo wrote at 2013-06-18 22:05:
See MeshBuilder line 1927 where the texture coordinates are defined.
The x-value is set by the specified values (should be normalized 0..1), and the y value corresponds to the position around the tube.
The x-value is set by the specified values (should be normalized 0..1), and the y value corresponds to the position around the tube.
SeanV12 wrote at 2013-06-19 20:37:
Thank you, I will look into this.
Your quick replies are much appreciated, by the way!
Your quick replies are much appreciated, by the way!
Customer support service by UserEcho
Thanks for your article. I would like to say that a health insurance agent also works for the benefit of the particular coordinators of a group insurance policies. The health insurance professional is given an index of benefits wanted by an individual or a group coordinator. Exactly what a broker will is search for individuals and also coordinators which in turn best go with those wants. Then he shows his recommendations and if both parties agree, the particular broker formulates a contract between the two parties. 강남어게인
BUY 50 BMG Primers #35
BUY Ginex 50 BMG Primers
BUY CCI #350 Primers
BUY CCI Primers #300
BUY Magnum Primers #155
Federal Large Pistol Primers #150
BUY Magtech Primers #2-1/2
BUY Winchester Primers #7
BUY Winchester USA Primers
BUY CCI 7.62mm NATO-Spec Primers #34
BUY CCI Bench Rest Primers #BR2
CCI Magnum Primers #250
BUY CCI Primers #200
BUY Magnum Primers #215
BUY Federal Primers #210
BUY Federal Medal Magnum #215M
BUY Federal Medal Primers #210M
BUY Remington EtronX Electronic
BUY Remington Magnum Primers #9-1/2M
BUY Remington Primers #9-1/2
BUY Winchester Primers #8-1/2
BUY Winchester USA Primers
BUY CCI Percussion Caps #11 Magnum
BUY CCI Musket Percussion Caps
Federal Firestick Primers
BUY Fiocchi Primers #616
BUY #10 Percussion Caps
BUY Remington #11 Percussion Caps
BUY Remington 209M Primers
BUY 22617 #10 PERCUSSION CAPS
BUY RWS #11 Percussion Caps
BUY RWS Musket Caps 4 Flange Musket Caps
BUY Schuetzen Musket Caps 4 Wing Musket Caps
BUY CCI Primers #209 Shotshell
BUY CCI Primers #209M Shotshell Magnum
BUY Cheddite Shotshell Primer #209
BUY Federal Primers #209A Shotshell
BUY Fiocchi Primers #209 Shotshell
BUY NOBEL SPORT SHOTSHELL PRIMERS
BUY NobelSport Primers #209 Shotshell
BUY Remington STS Primers #209
BUY Rio 209 G-1000 Shotshell Primers
BUY Federal 209A Shotshell Primers