ladybug-tools / spider

:spider_web: 3D interactive analysis in your browser mostly written around the Three.js JavaScript library
http://www.ladybug.tools/spider
44 stars 15 forks source link

Rad Viewer R1 #108

Closed theo-armour closed 6 years ago

theo-armour commented 6 years ago

@ladybug-tools/spiders

@mostaphaRoudsari provided this RAD file: https://github.com/ladybug-tools/spider/blob/master/solar-well/radiance-data-files/sample-file.rad

Here is what the data looks like in 3D:

image

full screen: Rad Viewer 1

Source code

The code is simplistic and hard-wired to a single file. Future release will add more sophistication and flexibility

mostaphaRoudsari commented 6 years ago

Oh wow! that was quick.

The source code in the link is not updated. It looks more like a place holder.

Is it possible to add the option to upload a file via the interface? That way I can test it for more files.

theo-armour commented 6 years ago

@mostaphaRoudsari @mdengusiak @bwelle

Is it possible to add the option to upload a file via the interface? That way I can test it for more files.

In R2. Also some links fixed

image

full screen: Rad Viewer 2

Only handling triangles and quads. polygons will follow, Many other issues too. but must go to bed.

2018-04-26/17:18 ~ Fixed broken link 2018-04-27 ~ simplified file name number

mostaphaRoudsari commented 6 years ago

@theo-armour, the link doesn't work but the screenshot is pretty exciting!

sariths commented 6 years ago

@theo-armour, this will be super useful!

theo-armour commented 6 years ago

@mostaphaRoudsari

Broken link = late night submission

Should be fixed now

mostaphaRoudsari commented 6 years ago

@theo-armour, Thanks. This is a great sample file for me! I can probably work on the parser to make it more generic.

Is my understanding right that you can only create faces with 3 vertices in THREE.js? In other words if we have a polygon we always need to triangulate it or is there a more generic way?

theo-armour commented 6 years ago

@mostaphaRoudsari

Is my understanding right that you can only create faces with 3 vertices in THREE.js?

In general, in computer graphics, a 'face' is a triangle. It olden times a 'quad' and a 'face' were mixed together in various ways, but much less so in most updates of most modern apps - but 'your mileage may vary'.

Given a bunch of triangular faces, however, we may model almost anything. Including, of course, flat multi-sided polygon as specified in RAD files. RAD files - and their polygons - are new to me. I will start by using the code I use to turn gbXML polygons into Three.js Shape meshes. We will see what happens, but I think that all of the data types in Michal's file should be renderable using Three.js without too many issues in the near future.

Putting it another way: rendering any and all geometry in normal RAD files in your browser looks like being quite doable.

Adding colors to the vertices looks doable as well but I have not really started. Please upload some sample files.

theo-armour commented 6 years ago

@mostaphaRoudsari @mdengusiak @bwelle

full screen: Rad Viewer 3

image

Full polygons with greater than four sides still to be done

theo-armour commented 6 years ago

@mostaphaRoudsari @mdengusiak

Are there any sample results files from a Radiance analysis that we can use to start shading or coloring the polygons?

bwelle commented 6 years ago

We will have that shortly from Radiance measure. But we will view it on gbXML geometry since that is where the mesh will have originated. Take radiance results for exterior surfaces from mesh points and trying to tie it to the .rad polygons (at least that I see visually when go to wireframe) will not work as you will have a series of mesh points that fall within the polygon and you would have to do some averaging that could get complex to give a given polygon a mesh.


Benjamin Welle, PhD, PE, LEED AP BD+C Director of Energy Lab Nicollett Mall, IDS Center, 80 S 8th St #300, Minneapolis, MN 55402 t 415.856.3000 m 858.344.6858 benjamin.welle@perkinswill.commailto:benjamin.welle@perkinswill.com

Perkins+Will Ideas + buildings that honor the broader goals of society perkinswill.comhttp://www.perkinswill.com/|Bloghttp://blog.perkinswill.com/ | Facebookhttp://www.facebook.com/ideasandbuildings | Twitterhttp://www.perkinswill.com/pages/twitter.html

From: Theo Armour [mailto:notifications@github.com] Sent: Monday, April 30, 2018 10:10 PM To: ladybug-tools/spider spider@noreply.github.com Cc: Welle, Benjamin Benjamin.Welle@perkinswill.com; Mention mention@noreply.github.com Subject: Re: [ladybug-tools/spider] Rad Viewer R1 (#108)

@mostaphaRoudsarihttps://github.com/mostaphaRoudsari @mdengusiakhttps://github.com/mdengusiak

Are there any sample results files from a Radiance analysis that we can use to start shading or coloring the polygons?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/ladybug-tools/spider/issues/108#issuecomment-385589090, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AbaYGgR4qUH_kTStURgAa3aLIs-_767Zks5tt9ILgaJpZM4Ti8Uj.

mdengusiak commented 6 years ago

@theo-armour Here is file Radiance from our Webinar I guess this will be best example to start image image

gridBasedSimulation.zip

mdengusiak commented 6 years ago

Also here London Office

2018-05-09 08_05_59

2018-05-09 07_57_38

gridBasedSimulationLondonOffice.zip

theo-armour commented 6 years ago

@mdengusiak

Thanks for these files. The data looks like it's easy to parse.

The only thing holding me back is that we have so many things to play with right now.

afomi commented 6 years ago

@theo-armour

The only thing holding me back is that we have so many things to play with right now.

What are you referring to? UI features? Open issues? Something else?

I've been thinking about UI paradigms to manage the powerful features I've seen.

theo-armour commented 6 years ago

@mdengusiak

I was referring to all the things we can be doing with Aragog. I see displaying Radiance data as being a whole other kind of effort

bwelle commented 6 years ago

Let us please put Radiance Viewer dev on hold. It is a tangent and a derivative of the primary solar/daylighting visualization work and it is simply complicating and delaying our SPEED project development, and will most certainly complicate the Radiance Data visualization work that will not use a .rad file at all. At some point, data visualization methods for Radiance viewer may be migrated to .rad viewer. Thank you.


Benjamin Welle, PhD, PE, LEED AP BD+C Director of Energy Lab Nicollett Mall, IDS Center, 80 S 8th St #300, Minneapolis, MN 55402 t 415.856.3000 m 858.344.6858 benjamin.welle@perkinswill.commailto:benjamin.welle@perkinswill.com

Perkins+Will Ideas + buildings that honor the broader goals of society perkinswill.comhttp://www.perkinswill.com/|Bloghttp://blog.perkinswill.com/ | Facebookhttp://www.facebook.com/ideasandbuildings | Twitterhttp://www.perkinswill.com/pages/twitter.html

From: Theo Armour [mailto:notifications@github.com] Sent: Thursday, May 10, 2018 10:33 AM To: ladybug-tools/spider spider@noreply.github.com Cc: Welle, Benjamin Benjamin.Welle@perkinswill.com; Mention mention@noreply.github.com Subject: Re: [ladybug-tools/spider] Rad Viewer R1 (#108)

@mdengusiakhttps://github.com/mdengusiak

I was referring to all the things we can be doing with Aragog. I see displaying Radiance data as being a whole other kind of effort

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/ladybug-tools/spider/issues/108#issuecomment-387952782, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AbaYGoXyRCi4DNR2LiP61Jk3qGitWw_uks5tw8oZgaJpZM4Ti8Uj.

afomi commented 6 years ago

I'm just onboarding to this project.

Is there a canonical backlog of potential work/features? Is it the Issues for this project?

The tools look quite useful, but I'm sensing it may be valuable to tidy things up that would make the code and apps more approachable to new contributors and users.

Thoughts?

bwelle commented 6 years ago

Historical background:

At Perkins+Will we are developing a turnkey design and analysis platform for energy and daylighting leveraging as many open source code as possible. Theo got involved to assist with the three.js visualizations. At one point we decided to generate gbXML files from raw three.js geometry in order to convert to OSM files via the OS API. It is from the work to develop the gbXML exporter that the gbXML Viewer work came to be as a side project.

We have recently started the daylighting component of our work. We are implementing (1) solar studies such as shadow range, sunlight hours, and solar radiation (using open source Ladybug data) and (2) point in time and climate-based daylighting metrics via the Radiance measure in OS. We are also working with Zack Rogers, Rob, and John Mardaljevic. Theo is assisting with visualization of the Radiance output data in three.js with gbXML geometry. The .rad viewer is not necessary for our work and was another offshoot Theo started, which will eventually be a valuable tool to visualize Radiance data. However, we first need to visualize Radiance data with gbXML files. Hence I’m encouraging postponing further functionality for the .rad viewer and focusing on daylighting data integration with the gbXML viewer so our project can meet its release goals and obtain appropriate funding to continue. The same methodology to view Radiance data with a gbXML file in a three.js environment may be applied to using a .rad file. But one step at a time. If we don’t get step 1 (gbXML data viz) working, we may lose funding, not complete it, and step 2 (.rad data viz) will not be able to leverage it’s code.


Benjamin Welle, PhD, PE, LEED AP BD+C Director of Energy Lab Nicollett Mall, IDS Center, 80 S 8th St #300, Minneapolis, MN 55402 t 415.856.3000 m 858.344.6858 benjamin.welle@perkinswill.commailto:benjamin.welle@perkinswill.com

Perkins+Will Ideas + buildings that honor the broader goals of society perkinswill.comhttp://www.perkinswill.com/|Bloghttp://blog.perkinswill.com/ | Facebookhttp://www.facebook.com/ideasandbuildings | Twitterhttp://www.perkinswill.com/pages/twitter.html

From: Ryan Wold [mailto:notifications@github.com] Sent: Thursday, May 10, 2018 11:22 AM To: ladybug-tools/spider spider@noreply.github.com Cc: Welle, Benjamin Benjamin.Welle@perkinswill.com; Mention mention@noreply.github.com Subject: Re: [ladybug-tools/spider] Rad Viewer R1 (#108)

I'm just onboarding to this project.

Is there a canonical backlog of potential work/features? Is it the Issues for this project?

The tools look quite useful, but I'm sensing it may be valuable to tidy things up that would make the code and apps more approachable to new contributors and users.

Thoughts?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/ladybug-tools/spider/issues/108#issuecomment-387959219, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AbaYGs26sZaK9VRCUFY7Mz3NZOVT_r-sks5tw9WHgaJpZM4Ti8Uj.

afomi commented 6 years ago

@bwelle - this context is VERY helpful. Thank You.

I understand the need for product focus and the importance delivering valuable work in relative order - especially as it relates to funding/runway.

My background is in Software Engineering and Product Management, so I naturally have an eye toward the Roadmap, as well as discrete next steps.

Happy to assist where I can.