Skip to content

Commit

Permalink
added RTC_SCENE_ROBUST flag to tutorial08/09 to fix some artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
cbenthin committed Jan 10, 2015
1 parent 6e01b86 commit e774504
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tutorials/tutorial08/tutorial08_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ extern "C" void device_init (int8* cfg)
rtcSetErrorFunction(error_handler);

/* create scene */
g_scene = rtcNewScene(RTC_SCENE_DYNAMIC,RTC_INTERSECT1);
g_scene = rtcNewScene(RTC_SCENE_DYNAMIC | RTC_SCENE_ROBUST,RTC_INTERSECT1);

/* add cube */
addCube(g_scene);
Expand Down
2 changes: 1 addition & 1 deletion tutorials/tutorial08/tutorial08_device.ispc
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export void device_init (uniform int8* uniform cfg)
rtcSetErrorFunction(error_handler);

/* create scene */
g_scene = rtcNewScene(RTC_SCENE_DYNAMIC,RTC_INTERSECT_UNIFORM | RTC_INTERSECT_VARYING);
g_scene = rtcNewScene(RTC_SCENE_DYNAMIC | RTC_SCENE_ROBUST,RTC_INTERSECT_UNIFORM | RTC_INTERSECT_VARYING);

/* add cube */
addCube(g_scene);
Expand Down
2 changes: 1 addition & 1 deletion tutorials/tutorial09/tutorial09_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ extern "C" void device_init (int8* cfg)
rtcSetErrorFunction(error_handler);

/* create scene */
g_scene = rtcNewScene(RTC_SCENE_DYNAMIC,RTC_INTERSECT1);
g_scene = rtcNewScene(RTC_SCENE_DYNAMIC | RTC_SCENE_ROBUST,RTC_INTERSECT1);

/* add cube */
addCube(g_scene);
Expand Down
2 changes: 1 addition & 1 deletion tutorials/tutorial09/tutorial09_device.ispc
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export void device_init (uniform int8* uniform cfg)
rtcSetErrorFunction(error_handler);

/* create scene */
g_scene = rtcNewScene(RTC_SCENE_DYNAMIC,RTC_INTERSECT_UNIFORM | RTC_INTERSECT_VARYING);
g_scene = rtcNewScene(RTC_SCENE_DYNAMIC | RTC_SCENE_ROBUST,RTC_INTERSECT_UNIFORM | RTC_INTERSECT_VARYING);

/* add cube */
addCube(g_scene);
Expand Down

0 comments on commit e774504

Please sign in to comment.