Jump to content

3D Picture - How to set triangle mesh transparency


Recommended Posts

Hey,

Now that I've got the alpha version of Active VI Toolkit released, I've had some time to do some real work once again ;) So I started to play around with LabVIEW 3D picture control released with LabVIEW 8.2, although I'm using it with LV 8.5. I'm trying to get two colored 3D triangle meshes to be displayed one top of another so that the lower mesh would be visible trough the upper mesh. If I understood the 3D picture control documentation correctly, setting the alpha value of a triangle color to below 1.0 should set the primitive to be partially transparent. However this is not what I've experienced with my simple test code.

Does anyone have any experience on transparency with 3d picture control? How does one achieve partially transparent surfaces? An example VI (LV 8.2) is attached that presents the failing method I'm using.

post-4014-1204553875.png?width=400

Cheers,

Tomi

Link to comment

Hi,

although it works this way, it is not working as expected:

I have put another transparent, green triangle in between the two existing, observing that you can see through both blue and green only, if the green triangle is added to the scene before the blue.

Then I checked and tried to see through both from behind. Looking from behind however, transparency is lost.

Transparency thus seems to be implemented as an optical diode - not what you normally observe in nature. :(

Herbert

Link to comment

Herbert,

I found that setting both SceneObject.Blending.Mode to On and SceneObject.Bending.Bin to Transparent Bin for the parent scene object will render all the three triangles correctly irrespective of the order in which they are added.

post-4014-1204616752.png?width=400

I attatch the VI for LV 8.5 as well.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.