04-10-2011 03:10 AM
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
04-10-2011 08:28 PM
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.
04-11-2011 12:06 AM
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.
04-11-2011 12:59 AM - edited 04-11-2011 01:00 AM
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.
04-11-2011 01:41 AM
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.
04-11-2011 10:51 PM
fyi it is a bug:
http://lavag.org/topic/14123-getting-clean-mesh-overlay-on-3d-graph/
04-12-2011 07:41 PM
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.