Env. Light Visibility Cache

Discussion related to the LuxCore functionality, implementations and API.
kintuX
Posts: 810
Joined: Wed Jan 10, 2018 2:37 am

Re: Env. Light Visibility Cache

Post by kintuX »

Isn't SDS issue an MLT integrator issue?
Seems we're forgetting, OCL dev. is more or less stagnant (@ 1.2) & on the way out! i.e No more computing on AMD chips.
"Will Vulkan replace it or will LuxCore become CPU only?"

Dade does the great work and finally he knows what the future of LuxCore looks like.
Also, CPU cores have skyrocketed with higher frequencies (Ryzen 3x supposedly coming with 16 cores @ 4.6 MHz & 12 cores @ 5.1 MHz), w/o having to wait for GPU compilation, animations are a treat :mrgreen: Development evolved (with AI algos got much better, more efficient).
While RTX is still low on the industrial map (especially with examples of "code" doing it - HW agnostic).

Sorry for the offtopic, just needed to mention this.
User avatar
lacilaci
Donor
Donor
Posts: 1969
Joined: Fri May 04, 2018 5:16 am

Re: Env. Light Visibility Cache

Post by lacilaci »

While I was not really impressed with gpu development in past 2 years, today I think I'll get a 2070 before I upgrade rest of my hw and the I get even better gpu...
provisory
Posts: 235
Joined: Wed Aug 01, 2018 4:26 pm

Re: Env. Light Visibility Cache

Post by provisory »

lacilaci wrote: Sat May 25, 2019 4:03 pm ... I'll get a 2070 before I upgrade rest of my hw and the I get even better gpu...
And for your use case it seems to be a logical decision.
If LuxCore had BiDirVM on GPU, I would buy a fast GPU too. :D
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Env. Light Visibility Cache

Post by Sharlybg »

For me bidir is still a very good engine. With now monster CPU (128 threads) and guided tech it can become very amzing.

But back in 2009 Alex roman did this amazing 3rd & 7th animation with super caustics i still Wonder how i can achieve affordably with my current set of Tools. :roll:
A faster bidir could help :idea:

https://youtu.be/AQ-3aRhvFwU?t=608
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
provisory
Posts: 235
Joined: Wed Aug 01, 2018 4:26 pm

Re: Env. Light Visibility Cache

Post by provisory »

By the way what was the problem with BiDirVM, why isn't it supported anymore?
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Env. Light Visibility Cache

Post by B.Y.O.B. »

As far as I know it's simply unfinished.
Maybe Dade can explain the reasons why it wasn't developed further?
Fox
Posts: 437
Joined: Sat Mar 31, 2018 11:17 am

Re: Env. Light Visibility Cache

Post by Fox »

BiDirVM sort of works, but the lack of MLT is very big disadvantage, the MLT part is broken.
One render that i did the MLT version with BiDirVM looked better at 20 sp to the random with BiDirVM at 1000 sp.
But the bias creeps in fast with MLT.

In bidirvmcputhread.cpp file there is this info:

Code: Select all

		// Using the same time for all rays in the same pass is required by the
		// current implementation (i.e. I can not mix paths with different
		// times). However this is detrimental for the Metropolis sampler.
		const float timeSample = rndGen->floatValue();
		const float time = scene->camera->GenerateRayTime(timeSample);
For me it worked well when MLT worked with 180 x 180 pixel image block,
but when i disable russian roulette, then i see how random has only sampled 2 or so pixels where MLT covered 30000 pixels.
Then it reaches to next pass and reduces radius by alpha, but that 2 pixel samples are not enough info when they are far apart.
So with random it does a lot of work with large radius 100 pixels or so. First 10 passes look fine, but next 1000 passes nothing changes.
The initial bias from first 10 passes doesn't go away when with next 1000 passes nothing happens.
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Env. Light Visibility Cache

Post by B.Y.O.B. »

That comment is only relevant if you have time-related stuff in your scene, i.e. motion blur.
Fox
Posts: 437
Joined: Sat Mar 31, 2018 11:17 am

Re: Env. Light Visibility Cache

Post by Fox »

B.Y.O.B. wrote: Sat May 25, 2019 11:03 pm That comment is only relevant if you have time-related stuff in your scene, i.e. motion blur.
Oo i see.
What can it be then, the bias is strongest with MLT when largesteprate is close to 0 and maxconsecutivereject is highest value?
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Env. Light Visibility Cache

Post by Dade »

I have further improved the building process of visibility map cache entries. This is a normal rendering with 50 samples/pixel:

normal.jpg

and this with the cache enabled:

cache.jpg
Support LuxCoreRender project with salts and bounties
Post Reply