vinaysshenoy / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 frolov.a...@gmail.com on 14 May 2014 at 12:04

GoogleCodeExporter commented 9 years ago
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 Humu2...@gmail.com on 14 May 2014 at 7:04

GoogleCodeExporter commented 9 years ago
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 Humu2...@gmail.com on 14 May 2014 at 7:26