nvpro-samples / optix_prime_baking

Shows how to bake ambient occlusion at mesh vertices using OptiX Prime
Other
45 stars 24 forks source link

Program crash after scene loading #2

Open matmuze opened 7 years ago

matmuze commented 7 years ago

I was not able to run the sample program as it crashes at the beginning after completing the loading of a mesh at the fuction RtpModelUpdate in optix_prime.h.

I used VS2013 and CUDA8 on windows 10 with creators update.

(I have never tried with an other config than that before)

The sample is complied in x64 and I had problem in both debug and release.

Also I tried with different models and formats with no success.

dylanlacewell commented 7 years ago

Hi. What version of OptiX were you using? I'll try to reproduce. I haven't tested this sample yet with CUDA 8.

matmuze commented 7 years ago

The one recommended in the readme

On 17 Apr 2017 15:52, "Dylan Lacewell" notifications@github.com wrote:

Hi. What version of OptiX were you using? I'll try to reproduce. I haven't tested this sample yet with CUDA 8.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nvpro-samples/optix_prime_baking/issues/2#issuecomment-294501827, or mute the thread https://github.com/notifications/unsubscribe-auth/AAnUV7V_rOp-oQrCNNj179izkuYPTQ3Bks5rw3yjgaJpZM4M-JTk .

dylanlacewell commented 7 years ago

Your (Pascal?) GPU is probably too new for the OptiX 3.9.0 binaries in nvpro-samples. You can fix this by downloading the newer OptiX 4.0.2 SDK separately from here (free registration required):

https://developer.nvidia.com/designworks/optix/download

Then you'll need to reconfigure CMake to ignore your local "shared_optix" directory and use 4.0.2 instead. One way is to remove or rename the entire "shared_optix" directory, then delete your CMake cache, then set the OPTIX_LOCATION variable to your 4.0.2 install path and press Configure in the CMake gui. If the path is correct then the other CMake variables like OPTIX_INCLUDE_DIR should be filled in automatically after the configure step. Then press Generate to save out new VS2013 solution files.

Please let me know if this fixes things. I should probably change this sample to require a separate download of OptiX, as I don't really want to keep updating the OptiX binaries on github.