Resuming from IGI

General questions about Indigo, the scene format, rendering etc...
Post Reply
14 posts • Page 1 of 1
User avatar
zsouthboy
Posts: 1395
Joined: Fri Oct 13, 2006 5:12 am

Resuming from IGI

Post by zsouthboy » Mon Aug 11, 2008 7:40 am

Theoretical question, because it obviously doesn't make any visual difference in the end result.

When resuming from an IGI, I notice that Indigo won't choose new RNG seeds.

Isn't this technically no longer unbiased? Wouldn't some contributions end up being counted again (*theoretically)? And if not, why bother with separate RNG seeds at all (for multi threads and network rendering)?

Thoughts?

sugokuGENKI
Posts: 16
Joined: Sun Jul 20, 2008 5:05 am

Post by sugokuGENKI » Mon Aug 11, 2008 8:57 am

is the next random number calculated purely based on the previous random number, or by also using the timer?
If it's using the timer then we can presume the numbers are pretty random
otherwise, if we're not, then maybe there's some clever ways of making sure that the same calculation is never performed twice
the problem then though is that we're dealing with a deterministic system which may hinder render results.

that's my thoughts, but probably not any help :?

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Post by CTZn » Mon Aug 11, 2008 10:42 am

Hey I'm fancy giving my two cent although I'm such an ignorant in the matter :D

I think the seed is a separated randomness that the one wich prevails during rendering, thus it is safe to affirm that unbiasedness is preserved.

That said, as you noticed seed was preserved; this must have a reason why, a good reason I mean.

Since, once started, the whole rendering process is marked as using a unic, given seed, this makes sense to me. I believe this has the advantage of preserving a certain coherency in the sampling process.

Ok now thats fifty bucks !

;)
obsolete asset

alex22
Posts: 171
Joined: Thu Apr 12, 2007 12:07 pm
Location: Germany

Post by alex22 » Mon Aug 11, 2008 11:14 am

Also, even if your random numbers should start from the beginning, they would have to start at the same position as the first ray. So if the first ray was from the camera into the scene and your ray with a repeating random number is somewhere in the middle of the scene (for example from a wall), then it won't create the same pixels and so still converge.

User avatar
zsouthboy
Posts: 1395
Joined: Fri Oct 13, 2006 5:12 am

Post by zsouthboy » Mon Aug 11, 2008 1:17 pm

To all:

RNG starting seed in -> same sequence of numbers out

as is my understanding (this is by design)

I'm interested in Ono's thoughts as well (it may be decoupled enough as suggested that it makes so little difference to be unnoticeable)

User avatar
Azazeo
Posts: 38
Joined: Sun Apr 13, 2008 1:58 am
Location: Belarus
Contact:

Post by Azazeo » Tue Aug 12, 2008 2:18 am

Hi. I have a problem with resuming from IGI - after selecting right IGS and IGI files... look at picture.
Attachments
im1218452902.jpg
im1218452902.jpg (44.03 KiB) Viewed 3421 times
...and the Earth becomes my throne!

Image

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Re: Resuming from IGI

Post by OnoSendai » Tue Aug 12, 2008 8:43 am

zsouthboy wrote:Theoretical question, because it obviously doesn't make any visual difference in the end result.

When resuming from an IGI, I notice that Indigo won't choose new RNG seeds.

Isn't this technically no longer unbiased? Wouldn't some contributions end up being counted again (*theoretically)? And if not, why bother with separate RNG seeds at all (for multi threads and network rendering)?

Thoughts?
You're quite right zsouthboy, a different RNG seed should be used when resuming a render. Otherwise the same samples will get computed again, which is redundant.

User avatar
Borgleader
Posts: 2149
Joined: Mon Jun 16, 2008 10:48 am

Re: Resuming from IGI

Post by Borgleader » Tue Aug 12, 2008 8:58 am

OnoSendai wrote: You're quite right zsouthboy, a different RNG seed should be used when resuming a render. Otherwise the same samples will get computed again, which is redundant.
Is that an easy fix?

and gratz to zsouth for coming up with that :D
benn hired a mercenary to kill my sig...

User avatar
zsouthboy
Posts: 1395
Joined: Fri Oct 13, 2006 5:12 am

Post by zsouthboy » Tue Aug 12, 2008 9:11 am

Okay, sounds like an easy fix boss: save RNG seeds used in the header data somewhere.

As a heads up to other people for now: start indigo with the -seed x parameter, with the next number to assign to a thread (counting upwards), when resuming.

for example, first render used seeds 1 and 2, automatically chosen by Indigo, so the resume render should be indigo.exe -seed 3

As far as i can tell (I may make a scene to show off the problem though) this is a small problem and would be unnoticed unless you resumed a few dozen times.

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Re: Resuming from IGI

Post by OnoSendai » Tue Aug 12, 2008 9:11 am

Borgleader wrote:
OnoSendai wrote: You're quite right zsouthboy, a different RNG seed should be used when resuming a render. Otherwise the same samples will get computed again, which is redundant.
Is that an easy fix?

and gratz to zsouth for coming up with that :D
Sure, just type -seed XXX on the command line.
Although I guess I should automate it somehow...

Deus
Posts: 336
Joined: Sun Feb 04, 2007 3:47 am

Post by Deus » Tue Aug 12, 2008 12:05 pm

Pick a random seed (clock based duh) perhaps? :)

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Post by CTZn » Tue Aug 12, 2008 12:43 pm

Ah, I thought seed would give a certain footprint to sampling, I really wasn't believing that a single seed could cause the very same sampling location... but knowing fractals a bit (say, they use a seed) it's logic finally...
obsolete asset

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Post by OnoSendai » Tue Aug 12, 2008 12:49 pm

Deus wrote:Pick a random seed (clock based duh) perhaps? :)
That's what I was doing, but It has some issues, and I prefer a more deterministic approach.

User avatar
zsouthboy
Posts: 1395
Joined: Fri Oct 13, 2006 5:12 am

Post by zsouthboy » Tue Aug 12, 2008 2:02 pm

CTZn wrote:Ah, I thought seed would give a certain footprint to sampling, I really wasn't believing that a single seed could cause the very same sampling location... but knowing fractals a bit (say, they use a seed) it's logic finally...
PRNGs are designed to do this.

Deterministic randomness, if you will.

See: encryption.

Post Reply
14 posts • Page 1 of 1

Who is online

Users browsing this forum: Baidu [Spider] and 19 guests