Our ray tracing library (librt) has a few functions pertaining to creating a pattern of rays and shooting them as a bundle (i.e., all at once). We have examples you can follow like rt_gen_circular_grid() in src/librt/mkbundle.c that are very similar, just not the right pattern.
Our "rtshot" command line utility is a simple single-shot utility that can help you test your implementation and make sure it's working correctly. See the code there for mentions of rt_gen_circular_grid() and rt_shootrays().
Sources may be obtained from our Subversion repository: svn checkout https://svn.code.sourceforge.net/p/brlcad/code/brlcad/trunk brlcad
Implement a function, e.g., rt_gen_conic(), that will create a cone of rays originating from a specified point, direction, divergence angle, and options for controlling the sampling density
Submit the changes to mkbundle.c in patch format.
References:- src/librt/mkbundle.c
- src/librt/bundle.c
- src/rt/rtshot.c
- http://brlcad.org/wiki/Compiling
- src/librt/mkbundle.c
- src/rt/rtshot.c
File name/URL | File size | Date submitted | |
---|---|---|---|
task-38-implement-cone-sampling.diff | 2.2 KB | December 24 2014 15:56 UTC | |
task-38-implement-cone-sampling.diff | 1.9 KB | December 24 2014 15:57 UTC |
I would like to work on this task.
This task has been assigned to Andromeda Galaxy. You have 100 hours to complete this task, good luck!
This is a very important task, so please take care and ask questions if any come up. Please contact me directly via e-mail if you can't get an answer via IRC.
The claim on this task has been removed, someone else can claim it now.
I would like to work on this task.
This task has been assigned to Andromeda Galaxy. You have 100 hours to complete this task, good luck!
The work on this task is ready to be reviewed.
I've finished the task for visualizing bundles that Sean discussed with me in IRC, but since I've had the work for this one donef or a while, I wanted to submit it first (that task isn't up yet).
Congratulations, this task has been completed successfully.
A follow-on to this task has been posted to visualize the current ray-bundling patterns: https://www.google-melange.com/gci/task/view/google/gci2014/4591442060115968