Skip to content

Commit 74d4767

Browse files
committed
Adding dos for ray casting
1 parent af13c73 commit 74d4767

17 files changed

+4053
-1
lines changed

cppvolrend/CMakeLists.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ add_executable(cppvolrend
2525
app_freeglut.cpp app_freeglut.h
2626
app_glfw.cpp app_glfw.h
2727
renderingmanager.cpp renderingmanager.h
28-
2928
volrenderbase.cpp volrenderbase.h
3029

3130
# Null Bounding Box Grid
@@ -34,6 +33,13 @@ add_executable(cppvolrend
3433
# GPU Image Order Ray Casting
3534
structured/rc1pass/rc1prenderer.cpp structured/rc1pass/rc1prenderer.h
3635

36+
# Directional Occlusion Shading for Single Pass GPU Ray Casting
37+
structured/rc1pdosct/conegaussiansampler.cpp structured/rc1pdosct/conegaussiansampler.h
38+
structured/rc1pdosct/dosrcrenderer.cpp structured/rc1pdosct/dosrcrenderer.h
39+
structured/rc1pdosct/extcoefvolumegenerator.cpp structured/rc1pdosct/extcoefvolumegenerator.h
40+
41+
utils/preillumination.cpp utils/preillumination.h
42+
3743
${CMAKE_EXTERNAL_DIRECTORY}/imgui/imconfig.h ${CMAKE_EXTERNAL_DIRECTORY}/imgui/imgui_demo.cpp
3844
${CMAKE_EXTERNAL_DIRECTORY}/imgui/imgui.h ${CMAKE_EXTERNAL_DIRECTORY}/imgui/imgui.cpp
3945
${CMAKE_EXTERNAL_DIRECTORY}/imgui/imgui_draw.cpp ${CMAKE_EXTERNAL_DIRECTORY}/imgui/imgui_internal.h

cppvolrend/main.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "volrendernull.h"
2222
// 1-pass - Ray Casting - GLSL
2323
#include "structured/rc1pass/rc1prenderer.h"
24+
#include "structured/rc1pdosct/dosrcrenderer.h"
2425
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------
2526

2627
#ifdef USING_FREEGLUT
@@ -51,6 +52,7 @@ int main (int argc, char **argv)
5152
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------
5253
// 1-pass - Ray Casting - GLSL
5354
RenderingManager::Instance()->AddVolumeRenderer(new RayCasting1Pass());
55+
RenderingManager::Instance()->AddVolumeRenderer(new RC1PConeTracingDirOcclusionShading());
5456
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------
5557

5658
app.InitImGui();

0 commit comments

Comments
 (0)