Skip to content

submission #16

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

Open
wants to merge 55 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
f3c53c6
basic path tracer framework
vimanyu Sep 25, 2013
a436e79
pixel buffer still acting funny
Sep 26, 2013
4807733
fixed pixel color accumulation
vimanyu Sep 27, 2013
1624b3e
materials type
Sep 27, 2013
4b42124
basic path tracer working
Sep 28, 2013
c76a82f
basic path tracer working
Sep 28, 2013
a4f3a57
converted to 1D blocks and grids
Sep 28, 2013
a57a292
stream compaction: attempt1
Sep 28, 2013
034998a
fixed missing variable- still no stream compaction
vimanyu Sep 28, 2013
0abc019
with stream compaction
vimanyu Sep 29, 2013
85d3014
refraction (not fresnel)
vimanyu Sep 29, 2013
e4fe65f
mblur
vimanyu Sep 30, 2013
a55c0ea
dof
vimanyu Sep 30, 2013
105555f
scene file dof
vimanyu Sep 30, 2013
1d8f897
dof and mblur
vimanyu Sep 30, 2013
252a1b7
mouse dof
vimanyu Sep 30, 2013
ea056d6
user interaction
vimanyu Sep 30, 2013
6eab187
procedural tex
vimanyu Oct 1, 2013
305216f
adding a few renders
vimanyu Oct 2, 2013
4ee553e
scene for tex
vimanyu Oct 2, 2013
64976ab
perlin attempt
vimanyu Oct 2, 2013
45648a9
perlin texture + bump attempt
vimanyu Oct 2, 2013
dc26112
perlin done. submitting pool scene for render
vimanyu Oct 2, 2013
3daa33e
scenes used for rendering
vimanyu Oct 2, 2013
29cb23c
fresnel fixed and live procedural texture tuning
vimanyu Oct 2, 2013
317295c
renders
vimanyu Oct 2, 2013
a6cebd4
renders
vimanyu Oct 2, 2013
2294ccf
renders
vimanyu Oct 2, 2013
90910c2
adding scene files
vimanyu Oct 2, 2013
011c7ea
new dof image
vimanyu Oct 2, 2013
a89fcf5
performance testing
vimanyu Oct 2, 2013
148bb95
First update to README
vimanyu Oct 3, 2013
de70f69
Done till procedural textures
vimanyu Oct 3, 2013
b50cfd5
Merge branch 'master' of https://github.com/vimanyu/Project2-Pathtracer
vimanyu Oct 2, 2013
c5e48b8
Update README.md
vimanyu Oct 3, 2013
6b2725c
renders
vimanyu Oct 2, 2013
707d0f0
Update README.md
vimanyu Oct 3, 2013
f74bc7c
Update README.md
vimanyu Oct 3, 2013
64fa994
renders
vimanyu Oct 2, 2013
43113a2
Update README.md
vimanyu Oct 3, 2013
4e58f36
Update README.md
vimanyu Oct 3, 2013
2ae7e6d
Update README.md
vimanyu Oct 3, 2013
cb306e0
Update README.md
vimanyu Oct 3, 2013
16877c0
Merge branch 'master' of https://github.com/vimanyu/Project2-Pathtracer
vimanyu Oct 2, 2013
b86f077
Update README.md
vimanyu Oct 3, 2013
ec93904
Merge branch 'master' of https://github.com/vimanyu/Project2-Pathtracer
vimanyu Oct 2, 2013
793fd4a
Update README.md
vimanyu Oct 3, 2013
9a3176b
Update README.md
vimanyu Oct 3, 2013
d8e6c5d
Update README.md
vimanyu Oct 3, 2013
834512a
Update README.md
vimanyu Oct 3, 2013
c302342
Merge branch 'master' of https://github.com/vimanyu/Project2-Pathtracer
vimanyu Oct 2, 2013
8486f28
Update README.md
vimanyu Oct 3, 2013
3c21d5e
Update README.md
vimanyu Oct 3, 2013
5561b40
Update README.md
vimanyu Oct 23, 2013
92fd966
Update README.md
vimanyu Sep 12, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions PROJ1_WIN/565Pathtracer/565Pathtracer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
<ClInclude Include="..\..\src\interactions.h" />
<ClInclude Include="..\..\src\intersections.h" />
<ClInclude Include="..\..\src\main.h" />
<ClInclude Include="..\..\src\materials.h" />
<ClInclude Include="..\..\src\perlin.h" />
<ClInclude Include="..\..\src\raytraceKernel.h" />
<ClInclude Include="..\..\src\scene.h" />
<ClInclude Include="..\..\src\sceneStructs.h" />
Expand Down Expand Up @@ -75,7 +77,7 @@
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
<Import Project="..\Build\CUDA 4.0.props" />
<Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 5.5.props" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
Expand Down Expand Up @@ -196,10 +198,11 @@
<CudaCompile>
<CompileOut>$(ProjectDir)$(Platform)/$(Configuration)/%(Filename)%(Extension).obj</CompileOut>
<Include>C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\include;C:/ProgramData/NVIDIA Corporation/CUDA Samples/v5.5/common/inc;../shared/glew/includes;../shared/freeglut/includes</Include>
<CodeGeneration>compute_10,sm_10</CodeGeneration>
</CudaCompile>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="..\Build\CUDA 4.0.targets" />
<Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 5.5.targets" />
</ImportGroup>
</Project>
</Project>
2 changes: 2 additions & 0 deletions PROJ1_WIN/565Pathtracer/565Pathtracer.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
<ClInclude Include="..\..\src\stb_image\stb_image.h">
<Filter>stb_image</Filter>
</ClInclude>
<ClInclude Include="..\..\src\materials.h" />
<ClInclude Include="..\..\src\perlin.h" />
</ItemGroup>
<ItemGroup>
<CudaCompile Include="..\..\src\raytraceKernel.cu" />
Expand Down
4 changes: 2 additions & 2 deletions PROJ1_WIN/565Pathtracer/565Pathtracer.vcxproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release (v5.5)|Win32'">
<LocalDebuggerCommandArguments>scene=../../scenes/sampleScene.txt</LocalDebuggerCommandArguments>
<LocalDebuggerCommandArguments>scene=../../scenes/sampleScene.txt frame=0 mblur=0 dof=0</LocalDebuggerCommandArguments>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
</Project>
</Project>
287 changes: 198 additions & 89 deletions README.md

Large diffs are not rendered by default.

Binary file renamed renders/test.0.bmp → renders/depthMap_pool.bmp
Binary file not shown.
Binary file added renders/depth_map.bmp
Binary file not shown.
Binary file added renders/depth_map0.bmp
Binary file not shown.
Binary file added renders/dof.bmp
Binary file not shown.
Binary file added renders/dof_image.bmp
Binary file not shown.
Binary file added renders/fresnel_frame1.bmp
Binary file not shown.
Binary file added renders/mblur.bmp
Binary file not shown.
Binary file added renders/motion_blurred.bmp
Binary file not shown.
Binary file added renders/perlin_earth.bmp
Binary file not shown.
Binary file added renders/perlin_texture.bmp
Binary file not shown.
Binary file added renders/pool.0.bmp
Binary file not shown.
Binary file added renders/refr_refl_diff_DOF.bmp
Binary file not shown.
Binary file added renders/refr_refl_fresnel.bmp
Binary file not shown.
Binary file added renders/texture_session.bmp
Binary file not shown.
305 changes: 305 additions & 0 deletions scenes/dof_demo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,305 @@
MAP 0
base
COL1 1 1 1
COL2 1 1 1
WIDTH1 1
WIDTH2 1
SMOOTH 0

MAP 1
hstripe
COL1 0 1 1
COL2 1 1 0
WIDTH1 0.4
WIDTH2 0.5
SMOOTH 0

MAP 2
vstripe
COL1 0.9 0.9 0.9
COL2 0.9 0.9 0.9
WIDTH1 0.5
WIDTH2 0.2
SMOOTH 0

MAP 3 //Sphere checker
checkerboard
COL1 1.0 0.0 0.0
COL2 1.0 1.0 0.0
WIDTH1 0.1
WIDTH2 0.1
SMOOTH 0

MAP 4 //Perlin
marble
COL1 1.0 0.0 0.0
COL2 1.0 1.0 0.0
WIDTH1 0.1
WIDTH2 0.1
SMOOTH 0


MATERIAL 0 //white diffuse
RGB 0.9 0.9 0.9
SPECEX 0
SPECRGB 1 1 1
REFL 0
REFR 0
REFRIOR 0
SCATTER 0
ABSCOEFF 0 0 0
RSCTCOEFF 0
EMITTANCE 0
DIFFCOEFF 1
MAPID 0

MATERIAL 1 //red diffuse
RGB .63 .06 .04
SPECEX 0
SPECRGB 1 1 1
REFL 0
REFR 0
REFRIOR 0
SCATTER 0
ABSCOEFF 0 0 0
RSCTCOEFF 0
EMITTANCE 0
DIFFCOEFF 1
MAPID 0

MATERIAL 2 //green diffuse
RGB .15 .48 .09
SPECEX 0
SPECRGB 1 1 1
REFL 0
REFR 0
REFRIOR 0
SCATTER 0
ABSCOEFF 0 0 0
RSCTCOEFF 0
EMITTANCE 0
DIFFCOEFF 1
MAPID 0

MATERIAL 3 //red glossy
RGB .63 .26 .24
SPECEX 0
SPECRGB 1 1 1
REFL 0
REFR 0
REFRIOR 2
SCATTER 0
ABSCOEFF 0 0 0
RSCTCOEFF 0
EMITTANCE 0
DIFFCOEFF 1
MAPID 0

MATERIAL 4 //white glossy
RGB 1 1 1
SPECEX 0
SPECRGB 1 1 1
REFL 0
REFR 0
REFRIOR 2
SCATTER 0
ABSCOEFF 0 0 0
RSCTCOEFF 0
EMITTANCE 0
DIFFCOEFF 1
MAPID 0

MATERIAL 5 //glass
RGB 1 1 1
SPECEX 0
SPECRGB 1 1 1
REFL 0
REFR 1
REFRIOR 2.2
SCATTER 0
ABSCOEFF .02 5.1 5.7
RSCTCOEFF 13
EMITTANCE 0
DIFFCOEFF 1
MAPID 0

MATERIAL 6 //green glossy
RGB .35 .48 .29
SPECEX 0
SPECRGB 1 1 1
REFL 1
REFR 0
REFRIOR 2.6
SCATTER 0
ABSCOEFF 0 0 0
RSCTCOEFF 0
EMITTANCE 0
DIFFCOEFF 0.7
MAPID 0

MATERIAL 7 //light
RGB 1 1 1
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
SCATTER 0
ABSCOEFF 0 0 0
RSCTCOEFF 0
EMITTANCE 1
DIFFCOEFF 1
MAPID 0

MATERIAL 8 //light
RGB 1 1 1
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
SCATTER 0
ABSCOEFF 0 0 0
RSCTCOEFF 0
EMITTANCE 15
DIFFCOEFF 1
MAPID 0

MATERIAL 9 //green glossy
RGB .35 .48 .29
SPECEX 0
SPECRGB 1 1 1
REFL 1
REFR 0
REFRIOR 2.6
SCATTER 0
ABSCOEFF 0 0 0
RSCTCOEFF 0
EMITTANCE 0
DIFFCOEFF 1.0
MAPID 4


CAMERA
RES 800 800
FOVY 25
ITERATIONS 5000
FILE test.bmp
FOCALDIST 2
APERTURE 2.2
frame 0
EYE 0 4.5 12
VIEW 0 0 -1
UP 0 1 0
frame 1
EYE 0 4.5 12
VIEW 0 0 -1
UP 0 1 0

OBJECT 0
cube
material 0
frame 0
TRANS 0 0 0
ROTAT 0 0 90
SCALE .01 10 10
frame 1
TRANS 0 0 0
ROTAT 0 0 90
SCALE .01 10 10

OBJECT 1
cube
material 0
frame 0
TRANS 0 5 -5
ROTAT 0 90 0
SCALE .01 10 10
frame 1
TRANS 0 5 -5
ROTAT 0 90 0
SCALE .01 10 10

OBJECT 2
cube
material 0
frame 0
TRANS 0 10 0
ROTAT 0 0 90
SCALE .01 10 10
frame 1
TRANS 0 10 0
ROTAT 0 0 90
SCALE .01 10 10

OBJECT 3
cube
material 1
frame 0
TRANS -5 5 0
ROTAT 0 0 0
SCALE .01 10 10
frame 1
TRANS -5 5 0
ROTAT 0 0 0
SCALE .01 10 10

OBJECT 4
cube
material 2
frame 0
TRANS 5 5 0
ROTAT 0 0 0
SCALE .01 10 10
frame 1
TRANS 5 5 0
ROTAT 0 0 0
SCALE .01 10 10

OBJECT 5
sphere
material 5
frame 0
TRANS 0 5 0
ROTAT 0 180 0
SCALE 3 3 3
frame 1
TRANS 0 5 0
ROTAT 0 180 0
SCALE 3 3 3

OBJECT 6
sphere
material 3
frame 0
TRANS 2 5 2
ROTAT 0 180 0
SCALE 3 3 3
frame 1
TRANS 2 5 2
ROTAT 0 180 0
SCALE 3 3 3

OBJECT 7
sphere
material 6
frame 0
TRANS -2 5 -2
ROTAT 0 180 0
SCALE 3 3 3
frame 1
TRANS -2 5 -2
ROTAT 0 180 0
SCALE 3 3 3

OBJECT 8
cube
material 8
frame 0
TRANS 0 10 0
ROTAT 0 0 90
SCALE .3 3 3
frame 1
TRANS 0 10 0
ROTAT 0 0 90
SCALE .3 3 3
Loading