![](https://secure.gravatar.com/avatar/d253a69e982f2c933f498541fd4748e0.jpg?s=120&d=mm&r=g)
howdy, I'm looking to do some raytracing for a nonimaging design and there are no opensource packages that address the geometry needed. Scipy seems like a good package to become familiar with anyway (I miss mathematica now that i'm no longer a university student), but i was wondering if anyone has already done some optical ray tracing work in scipy that i could build off of. Wouldn't be to hard to do from scratch, but my focus is on the design and the fewer excursions into building new tools the better. thanks, elliot
![](https://secure.gravatar.com/avatar/d15ed3e307caa20a8a3d62855d94c3f0.jpg?s=120&d=mm&r=g)
Dear Elliot, I am doing some optical ray tracing and would be happy to share my code with you. I started yesterday believe it or not! What is your application? I'm working on photovoltaics. So far I have written the ray tracing code for plane and axis aligned box intersection. Today I have added materials properties such as refractive index and absorption emission coefficients, but this bit is far from complete. Does that sound like something you want to work with me on? It would be great if we have a similar common goal. If so I could dump something on Google code. Cheers, Dan On 27 Jul 2009, at 17:34, Elliot Hallmark wrote:
howdy,
I'm looking to do some raytracing for a nonimaging design and there are no opensource packages that address the geometry needed. Scipy seems like a good package to become familiar with anyway (I miss mathematica now that i'm no longer a university student), but i was wondering if anyone has already done some optical ray tracing work in scipy that i could build off of.
Wouldn't be to hard to do from scratch, but my focus is on the design and the fewer excursions into building new tools the better.
thanks,
elliot _______________________________________________ SciPy-User mailing list SciPy-User@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-user
![](https://secure.gravatar.com/avatar/af6c39d6943bd4b0e1fde23161e7bb8c.jpg?s=120&d=mm&r=g)
2009/7/27 Elliot Hallmark <permafacture@gmail.com>:
howdy,
I'm looking to do some raytracing for a nonimaging design and there are no opensource packages that address the geometry needed. Scipy seems like a good package to become familiar with anyway (I miss mathematica now that i'm no longer a university student), but i was wondering if anyone has already done some optical ray tracing work in scipy that i could build off of.
The only work I'm aware of is Matthieu's real time raytracer with Python bindings: http://matt.eifelle.com/2009/05/19/interactive-raytracer/ Regards Stéfan
![](https://secure.gravatar.com/avatar/d253a69e982f2c933f498541fd4748e0.jpg?s=120&d=mm&r=g)
Daniel, I'm working on a non imaging concentrator for solar thermal. This involves parabolas translated off the optical axis and tilted with their axii (?) crossing the optical axis. Then, nonimaging optics uses the edge ray principal, So I would have two rays divergent by some angle originating at the very edges of the entry aperature. Pretty simple, tilting the parabolas is the hardest part, followed by determining when a ray hits a reflector. I dont need refraction but its good to have it available. I'm still looking into some other options but I'll let you know if i go the scipy route. --Stefan-- there lots of ray tracing programs like that out there, for rendering images rather than designing optics. Not useful for me. But thanks. -elliot
![](https://secure.gravatar.com/avatar/60e03bd1fd9f2dbc750e0899b9e7e71d.jpg?s=120&d=mm&r=g)
--Stefan--
there lots of ray tracing programs like that out there, for rendering images rather than designing optics. Not useful for me. But thanks.
Indeed, my raytracer is not adequate to this (besides, it's no where near completion :() Matthieu -- Information System Engineer, Ph.D. Website: http://matthieu-brucher.developpez.com/ Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92 LinkedIn: http://www.linkedin.com/in/matthieubrucher
![](https://secure.gravatar.com/avatar/0e31f673b2f054ea61da64e35bd52cc0.jpg?s=120&d=mm&r=g)
Elliot Hallmark wrote:
howdy,
I'm looking to do some raytracing for a nonimaging design and there are no opensource packages that address the geometry needed. Scipy seems like a good package to become familiar with anyway (I miss mathematica now that i'm no longer a university student), but i was wondering if anyone has already done some optical ray tracing work in scipy that i could build off of.
Wouldn't be to hard to do from scratch, but my focus is on the design and the fewer excursions into building new tools the better.
This might be interesting http://www-ee.eng.hawaii.edu/~zqyun/caevp.html I'ld love to integrate this in PyLab_Works, so the optical system can be manipulated both through interacting with the graphical window and by code. I tried to connect the guy, but he doesn't respond. cheers, Stef
thanks,
elliot _______________________________________________ SciPy-User mailing list SciPy-User@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-user
![](https://secure.gravatar.com/avatar/52eee09ba1bacc5b6d5b7f5c13fcdc08.jpg?s=120&d=mm&r=g)
This might be interesting http://www-ee.eng.hawaii.edu/~zqyun/caevp.html
wow. That looks like it does even too much for me. actually, it looks like scipy but with a souped up graphics interface instead of matplotlib.
![](https://secure.gravatar.com/avatar/d15ed3e307caa20a8a3d62855d94c3f0.jpg?s=120&d=mm&r=g)
Hi folks, There has been a lot of interest in optical design/statistical ray tracing written in python recently and many different groups are writing code that does almost the same thing. As a community we have 3 projects so far (sorry if I have left you project out, please correct me!), http://github.com/jasminef/tracer/tree/optic_tests http://bitbucket.org/bryancole/raytrace/overview/ http://www-ee.eng.hawaii.edu/~zqyun/rtplayground.html I have created a Google group so, as a community, we can exchange knowledge, ideas and code. I'm sure this is of benefit to all: http://groups.google.com/group/python-ray-tracing-community You might also be interested in Bryan Cole's RayTrace project here Google Group, http://groups.google.com/group/python-raytrace But let's not clutter that up with non-specific posts! So please head over to, http://groups.google.com/group/python-ray-tracing-community and write your introductions. Cheers, Dan
![](https://secure.gravatar.com/avatar/6b75e8e099292d2a9122ed5b9897fbde.jpg?s=120&d=mm&r=g)
On Monday 27 July 2009 19:34:37 Elliot Hallmark wrote:
I'm looking to do some raytracing for a nonimaging design and there are no opensource packages that address the geometry needed. Scipy seems like a good package to become familiar with anyway (I miss mathematica now that i'm no longer a university student), but i was wondering if anyone has already done some optical ray tracing work in scipy that i could build off of.
Wouldn't be to hard to do from scratch, but my focus is on the design and the fewer excursions into building new tools the better.
I have an intern writing a ray-tracer for optical ray tracing right now. In about a month we expect to have the basic framework in releasable shape, but if you're impatient you can have a look at her git tree: http://github.com/jasminef/tracer/tree/optic_tests Corrently some of the tests fail, but we have the following: * Construction of assemblies of objects * surfaces: flat and spherical (parabolic on the way) * specular reflection and refraction We are focusing on modular design and programmability, not speed. It should, then, be not too hard to add a new surface geometry. Again, this is still not in releasable shape, but maybe it'll help.
participants (7)
-
...
-
Daniel J Farrell
-
Elliot Hallmark
-
Matthieu Brucher
-
Stef Mientki
-
Stéfan van der Walt
-
Yosef Meller