Attempts to fix CUDA issues on sm 2.0 cards, still no luck getting motion blur

working, but this should make it not crash.

Also fix for wrong shutter time, should have been shorter.
This commit is contained in:
Brecht Van Lommel
2012-10-17 22:48:29 +00:00
parent 431caff869
commit 6915394a3b
8 changed files with 78 additions and 66 deletions

View File

@@ -64,8 +64,8 @@ void Object::compute_bounds(bool motion_blur, float shuttertime)
/* todo: this is really terrible. according to pbrt there is a better
* way to find this iteratively, but did not find implementation yet
* or try to implement myself */
float start_t = 0.5f - shuttertime*0.5f;
float end_t = 0.5f - shuttertime*0.5f;
float start_t = 0.5f - shuttertime*0.25f;
float end_t = 0.5f + shuttertime*0.25f;
for(float t = start_t; t < end_t; t += (1.0f/128.0f)*shuttertime) {
Transform ttfm;