va3c / viewer Goto Github PK
View Code? Open in Web Editor NEW3D Model Viewer with Three.js
Home Page: http://va3c.github.io/viewer/
3D Model Viewer with Three.js
Home Page: http://va3c.github.io/viewer/
Great work on the viewer !
I just download the viewer as a zip, tried it directly on Chrome browser, and also deployed to Tomcat and run it as a web app.
I got some JS errors, and the 3d scene would not load (blank screen).
http://jaanga.github.io/libs/db/master/db.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://jaanga.github.io/libs/md/showdown.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://jaanga.github.io/libs/db/master/db.js Failed to load resource: the server responded with a status of 404 (Not Found)
readme-reader.html:18 Uncaught ReferenceError: init is not defined(…)
Please shed some lights on this :-)
Hello Masters,
I tried viewer and it's awesome !
However, I encounter a visual problem: while zooming out, a model will be hidden by part. If I zoom in, the missing part will show up again. Anything I need to pay attention? Like camera settings, near/far clip, or any other stuff? Thanks a lot !
Last but not least, thank you much for this project.
Best Regards,
David Tan
Theo,
While using viewer to render scene, I have problem to make the view brighter. The original scene in Revit is bright. But after I export it via RvtVa3c, and load JSON in vA3C viewer, the scene turns dark. You can find different screenshots in link "http://url.cn/XSCwrE".
To get "vA3C result", I modified ambient color to 0xcccccc in loadJS(). I also changed latlon[] from New York to Shanghai (where I live), and time from 7/4 5:00 to 7/4 12:00 in updateLight(). I think the latter is to control direction of the direction light.
However, I cannot get similar result to what in Revit. Could you please provide tips ? Thanks a lot!
David
Hi Theo,
It seems viewer isn't happy with big model (about 150M). I used Jeremy's Revit vA3C exporter to output JSON file of rac_advanced_sample_project.rvt (Revit sample model). Of course, there're some user data in my JSON.
While loading, FireFox complains that va3c-viewer.js is running timeout and inform me to choose wait or abort va3c-viewer.js process. Either way causes nothing rendered.
Any thing I can do to overcome this? Thanks a lot!
Best Regards,
David Tan
Working with your ColladaLoader from the Cookbook I have found that the method for getting the BoundingSphere does not work right and therefore camera position and displayed bounding sphere are not correct.
I have solved it getting the bounding sphere in sommExtents method with this code:
var bSphere = new THREE.Box3().setFromObject(scene.children[2].children[0]).getBoundingSphere();
which seems to work ok at least with a couple of models from Sketchup.
Regards.
followed with revit.html. Here I want to solve the problem:
optimizing revit.js file with LOD(leveal of details) for better visual effects.
I noticed that a revit-file.js about 150M size. while I rotate the 3D building,only 12-15fps(under ATI 4650).
I also see that three.js has LOD fucntion.but how can I add it to optimize visual effects??
The files from https://github.com/BuildingSMART/IfcScript/tree/master/Examples look like they will be a very handy resources. There's a good number of examples with each showing a discrete facet of IFC.
Also there's a folder with images of what each example should look like.
We have taken a simple example - Wall.ifc. We can load it, parse the data and display its Geometry in 3D.
We are planning to add new examples to the menu on an ongoing basis. With each new example added there should also be additions and enhancements to the capabilities of the reader/interpreter.
Unfortunately it looks like there are many style for creating IFC files. The Buildingsmart files were created with a tool tiled 'Geometry Gym'. These files do not seen to create data in the same way that Revit creates IFC data. Thus the display of none of the other examples has been enhanced by the added capabilities in R2.
This is all part of a learning process. The important thing will be to keep the code readable and simple so that it will be easy for people too adapt the code to new situations.
is there a loader for vA3C JSON files with three.js? It seems as though the normal three.js JSON loader does not have geometries and a breakdown like the JSON files exported from the vA3C plugins. Is there a JSON Loader file that I can add to my viewer for specifically vA3C files?
While I read this page:
https://github.com/va3c/viewer/tree/gh-pages/cookbook/export-data-json
try with readme links,I found that I can't see live demo on the webpage.
After checking code, it is wrong js source files address which caused problem.
using local source file 【three.js-master】replace with those file:
<script src=http://mrdoob.github.io/three.js/build/three.min.js ></script> <script src=http://mrdoob.github.io/three.js/examples/js/controls/TrackballControls.js ></script> <script src=http://mrdoob.github.io/three.js/examples/js/libs/stats.min.js ></script> <script src="http://mrdoob.github.io/three.js/examples/js/exporters/GeometryExporter.js"></script>finally, it works!
can you fixed 404 problem? 3q
It's not clear which license this project is covered by
So i'm a civil engineer trying to use the va3c viewer in my master thesis with a website that incorporates a model viewer for better interaction between the structural engineer and the engineer onsite.
I got the viewer to work, but i can't include my php header and menu bar properly. All the elements of the header and menu aren't selectable, and to select an element of the building model, i have to click above it, the height of the header and menu bar to be exact.
hi guys,
are you aware of cl3ver?
they very cl3verly use the numeral 3 in the same way as we do in va3c :-)
here are two neat demos:
http://3d.cl3ver.com/uWfsD?tryitlocation=3
http://3d.cl3ver.com/19xeEl?tryitlocation=0
it shows what can be done and where we are all heading...
should we aim at setting up something similar?
here is another neat related technology demo:
http://virtualmap.owensborohealth.org
cheers
jeremy
Started this: https://github.com/ibuilder/3D-Model-Viewer
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.