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

Consider adding support for ray files as input source #75

Open
Aabaz opened this issue Apr 2, 2022 · 0 comments
Open

Consider adding support for ray files as input source #75

Aabaz opened this issue Apr 2, 2022 · 0 comments

Comments

@Aabaz
Copy link

Aabaz commented Apr 2, 2022

Hello,
in addition to currently supported parametric source types (pencil, etc.), would it be possible to consider supporting non-parametric source types in the form of lists of ray's initial position, direction and weight?

Several light source manufacturers make this data available for their products (see for instance Osram: https://www.osram.com/os/applications/optical-simulation-ray-files-package-cad-data/index.jsp) in several formats (for proprietary optics software) including ASCII text.

An example of such a file:

X_Pos      Y_Pos      Z_Pos      X_Vec      Y_Vec      Z_Vec      Flux
-0.1567955 -0.2475255 0.005 -0.7258301 0.5654783 0.3916694 4.5E-005
-0.3374261 -0.01758777 0.005 -0.02799014 -0.2416582 0.9699577 4.5E-005
[...]

This could allow MMC to model light sources that are closer to those used in actual optical sensors.

Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants