简体   繁体   English

伪造查看器质量设置

[英]Forge viewer Quality settings

As different end users has different hardware, the GPU usage can sometimes be very heavy to calculate for certain devices/computers, and that's why we are looking to add a dropdown in our application that makes the end user able to choose different quality settings for their online 3D designs. 由于不同的最终用户具有不同的硬件,因此对于某些设备/计算机,GPU的使用有时会非常繁重,这就是为什么我们希望在应用程序中添加一个下拉菜单,从而使最终用户能够为其选择不同的质量设置在线3D设计。

We would want to categorize different values for three different categories (low/medium/high) by switching on/off relevant settings in the viewer through the API. 我们希望通过API在查看器中打开/关闭相关设置,从而将三个不同类别(低/中/高)的不同值分类。

Our goal is to specify the absolute lowest quality/performance settings for the "low" option, and the absolute best rendering quality for the "high" setting. 我们的目标是为“低”选项指定绝对最低的质量/性能设置,为“高”设置指定绝对最佳的渲染质量。 Here's our suggestion: 这是我们的建议:

LOW QUALITY 低质量

viewer.setOptimizeNavigation(true)
viewer.setQualityLevel(false, false);
viewer.setGroundShadow(false);
viewer.setGroundReflection(false);
viewer.setProgressiveRendering(true);

MEDIUM QUALITY 中等质量

viewer.setOptimizeNavigation(false)
viewer.setQualityLevel(true, true);
viewer.setGroundShadow(false);
viewer.setGroundReflection(false);
viewer.setProgressiveRendering(true);

HIGH QUALITY 高质量

viewer.setQualityLevel(true, true);
viewer.setGroundShadow(true);
viewer.setGroundReflection(true);
viewer.setProgressiveRendering(false); (to display shaders correctly)

Our question is whether there's any comments to the list above, or any other settings we should take into consideration. 我们的问题是上面的列表中是否有任何评论,或者我们应该考虑的其他设置。 Thanks. 谢谢。

setOptimizeNavigation doesn't matter when both arguments of setQualityLevel are false, since it effectively makes them false while navigating. 当setQualityLevel的两个参数均为false时,setOptimizeNavigation无关紧要,因为它在导航时实际上使它们为false。 I would suggest using setOptimizNavigation(true) for the medium quality, and maybe even for the high quality, since it only matters when you are moving the view around. 我建议您将setOptimizNavigation(true)用于中等质量,甚至可能用于高质量,因为这仅在您移动视图时才重要。 Turning it off can disrupt smooth navigation. 将其关闭会破坏流畅的导航。 It depends on what you think High Quality means. 这取决于您认为高质量意味着什么。

In addition, obviously, setProgressiveRendering(false) will cause performance issue of navigating the model when the model is large. 此外,很明显,当模型很大时,setProgressiveRendering(false)将导致导航模型的性能问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM