Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove debug of 3d cuda textures
Former-commit-id: 5926bc46e57d245699143b13c221e1e5c8ea0847
  • Loading branch information
sergeneren committed May 2, 2019
1 parent 699e98e commit 5aa92bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions source/main.cpp
Expand Up @@ -197,9 +197,6 @@ static void init_gvdb()
fprintf(stderr, "Could not determine CUDA device for GVDB context\n.");
exit(EXIT_FAILURE);
}
cudaDeviceProp prop;
cudaGetDeviceProperties(&prop, cuda_devices[0]);
printf("\nMax 3d texture dimensions x:%d y:%d z:%d\n", prop.maxTexture3D[0], prop.maxTexture3D[1], prop.maxTexture3D[2]);
gvdb.SetCudaDevice(cuda_devices[0]);

gvdb.Initialize();
Expand Down Expand Up @@ -871,7 +868,7 @@ int main(const int argc, const char* argv[])
gvdb.AddPath(ASSET_PATH);

char scnpath[1024];
if (!gvdb.FindFile("wdas_cloud_half_filled.vdb", scnpath)) {
if (!gvdb.FindFile("wdas_cloud_quarter_filled.vdb", scnpath)) {
printf("Cannot find vdb file.\n");
exit(-1);
}
Expand Down
2 changes: 1 addition & 1 deletion source/render_kernel.cu
Expand Up @@ -1006,7 +1006,7 @@ extern "C" __global__ void volume_rt_kernel(

if (kernel_params.iteration < kernel_params.max_interactions && kernel_params.render)
{
value = direct_integrator(rand_state, scn.campos, ray_dir, kernel_params, gvdb);
value = vol_integrator(rand_state, scn.campos, ray_dir, kernel_params, gvdb);

}

Expand Down

0 comments on commit 5aa92bc

Please sign in to comment.