Git Product home page Git Product logo

viewer's People

Contributors

femik avatar howesben avatar joshwentz avatar mattmas avatar theo-armour avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

viewer's Issues

failed to load big model

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

How to adjust light to make the scene brighter?

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

Header and menu bar

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.

  1. Is it possible to include the header and menu bar in the va3c viewer?
  2. Is there a way to separate the viewer from the header and menu from the viewer so that they don't afect one another?

optimize visual effects with LOD

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??

zoomout will cause part of model hidding

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

vA3C JSON Loader

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?

wrong js source files address

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

Precision problem

Hi, I found a very urgent problem about precision
look at this where from your github page : http://va3c.github.io/viewer/revit2.html
image

I know the original rvt model is from Revit basic_sample_project.rvt file
this is original picture in revit

image

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?

Collada loader

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.

JS errors with the 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 :-)

2016-11-09 ~ IFC View R2

@webdada

Change Log

image

IFC View R2

Change Log

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.

  • Add opensourceBIM/IFC-files example: Wall.ifc
    • Display wall as a 3D mesh
  • Add Stanford.edu example: BIMhouse_ARK_info4
    • Some of the geometry displays

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.