Closed l2- closed 2 years ago
Thanks for the report. I haven't confirmed this scene and I'm not sure if my ReSTIR (ReGIR?) code can handle Minecraft scene well but I'll improve texture loading in spare time.
Now texture loader reuses already loaded textures from caches.
And I confirmed ReSTIR seems to work for the lost empire scene.
Try the following options:
-cam-pos -4.141 21.604 -37.123 -cam-roll 0 -cam-pitch 11 -cam-yaw 11 -name scene -obj ../../assets/lost-empire/lost_empire.obj 1.0 trad -brightness 3.0 -inst scene
(modify the obj path)
Note that the latest revision contains a commit which updated OptiX wrapper library internally used, so now the project requires you to install OptiX 7.4.0.
It works great. Thanks :)
Hi,
When using a scene such as lost-empire I get the following error :
Error: CUDA call (cuArray3DCreate(&m_array, &arrayDesc) ) failed with error: 'out of memory' (C:\Users\X\Documents\Shocker\GfxExp\utils\cuda_util.cpp:693)
. I think what is happening is that for every material in the mtl file the map_Ka and map_Kd attributes are loaded into memory even if those same textures have been loaded into memory already for another material. This is confirmed by the console output:As you can see the same textures are loaded over and over.