LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Editing a .wrl object

I have a question about the new 3D picture control toolkit. I've created an assembly model in Solidworks, saved the assembly as a VRML 97 file, opened the .wrl file in LabVIEW and can select the various parts in the assembly. What I'm trying to do now is to change the color of the part based on external measurement data. While purchasing Insight is one option, I think it must be possible to change the color of the object in LabVIEW, but I'm not very familier with 3D models and would appreciate any assistance.
Thanks
0 Kudos
Message 1 of 3
(5,322 Views)
Hello Botman,
 
While I believe the easiest way to include color with an object loaded from a wrl file is to export the model with the color information included, I can understand your point here. From what I see, there is not way to set the color of an object loaded from a .wrl file the way you would set the color of an object created programatically in LabVIEW. However, you could apply a texture to the object, where the texture is just a solid color.
 
I have attached a zip file below (WRL.zip) that shows an example of this idea. It has a simple object loaded from a .wrl file and then applies a 'blue' texture loaded from a bitmap using the VIs found on the graphics palette. I created the bitmap in MSPaint, but you could do it programmatically as well using the other graphics VIs.
 
It sounds like Insight might still be the way to go if you're not satisfied with these results. I will look into it more and see if there is anything else I can come up with.
 
Hope this helps!
Charlie S.

Visit ni.com/gettingstarted for step-by-step help in setting up your system
0 Kudos
Message 2 of 3
(5,296 Views)

Regarding my topic: http://forums.ni.com/ni/board/message?board.id=170&message.id=479369#M479369

 

I would like to ask Botman to post his example with the solidworks file on the forum. 

0 Kudos
Message 3 of 3
(4,350 Views)