Search code examples
javascriptautodesk-forgeautodesk-viewer

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.


Solution

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