[You are now in a GitHub source code view - click this link to view the home page] ( https://ladybug-tools.github.io/ladybug-web/shadow-obj-core/#readme.md "View file as a web page." ) <input type=button onclick=window.location.href="proxy.php?url=https%3A%2F%2Fgithub.com.%2F%3Ca+href%3D"https://github.com/ladybug-tools/ladybug-web/tree/gh-pages/shadow-obj-core/">https://github.com/ladybug-tools/ladybug-web/tree/gh-pages/shadow-obj-core/'; value='You are now in the home page view - Click this button to view the read me file and the source code' >
Full screen: Ladybug Web Shadow OBJ Core
Ladybug Web Shadow OBJ Core
- To have a core or 'engine' that other scripts may call and use to embed in an
iframe- Parent scripts can be made with jQuery, Go or whatever
- Everything needed - CSS, HTML and JavaScript - in one small tidy place
- But will probably eventually go on to also existing as multiple individual JavaScript files
- Loads and displays OBJ and MTL files
- Calls Three.js loaders based on routines from Ladybug Web 3D Models
- Loads and makes use of and display texture bitmaps
- Calls Google Maps API > Time Zone APIto determine time zone, date and time information for the selected latitude and longitude
- Calls on Ladybug Web Solar Calculator to perform essential solar calculations
- Supplies Sun azimuth and altitude given time, latitude and longitude
- Creates 3D plots of analemmas of Sun azimuth and altitude once an hour for all the days of the month.
- Lines connect each hour on the 21st of the month
- Midnight highlighted is blue. Noon highlighted in yellow
- Placards indicate the hour of each analemma
- Displays current position of sun
- Displays shadow and shade
- 3D arrow shows direction of north
- Information panel displays a variety of information including
- Latitude and longitude
- Selected time
- If not top window - ie in an iframe - information panel does not display
- Supports permalinks for the following parameters
- Only the parameters that need changing need to appear on the location.hash
- file name
- latitude
- longitude
- year
- month
- date
- hours
- minutes
- placeMap.material.opacity
- project.rotation.x
- project.rotation.y
- project.rotation.z
- project.position.x
- project.position.y
- project.position.z
- project.scale.x
- project.scale.y
- project.scale.z
- cx - camera.position.x
- cy - camera.position.y
- cz - camera.position.z
- tx - controls.target.x
- ty - controls.target.y
- tz - controls.target.z
- Small discrepancy with NOAA/Bostock calcs
<input type=button onclick=window.location.href="proxy.php?url=https%3A%2F%2Fgithub.com.%2F%3Ca+href%3D"https://github.com/ladybug-tools/ladybug-web/blob/gh-pages/shadow-obj-core/ladybug-web-shadow-obj-core-r3.html">https://github.com/ladybug-tools/ladybug-web/blob/gh-pages/shadow-obj-core/ladybug-web-shadow-obj-core-r3.html'; value='Source code listing' >
- Mostapha: Finally, isn't it easier to scale and move sunpath instead of the geometry? I imagine cases that the user input a complex mesh and moving or scaling the geometry will be expensive performance wise.
- Add images to Read Me
- Too many minor changes to document easily
- Whole thing seems to be settling down and becoming more stable
- Light intensity to zero if Sun.position.y < 0
- Simplify messaging
- Add more xhr error-trapping
- Add 'location is timeless' error-handling
- Add messaging system idea
- Add permalink support for groundPlane, analemma, sun intensity
- Add scale project and toggle
- Streamline code
- Add send messages to parent
- Add toggle placeMap visibility
- Set default file to urban model 001
- Improve ability to load files
- Add cast and receive shadows
- Add two sides
- Add Edges Helpers to R4 files
- Other bits and bobs
- Add R3
- Add support for all the Three.js JSON standards
- Fix scaling issues
- Add Ladybug Web Shadow Core Bostock R2
- Analemmas no longer upside down
- Code and variable name logic clean-up
- Add slide-out hamburger menu
- Add Sun position read-out to menus of all core apps
- Finding issues with all of them. So it goes
- Add Ladybug Web Shadow Core Bostock R1
- Rename from 'Ladybug Web Shadow Core' to 'Ladybug Web Shadow Core NOAA'
#
