jsc3d icon indicating copy to clipboard operation
jsc3d copied to clipboard

Loading bar ("Loading obj file...") isn't shown inside <canvas>

Open GoogleCodeExporter opened this issue 11 years ago • 2 comments

What steps will reproduce the problem?
1. Loading bar ("Loading obj file...") isn't shown inside <canvas>.
Example: http://uveter.ru/test-2/ (click on image to activate loading)

What is the expected output? What do you see instead?
We expect that loading bar would be situated inside canvas block.

What version of the product are you using? On what operating system?
Windows 7, Google Chrome.

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 14 May 2014 at 12:04

GoogleCodeExporter avatar Apr 09 '15 16:04 GoogleCodeExporter

Thanks for reporting this issue! I think it is relevant to the calculation of 
the progress bar, where there's a misuse of the relative coords as the absolute 
coords. 

This has been fixed. You can get the latest jsc3d.js from the repository. It 
would work correctly now.

Original comment by [email protected] on 14 May 2014 at 7:04

GoogleCodeExporter avatar Apr 09 '15 16:04 GoogleCodeExporter

By the way, the demo looks nice! Yet you may notice some unpleasant dark edges 
on the render result. This is caused by unnecessary averaging in vertex normal 
calculation. It can be prevented by explicitly setting a crease angle to 
preserve the sharp edges. Just add a single line before initialization of the 
viewer:

  viewer.setParameter('CreaseAngle', 30);

and it will be ok.  The parameter 'CreaseAngle' is documented here: 
http://code.google.com/p/jsc3d/w/edit/CreaseAngle.

Original comment by [email protected] on 14 May 2014 at 7:26

GoogleCodeExporter avatar Apr 09 '15 16:04 GoogleCodeExporter