Languages

Menu
Sites
Language
WebGL problems after upgrading Gear S3 to Tizen 3.0.

Hi! I develop some watchfaces on WebGL, and on tizen 2.3.2 (Gear S3) its worked perfectly, with good framerate and  anti-aliasing. But today I get upgrade to 3.0 and my project run with frame drops and without anti-aliasing... I use three.js library from sample project https://developer.tizen.org/development/sample/web/Multimedia/WebGL

Anti-aliasing option set on:    

...
    renderer = new THREE.WebGLRenderer({
            antialias: true
        });
...

This screens before (tizen 2.3.2) and after (tizen 3.0.0.1)

Sample application also run without anti-aliasing now. Is there any solution of problem?

 

Responses

2 Replies
Viacheslav Boldt

One solution found here https://stackoverflow.com/questions/15409321/super-sample-antialiasing-with-threejs , it works:

..
renderer = new THREE.WebGLRenderer();
renderer.autoClear = false;
var sampleRatio = 2;

renderModel = new THREE.RenderPass(scene, camera);

effectCopy = new THREE.ShaderPass(THREE.CopyShader);
effectCopy.renderToScreen = true;

composer = new THREE.EffectComposer(renderer);
composer.setSize(360 * sampleRatio, 360 * sampleRatio);

composer.addPass(renderModel);
composer.addPass(effectCopy);    
...

//in animate cycle
renderer.clear();
composer.render();

 but FPS dramatically decreases... I'm very sad, in 2.3.2 webgl works fine with good fps, i tested many code snippets from tree.js samples and planned some interesting projects. But in 3.0 webgl  performance dropped significantly. Perhaps the next os updates will solve these problems, I will wait.

 

 

Iqbal Hossain

I also hope problem will be gone after OS upgrade...