Precision problem
pingfengafei opened this issue · comments
Hi, I found a very urgent problem about precision
look at this where from your github page : http://va3c.github.io/viewer/revit2.html
I know the original rvt model is from Revit basic_sample_project.rvt file
this is original picture in revit
Pay attention to the left pillar above.
Besides, It seems produced model was stretched contrast to original model
At begining, I think it was precision which caused this problem
so I changed arguments in RvtVa3c project:
const double _eps = 1.0e-9 in to const double _eps = 1.0e-9;
but failed.
could you please solve this problem?
aha,There is nothing about precision. It is webgl render and camera caused this problem.
in va3c-viewer.js file, I replaced code with below:
1:VA3C.renderer.setSize( 1080, 1080 );
this solved "stretch" problem
2:VA3C.camera = new THREE.OrthographicCamera( -20000, 20000, 20000, -20000, 1, 1000000 );
the original code used :VA3C.camera = new THREE.PerspectiveCamera( 45,window.innerWidth/window.innerHeight, 1, 1000000 );
revit 3d view uses OrthographicCamera. instead of PerspectiveCamera.
however, another problem arise:
click object in browser will show another object infomation.