- Notifications
You must be signed in to change notification settings - Fork2
TypeScript library for parsing and rendering the IESNA LM-63 Photometric file format.
License
richard-viney/iesna
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This project is heavily based on the original publication "Parsing The IESNALM-63 Photometric Data File" and its accompanying source code, which can befoundhere.
To render an IES document to an HTML canvas using this library:
import*asIESNAfrom"iesna";IESNA.renderToCanvas({iesData:IESNA.parse("IES document goes here"),canvas:document.getElementsByTagName("canvas")[0],});
In addition toIESNA.renderToCanvas()
, light sampling can be done usingIESNA.sample()
. This function takes an IES data object and an x,y,z coordinatein light space and returns the light intensity at that position.
constiesData=IESNA.parse("IES document goes here");constintensity=IESNA.sample({ iesData, x, y, z});
There is a demo of rendering IES documents in the browser availablehere.
To run it locally:npm install && npm run dev
.
About
TypeScript library for parsing and rendering the IESNA LM-63 Photometric file format.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.