LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fast Update of 3D object color

I was trying to update the color of two 3D objects on the fly.  It would be easiest to do this on each iteration of the loop based on what is occurring in my system, but doing so greatly reduces the performance of the system.  Must take a while to recolor all those triangles.  Attached is an image of the approach that I was taking.

 

Does anyone know of a faster way to change a 3D objects color than this?

 

Thanks,

Thad

 

0 Kudos
Message 1 of 4
(3,041 Views)

Hey. Have you tried using a property node? This forum discusses it a bit more:

 

http://forums.ni.com/t5/LabVIEW/3d-object-scaling-and-brightness/m-p/3170059

 

Brittany V

Applications Engineer

0 Kudos
Message 2 of 4
(2,983 Views)

I just looked at all the property nodes for a 3D object, such as the color mode.  There isn't a "color" attribute there, only modes to color the instrument.

0 Kudos
Message 3 of 4
(2,965 Views)

Looking more into 3D objects, it looks like you're using an stl file for your object. Based upon this community example, it looks like you're updating the color properly. The example has "Overall" wired into the "Color Mode" terminal of the SceneMesh invoke node, but that's the only difference I see.

 

Regards,

Brittany V

Applications Engineer

0 Kudos
Message 4 of 4
(2,939 Views)