LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3d picture anti-alias

Ok - I'm prepared to believe I'm being stupid but I can't get objects in a 3D picture control to be drawn with anti-aliasing.

Here is the code:

23590iA648787D332D4776

And here is the output (after moving the camera a bit):

23594i18A8DF08948ACE24

Which isn't antialiased (but does have flat shading)

 

Any ideas?  I need to produce something that looks good for a demo and jaggies aren't cutting it.

 

Thanks!

 

 

0 Kudos
Message 1 of 19
(6,727 Views)

Bump - or should I just give up on 3D picture controls?

0 Kudos
Message 2 of 19
(6,675 Views)

Hi Jester,

 

I do not know the 3d picture very well but I am curious (I submitted a request for an AE to reply).

 

What exactly is "anti-aliasing" and "flat shading"?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 19
(6,669 Views)

Hi Ben,

 

'Flat shading' - this selects how the shading for the object is done.  Simple shading in 3D is done by looking at the normal vector for each pixel on the object.  For flat shading this normal vector is simply the normal vector of the face so faces appear flat (In the picture you can clearly see each face that makes up the curved side of the cylinder).  For smooth shading the normal is calculated by interpolating the vertex normals across the face so you can't see the face edges.  This is normally what you want for complex curved or organic shapes as it hides the polgons. 

 

Anti-aliasing is a way of smoothing the edges so that you don't see the pixels.  See picture

 

23832iC658431A12F2284A

It makes the image much better - and *should* work in a 3D picture control!

0 Kudos
Message 4 of 19
(6,661 Views)

Your attached image is broken but I think I understand.

 

Q:

Do those setting apply even when we have a small object like the default cylinder?

 

After all, it is just a collection of polygons.

 

Forgive the distraction please.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 19
(6,658 Views)

 


@Ben wrote:

Your attached image is broken but I think I understand.


I can see it.

 

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 6 of 19
(6,648 Views)

Definately - setting the shading does work (as it should) so should anti-aliasing.  I've also tried it on meshes, without success.  Here's the picture again.

 

23874i923C9AF031B29657

Hopefully it works now.  Anti-Aliasing is very important for using the 3D picture display to show presentation quality graphics - just like the anti-aliasing setting in the plot controls (which still isn't settable programmably!!!)

Message 7 of 19
(6,629 Views)

And for interest here's the difference between smooth and flat shading - same mesh, different look.

 

23876iF801DA4BC6463F08

 

Anybody any ideas about the anti-aliasing?  Work rounds?

 

Thanks

Message 8 of 19
(6,625 Views)

Not anything that would fix it.  But have you checked what it looks like with anti aliasing on and off.  My guess is it's working (compared to when it's off), just not to your satisfaction.

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 9 of 19
(6,616 Views)

Nope - see picture. - no AA there (top is x3)

  23924i099C755D6FDD9421

0 Kudos
Message 10 of 19
(6,606 Views)