Difference between revisions of "User:Kunigami/GSoc2011/Reports"
From BRL-CAD
(→Reports: Week 5) |
(→Reports) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Reports = | = Reports = | ||
− | == Week 5 == | + | == Week 13 (August 15th to August 22th) == |
+ | |||
+ | # Used BCP tool to compress Boost to ~50MB (svn version is ~ 100MB) | ||
+ | # Wrote a script that compiles the bundled libraries (except LLVM, which we assume to be already instlled) | ||
+ | # Tests made on different machine (Ubuntu 10.04) is crashing when running the oslc application from OSL. | ||
+ | |||
+ | == Week 12 (August 8th to August 15th) == | ||
+ | |||
+ | # Started adding osl dependencies to a separated svn repository. | ||
+ | # Added ilmbase, openexr, oiio and osl, though boost and llvm libraries are too big to be added (~500MB and ~250MB respectively). | ||
+ | |||
+ | == Week 11 (August 1st to August 8th) == | ||
+ | |||
+ | # Implemented a multi-sample mode (similar to increasing mode, but it keeps the average of the sampled pixels and always uses full resolution) | ||
+ | # Implemented a random shoot mode, but it seems there's a bug with rendering in unbuffered mode | ||
+ | # Investigated the bug with the unbuffered mode, still without success. | ||
+ | |||
+ | == Week 10 (July 25th to August 1st) == | ||
+ | |||
+ | # Studied OSL code in order to discover how to use it with a ray tracer. | ||
+ | # Implemented a simple mode for ray tracer, but I don't know how to add reflection and refraction to it. I intend to come back to it in the future. | ||
+ | # Studied BRL-CAD code to design the new framebuffer mode (similar to incremental). | ||
+ | |||
+ | == Week 9 (July 18th to July 25) == | ||
+ | |||
+ | # [19/07] Implemented a basic texture shader written in OSL. | ||
+ | # [20/07] Stopped using the hypersampling option (-H) and added a loop in the sh_osl to avoid shooting the same ray many times. | ||
+ | |||
+ | == Week 8 (July 11th to July 18th) == | ||
+ | |||
+ | # Implemented a thread-safe version of sh_osl, though no advantages were being taken from parallelism. | ||
+ | # Studied some OSL code to figure out how to use it with multiple threads | ||
+ | # [07/18] Implemented a new thread-safe version of sh_osl with less blocking. | ||
+ | |||
+ | == Week 7 (July 4th to July 11th) == | ||
+ | |||
+ | # Wrote a small tutorial on how to use OSL in BRL-CAD ([[User:Kunigami/GSoc2011/OSL_Tutorial |link]]) | ||
+ | # Ported BRL-CAD cloud shader to OSL ([http://dl.dropbox.com/u/1399996/GSoC/RT_OSL_cloud.png screenshot]) | ||
+ | # Ported BRL-CAD checker shader to OSL ([http://dl.dropbox.com/u/1399996/GSoC/RT_OSL_checker_glass.png screenshot]) | ||
+ | # Implemented support for group of shaders | ||
+ | |||
+ | == Week 6 (June 27th to July 4th) == | ||
+ | |||
+ | # Implemented support for reflection and refraction in the OSL Shader that is used by rt | ||
+ | # Implemented support for refraction in the stand alone application that uses BRL-CAD shooting system to render BRL-CAD scenes with osl shaders [[http://dl.dropbox.com/u/1399996/GSoC/OSL_RT-Refraction-Corrected-2011-06-30.png screenshot]] | ||
+ | # Started getting errors due to different version of libpng. BRL-CAD uses 1.4 and OIIO used 1.2. Recompiled OIIO to use 1.4 and the problem was solved. | ||
+ | |||
+ | == Week 5 (June 20th to June 27th) == | ||
# Implemented an osl shader, which seems not to give correct results | # Implemented an osl shader, which seems not to give correct results | ||
# Implemented a stand-alone application to render BRL-CAD scenes with OSL shaders [[http://kuniga.files.wordpress.com/2021/06/osl-rt-2011-06-25.png screenshot]] | # Implemented a stand-alone application to render BRL-CAD scenes with OSL shaders [[http://kuniga.files.wordpress.com/2021/06/osl-rt-2011-06-25.png screenshot]] | ||
− | == Week 4 == | + | == Week 4 (June 13th to June 20th) == |
# Discovered that the crashing was due to multi-threaded issues. I'm currently using -P 1 on my tests. | # Discovered that the crashing was due to multi-threaded issues. I'm currently using -P 1 on my tests. | ||
Line 12: | Line 59: | ||
# Start studying how the rt application works. | # Start studying how the rt application works. | ||
− | == Week 3 == | + | == Week 3 (June 6th to June 13th) == |
# Adapted the OSL raytracer so that it can be called by the osl shader. | # Adapted the OSL raytracer so that it can be called by the osl shader. | ||
# The rt application is currently crashing. Inspecting with valgrind I suspect that it is due to memory leaks. | # The rt application is currently crashing. Inspecting with valgrind I suspect that it is due to memory leaks. | ||
− | == Week 2 == | + | == Week 2 (May 30th to June 6th) == |
# Not very productive week. With the help of the mentors I managed to solve the compile error. | # Not very productive week. With the help of the mentors I managed to solve the compile error. | ||
− | == Week 1 == | + | == Week 1 (May 23th to May 30th ) == |
# Implemented a (poor) polka dot for BRL-CAD, to get familiarized with the shaders syntax. [[http://kuniga.files.wordpress.com/2021/05/goblet1.png polka dot goblet]] | # Implemented a (poor) polka dot for BRL-CAD, to get familiarized with the shaders syntax. [[http://kuniga.files.wordpress.com/2021/05/goblet1.png polka dot goblet]] |
Latest revision as of 19:47, 21 August 2011
Contents
- 1 Reports
- 1.1 Week 13 (August 15th to August 22th)
- 1.2 Week 12 (August 8th to August 15th)
- 1.3 Week 11 (August 1st to August 8th)
- 1.4 Week 10 (July 25th to August 1st)
- 1.5 Week 9 (July 18th to July 25)
- 1.6 Week 8 (July 11th to July 18th)
- 1.7 Week 7 (July 4th to July 11th)
- 1.8 Week 6 (June 27th to July 4th)
- 1.9 Week 5 (June 20th to June 27th)
- 1.10 Week 4 (June 13th to June 20th)
- 1.11 Week 3 (June 6th to June 13th)
- 1.12 Week 2 (May 30th to June 6th)
- 1.13 Week 1 (May 23th to May 30th )
- 1.14 Week 0 (Community Bonding)
Reports[edit]
Week 13 (August 15th to August 22th)[edit]
- Used BCP tool to compress Boost to ~50MB (svn version is ~ 100MB)
- Wrote a script that compiles the bundled libraries (except LLVM, which we assume to be already instlled)
- Tests made on different machine (Ubuntu 10.04) is crashing when running the oslc application from OSL.
Week 12 (August 8th to August 15th)[edit]
- Started adding osl dependencies to a separated svn repository.
- Added ilmbase, openexr, oiio and osl, though boost and llvm libraries are too big to be added (~500MB and ~250MB respectively).
Week 11 (August 1st to August 8th)[edit]
- Implemented a multi-sample mode (similar to increasing mode, but it keeps the average of the sampled pixels and always uses full resolution)
- Implemented a random shoot mode, but it seems there's a bug with rendering in unbuffered mode
- Investigated the bug with the unbuffered mode, still without success.
Week 10 (July 25th to August 1st)[edit]
- Studied OSL code in order to discover how to use it with a ray tracer.
- Implemented a simple mode for ray tracer, but I don't know how to add reflection and refraction to it. I intend to come back to it in the future.
- Studied BRL-CAD code to design the new framebuffer mode (similar to incremental).
Week 9 (July 18th to July 25)[edit]
- [19/07] Implemented a basic texture shader written in OSL.
- [20/07] Stopped using the hypersampling option (-H) and added a loop in the sh_osl to avoid shooting the same ray many times.
Week 8 (July 11th to July 18th)[edit]
- Implemented a thread-safe version of sh_osl, though no advantages were being taken from parallelism.
- Studied some OSL code to figure out how to use it with multiple threads
- [07/18] Implemented a new thread-safe version of sh_osl with less blocking.
Week 7 (July 4th to July 11th)[edit]
- Wrote a small tutorial on how to use OSL in BRL-CAD (link)
- Ported BRL-CAD cloud shader to OSL (screenshot)
- Ported BRL-CAD checker shader to OSL (screenshot)
- Implemented support for group of shaders
Week 6 (June 27th to July 4th)[edit]
- Implemented support for reflection and refraction in the OSL Shader that is used by rt
- Implemented support for refraction in the stand alone application that uses BRL-CAD shooting system to render BRL-CAD scenes with osl shaders [screenshot]
- Started getting errors due to different version of libpng. BRL-CAD uses 1.4 and OIIO used 1.2. Recompiled OIIO to use 1.4 and the problem was solved.
Week 5 (June 20th to June 27th)[edit]
- Implemented an osl shader, which seems not to give correct results
- Implemented a stand-alone application to render BRL-CAD scenes with OSL shaders [screenshot]
Week 4 (June 13th to June 20th)[edit]
- Discovered that the crashing was due to multi-threaded issues. I'm currently using -P 1 on my tests.
- Re-defined the OSLRenderer interface, so that it considers recursion rays needed for reflection and transmission
- Start studying how the rt application works.
Week 3 (June 6th to June 13th)[edit]
- Adapted the OSL raytracer so that it can be called by the osl shader.
- The rt application is currently crashing. Inspecting with valgrind I suspect that it is due to memory leaks.
Week 2 (May 30th to June 6th)[edit]
- Not very productive week. With the help of the mentors I managed to solve the compile error.
Week 1 (May 23th to May 30th )[edit]
- Implemented a (poor) polka dot for BRL-CAD, to get familiarized with the shaders syntax. [polka dot goblet]
- Trying to compile the OSL raytracer outside OSL build, but getting compile errors, that I have no idea on how to solve. I've emailed the dev list asking for help.
Week 0 (Community Bonding)[edit]
- Compiled OSL sources both in Ubuntu 10.10 and Mac OS X Snow Leopard. (had trouble with 11.04, mainly due to LLVM)
- Found a raytracer developed by Erich Ocean and Brecht [1] that uses OSL-written shaders. It currently renders refraction wrongly. [screenshot]
- Discovered the cause of the above error: I was using the wrong shader for glass. Now, the image is correctly rendered. [screenshot]