Jump to content

3D picture VRML color change


GoUp

Recommended Posts

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

Link to comment

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:

post-7450-0-52250900-1303471692_thumb.pn

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

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.