GoUp Posted April 20, 2011 Report Share Posted April 20, 2011 Hello. I am loading various VRML (wrl) files to my 3D scene and everything is working perfectly, except I did not find a way to change colors of this VRML objects. Is there any way that you can dynamically change colors of loaded VRML objects? I tried to use a SceneObject property Material.Diffuse, but nothing happens. Any help is much appreciated. Kind regards, Greg Quote Link to comment
hugo_fr Posted April 21, 2011 Report Share Posted April 21, 2011 Hi, This VI can load a STL file with a specified color, but once loaded, i don't know yet how to change the color dynamically. Picture 3D - Load STL Geometry.vi Quote Link to comment
vugie Posted April 22, 2011 Report Share Posted April 22, 2011 I am loading various VRML (wrl) files to my 3D scene and everything is working perfectly, except I did not find a way to change colors of this VRML objects. Is there any way that you can dynamically change colors of loaded VRML objects? I tried to use a SceneObject property Material.Diffuse, but nothing happens. Here is an example how to do it: Note that direct Diffuse color change will work for only several objects within object hierarchy. It depends on material and inheritance settings for particular objects. So for full control much deeper analysis of object hierarchy relationships is needed. vrml change colors.zip Quote Link to comment
GoUp Posted April 23, 2011 Author Report Share Posted April 23, 2011 @vugie Thank you for your reply. Now things are much clearer. Your example and reply are explaining everything perfectly. Kind regards, Greg Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.