Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: Spider IDF Viewer v-2020-06-07 #10

Open
theo-armour opened this issue Jun 8, 2020 · 3 comments
Open

Update: Spider IDF Viewer v-2020-06-07 #10

theo-armour opened this issue Jun 8, 2020 · 3 comments
Labels
update news about recent efforts

Comments

@theo-armour
Copy link
Member

theo-armour commented Jun 8, 2020

@ladybug-tools/spiders

https://www.ladybug.tools/spider-2020/sandbox/spider-idf-viewer/

image

Spider IDF Viewer

The script enables you to open EnergyPlus Input Data Files (IDF) from ypur computer or via a URL. Ths script locates all surfaces and windows data and displays the data in 3D in your browser.

  • You can rotate, zoom and pan the model by clicking or touching
  • Clicking on a surface allow you to display parametric data for the surface
  • Gallery menu allows you to load hundreds of demos

Issues

  • PopUps are broken
  • Not all files have been tested. Some files cause issues

To Do

  • Whatever you want

Backstory

On 2020-06-06 in issue #7 Mostapha said " since you have an importer for idf and OSM all the EnergyPlus users will be able to take advantage of this viewer even if they are not going to use honeybee schema. That is huge!"

This was a wonderful boost. The only problem was that yesterday Spider had an OSM file viewer but no IDF viewer. And we love huge and that was yesterday.

Here is the timeline for 2020-06-07:

  • First commit

12:27 ~
In this GitHub issue, Mostapha mentioned that we could view IDF files. In actual fact, the Spider team has a lot of 3D viewers but not one for IDF. So let's make one.

The core files are prepared. The Read Me is started.

It is worth considering that, as far as I know, I have never "seen" an IDF file. I do not know what IDF stands for. I have no clue as to what one should look like and how it should behave. I know 3D but I an a BEM newb.

15:07

We have Spider IDF Viewer! In two and a half hours. In 2015 it took me weeks to read OSM files and display in 3D. In 2017 it took me days to read gbXML files. Ditto RAD files.

And now it's like "Pff"

As of now it's lines for walls, door and window borders. Let's get some surfaces in here.

16:43 ~

Now we have meshes - but only in beige. Let's see if we can get some color.

19:19 ~

Now we have colors. And an "open all" button that opens and displays all the sample files in 3D.

And we have what are getting to be the usual features:

  • Open files on your computer
  • Open files on the Internet
  • Display surface data parameters when you click on a surface.

2020-06-08

00:10

Just discovered and added link to all 701 EnergyPlus testfiles . Started testing. None worked at first. ;-( Did a bunch of fixes. Now they seem to work mostly

@theo-armour theo-armour added the update news about recent efforts label Jun 8, 2020
@theo-armour theo-armour changed the title Update Spider IDF Viewer v-2020-06-07 Update: Spider IDF Viewer v-2020-06-07 Jun 8, 2020
@theo-armour
Copy link
Member Author

Updates 2020-06-08

  • Fix PopUp issues
  • Add sample file file credits
  • Fix a number of surface color issues
  • Fix loading in iframe location hash no show
  • Add working view menu - select visible by surface type

@michaldengusiak
Copy link

@theo-armour like always -- this is great. :)
I really like show all samples..

  1. how can we turn off fog?
    image

  2. which version do you support i tried to import my file... .IDF but I could not see .. maybe is somewhere outside view?
    Test File a.zip
    image

@theo-armour
Copy link
Member Author

@michaldengusiak

Thank you for the good thoughts.

  1. Fog. Yes, fog is having issue. it needs careful adjusting each time a new file is loaded. I am still learning about it. I will be adding a button to the rotation toggle buttun in the footer soon.
  2. A.zip. I have tried to open a.idf and also saw nothing. Two reasons. 1. today I discovered the Shade thing in IDF. Tomorrow I add. 2. In the IDF files I have sourced there is always a number of vertices provided. In the file you sent I see:

, !- Number of Vertices

And, oops, the file open is broken in the OSM viewer. Will fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
update news about recent efforts
Projects
None yet
Development

No branches or pull requests

2 participants