Forum

dynamic quality / subsampling

04 May 2018 16:26
to allow our application to run more fluently on more devices, we want to adjust the quality settings at runtime.
mainly we want to disable AntiAliasing and possibly render at a lower resolution

- according to the console, the apply_quality() command does not work after the scene has been loaded. is it viable / possible to unload and reload the scene in order to apply quality settings?

- is there another way to disable AntiAliasing?

- is there a way to set the canvas_resolution_factor below 1, so that the image is rendered at lower resolution and upscaled? it does not work in live preview, is it possible at all?
11 May 2018 15:13
- according to the console, the apply_quality() command does not work after the scene has been loaded. is it viable / possible to unload and reload the scene in order to apply quality settings?

Currently settings are being applied during initialization of the application, thus you have to refresh your page. You can use the storage module for storing your settings.

- is there another way to disable AntiAliasing?
No. Only when initializing application.


- is there a way to set the canvas_resolution_factor below 1, so that the image is rendered at lower resolution and upscaled? it does not work in live preview, is it possible at all?
The following code is working for me:
b4w.config.set("canvas_resolution_factor", 0.1)
window.dispatchEvent(new Event('resize'));

Alexander (Blend4Web Team)
twitter
15 May 2018 15:18
ok the canvas resolution looks useful!

we will see what we can implement

thanks a lot!
 
Please register or log in to leave a reply.