Michal Havel
Michal Havel

Reputation: 39

Forge Viewer - Visual Styles

I was using API version 6.4* to changed visual styles of models showed in Forge viewer. I was using this syntax:

this.viewer.impl.setPostProcessParameter("style", "graphite");
this.viewer.impl.setPostProcessParameter("brightness", 0);
this.viewer.impl.setPostProcessParameter("edges", true); 

And when I now use API version 7.*, I can´t use that syntax. Is it any other solution for change visual styles?

Thanks

M.H.

Upvotes: 1

Views: 354

Answers (1)

Petr Broz
Petr Broz

Reputation: 9942

In v7 the non-photo realistic rendering has been moved to extension Autodesk.NPR. See the migration guide for more details.

Upvotes: 1

Related Questions