Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

TypeScript library for parsing and rendering the IESNA LM-63 Photometric file format.

License

NotificationsYou must be signed in to change notification settings

richard-viney/iesna

Repository files navigation

IESNA

TypeScript library for parsing and rendering the
IESNA LM-63 Photometric file format

About

This project is heavily based on the original publication "Parsing The IESNALM-63 Photometric Data File" and its accompanying source code, which can befoundhere.

Usage

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});

Demo

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

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp