LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting clean mesh overlay on 3d graph

First let me say that the new 3d stuff is much better than the old cw graph stuff.

One problem I'm having however is the mesh overlay on the 3d graph control when I turn on overlay lines. When I use the 3d surface that comes with the ni helper vi, it looks fine, as it should. However when I use the native 3d graph and turn on overlay lines, the lines are fragmented and appear to be rendered at the exact same location as the plot itself as opposed to on the surface of the plot. The picture and vi below demonstrate what I'm talking about.

In the picture, on the left is ni's xcontrol with helper vi. However, I only want the rendering screen and want to make my own custom color bar. To the right is the same plot but the rendering looks different - the overlay lines do not render smoothly like in the first plot. Is there any way to fix this?

Thanks

Download All
0 Kudos
Message 1 of 7
(3,905 Views)

If you set line width(3D Graph Properties->Plots->Overlay) to 2 in the second graph control, you would have the overlay lines a bit clearer.

0 Kudos
Message 2 of 7
(3,894 Views)

Thanks hanrock, setting the width to 2 does keep the lines from disappearing, but the problem still remains. There are still differences in line widths at certain areas, now there appear all thin lines (size 1) with thick lines showing some places. It's similar to aliasing, but chaning the aliasing setting does not seem to affect it.

0 Kudos
Message 3 of 7
(3,885 Views)

Or, you could make use of the first control.

1) hide the ramp and palette in Shortcut->Visible Items

2) open "<LVROOT>\vi.lib\Math Plots\3D Math Plots\3D Surface\3D Surface XCtrl\Facade.vi", make the frame transparent by using the brush in Tools Palette(View). And save.

 

Then you would have the control look like this(ignore the marching ants). This is the only way to customized these xcontrols theme.

transparent.png

 

0 Kudos
Message 4 of 7
(3,882 Views)

Thanks, I'll do that if I can't figure out how to use the other one. It's not exactly the same because some options like shininess, contours, and normals aren't visible, but I think I can make-do for now.

0 Kudos
Message 5 of 7
(3,879 Views)
0 Kudos
Message 6 of 7
(3,865 Views)

It seems more like a cosmetic difference.  The lines for the mesh on the right one are much thinner, and look worse when skewed.  I think that's just the tradeoff between using these 2 different types of displaying the graph.

0 Kudos
Message 7 of 7
(3,852 Views)