LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Culled 3D object not transparent for all views/translations

This code displays a tube that is stored in a VRML file.  I modified the 'open WRL file' to import the object as a single color (green) with a alpha (transparency) value of 0.5.  The vi also draws an opaque sphere.  The sphere can be seen through the tube, but for only certain locations/viewpoints.
 
This discussion (http://forums.ni.com/ni/board/message?board.id=170&thread.id=280607&view=by_date_ascending&page=2) suggests duplicating the object and culling the front/back faces, which I've also done.
 
Please look at the code.  '3D Control Main' is the main vi.  You should notice as the sphere moves through the tube that transparency dissapears.  All I need is for the transparency to remain constant.  Any suggestions are welcome.
 
 
-Joe
 
0 Kudos
Message 1 of 4
(2,680 Views)
bump
0 Kudos
Message 2 of 4
(2,656 Views)
Hi peabody,

I've tried running your code, but I'm missing C:\Documents and Settings\Smile\My Documents\My Pictures\crosshatch.jpg file. Also, is it possible for you to simpify your code to illustrate the issue better?

Regards,
Stanley Hu
National Instruments
Applications Engineering
http://www.ni.com/support
0 Kudos
Message 3 of 4
(2,644 Views)
I figured it out.  The child objects were inheriting transparency/culling properties from the parent object (tube).  So I explicitly defined the properties in the child objects and added all the objects to a blank master object.
0 Kudos
Message 4 of 4
(2,635 Views)