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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user