Learning the Fabric shader

Post your tests, experiments and unfinished renderings here.
User avatar
B.Y.O.B.
Developer
Developer
Posts: 2809
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Learning the Fabric shader

Post by B.Y.O.B. » Thu Jan 24, 2019 6:18 pm

It sounds like the scene uses too much memory and the system is forced to swap, grinding everything to a halt.
Try to close all other programs and keep an eye on the RAM usage when you start a render.
Support LuxCoreRender project with salts and bounties

Racleborg
Posts: 386
Joined: Sat Apr 07, 2018 10:31 am
Location: UK

Re: Learning the Fabric shader

Post by Racleborg » Thu Jan 24, 2019 6:32 pm

@BYOB

Does 12gb ram sound like enough to be able to cover an entire sofa in a fur type fabric?

(I don't know how mainy hairs I would actually need as failure kicks in too soon.)

Thanks

User avatar
B.Y.O.B.
Developer
Developer
Posts: 2809
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Learning the Fabric shader

Post by B.Y.O.B. » Thu Jan 24, 2019 6:53 pm

You mean 12 GB total or 12 GB free RAM?
You can see some calculations and numbers about hair memory usage here:
viewtopic.php?f=4&t=591&p=6136#p6096
and here
viewtopic.php?f=4&t=591&start=10#p5935
Support LuxCoreRender project with salts and bounties

Racleborg
Posts: 386
Joined: Sat Apr 07, 2018 10:31 am
Location: UK

Re: Learning the Fabric shader

Post by Racleborg » Thu Jan 24, 2019 7:11 pm

@BYOB

Thanks for the links which I've just been reading. ☺

User avatar
B.Y.O.B.
Developer
Developer
Posts: 2809
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Learning the Fabric shader

Post by B.Y.O.B. » Thu Jan 24, 2019 7:28 pm

By the way, it might save a lot of memory if you join a patch with a few thousand hairs into one object and use a particle system to instance it over the furniture.
Support LuxCoreRender project with salts and bounties

User avatar
FarbigeWelt
Donor
Donor
Posts: 787
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Learning the Fabric shader

Post by FarbigeWelt » Thu Jan 24, 2019 11:42 pm

Hi Racleborgand B.Y.O.B

Memory usage for 2'700'000 with simple particle hair setup for an image with 1080^2 pixels is really quite memory demanding even with optimisation set to save memory.
Furry Ball 6.jpeg
Fussy Ball, CPU BiDir, Metropolis, 2'700'000 hairs
During the last year I've modernised Mac and PC with SSDs and more ram and the PC with a second graphic card.
If may spend your PC some more RAM, should be quite cheap to get older RAM like DDR3 1333.

Regards,
FarbigeWelt
160.8 | 42.8 (10.7) Gfp / Windows 10 Pro, intel i7 4770K@3.5, 32 GB | AMD R9 290x+RX 5700 XT, 4/8 GB
17.3 | 19.0 ( 4.7) Gfp / macOS X 13.6, iMac 27'', 2010, intel i7 870@2.93, 24 GB | ATI Radeon HD 5750, 1 GB
#luxcorerender | Gfp = SFFT Gflops

Racleborg
Posts: 386
Joined: Sat Apr 07, 2018 10:31 am
Location: UK

Re: Learning the Fabric shader

Post by Racleborg » Fri Jan 25, 2019 12:49 pm

By the way, it might save a lot of memory if you join a patch with a few thousand hairs into one object and use a particle system to instance it over the furniture.
Thanks BYOB, I'll try that.
Memory usage for 2'700'000.....
Thanks FarbigeWelt for the example

Thanks All for the help with this, with which I hope to improve my furniture renders.

Cheers :)

User avatar
FarbigeWelt
Donor
Donor
Posts: 787
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Learning the Fabric shader

Post by FarbigeWelt » Fri Jan 25, 2019 2:25 pm

Racleborg wrote:
Fri Jan 25, 2019 12:49 pm

Thanks FarbigeWelt for the example
Always welcomed.

By the way, I used ribbons for my example, what may be wrong in combination with material if it uses volumes, chose solids insteand. Density, length, etc. and color can be set using a texture, see texture tab particles in blender. Root and tip color did not have any effect on gair colors on Mac version but root and tip size does.
160.8 | 42.8 (10.7) Gfp / Windows 10 Pro, intel i7 4770K@3.5, 32 GB | AMD R9 290x+RX 5700 XT, 4/8 GB
17.3 | 19.0 ( 4.7) Gfp / macOS X 13.6, iMac 27'', 2010, intel i7 870@2.93, 24 GB | ATI Radeon HD 5750, 1 GB
#luxcorerender | Gfp = SFFT Gflops

Post Reply