01-13-2010 08:23 AM
Hi,
My question is on applying a color ramp to a 3D picture.
I have a 2D array of data containing height values which I am displaying using NI_3d Picture Control.lvlib:Create Height Field.vi mapped onto the 3D Picture Control Create Object.
The structure I am displaying is a polymer sample with a microchannel formed in it.
My problem is I can only set one color using the Create Height Field vi for the overall microchannel image. What I would like is to have a color gradient based on the height values in my array. This would then show the surface of the sample in one color and gradually changing color as you moved deeper into the microchannel.
I've attached the image of my microchannel as it is. All I am able to change is the solid color at the moment.
Your help would be much appreciated,
Kevin
01-20-2010 06:08 AM
I've attached some sample code to see if any of you would be able to help me with this, as I still haven't found a way to apply the color ramp.
Kevin
01-28-2010 10:38 AM
Hello Kevin,
I am currently working on this issue. I have found that it is not possible to texture a height map with different colors. I have found a possible workaround that should work using create mesh. I have been looking inside the Express VI that is used to map sensors to a 3d model using varying colours, This should reveal the result you are looking for.
I shall keep you posted on my progress with this.
With regards,
02-28-2010 06:17 AM
Hi Philip,
Sorry for the late reply. I had nearly given up on this issue. If you have any luck with it please keep me posted.
Regards,
Kevin