Solved

Best was to modify existing Appearances?

  • 1 November 2022
  • 1 reply
  • 0 views

Userlevel 4
Badge +26

I'm trying to convert 3D models to GLTF, however, the output models tend to be a little do dark in the application we're using. I'm trying to make them brighter by setting the SpecularColor factor to white. I also want to set the shininess, but only if there is no shininess set.

In addition I want to also apply a fallback appearance to the surfaces which have no appearance.

The conversion needs to work for all inputs and ideally be nice and fast. I've been playing around with the SharedItem tools and have gotten very close to what I want, however, there are some edge cases where my process doesn't work.

It seems like it should be really easy but I just can't get it to work.

Has anyone had luck doing this?

icon

Best answer by virtualcitymatt 1 November 2022, 10:21

View original

1 reply

Userlevel 4
Badge +26

Oh I figured it out. It was really easy. Just use a ShraredItemRetreiver, modify the appearances then used the SharedItemAdder to just update the shared item. It was too easy....

Default color can be applied to those features which were rejected by the ShraredItemRetreiver with an AppearenceSetter....

Reply