Random Node - How it properly works?

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Post Reply
Snowcarver
Posts: 12
Joined: Sat May 23, 2020 5:23 pm

Random Node - How it properly works?

Post by Snowcarver » Thu Jul 16, 2020 9:55 pm

This is the question.

Luxcore:
Luxcore.PNG
Cycles:
Cycles.PNG

Shantarli
Posts: 9
Joined: Fri Jun 19, 2020 6:05 pm

Re: Random Node - How it properly works?

Post by Shantarli » Thu Jul 16, 2020 11:43 pm

You need 2 materials with different seed, another way will be use Object ID node
Attachments
Screenshot 2020-07-17 at 02.42.25.png

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

Re: Random Node - How it properly works?

Post by B.Y.O.B. » Fri Jul 17, 2020 12:13 am

The "Random" node is a random number generator. The input value is mapped to a pseudo-random output depending on the seed and the input value. So you need to plug something random in to get something random out.

In short: it is not the right node for what you want to do.
As Shantarli said, use the Object ID node in "normalized" mode instead (it can be found in the "Utils" category). In LuxCore, object IDs are by default assigned randomly, so they can be used to get a random value per object as long as you don't set an object ID manually.

Snowcarver
Posts: 12
Joined: Sat May 23, 2020 5:23 pm

Re: Random Node - How it properly works?

Post by Snowcarver » Fri Jul 17, 2020 5:00 am

Shantarli wrote:
Thu Jul 16, 2020 11:43 pm
You need 2 materials...
B.Y.O.B. wrote:
Fri Jul 17, 2020 12:13 am
The "Random" node is a random number generator...
Big Thanks! I`ll try.

UPD:
Random.PNG
Excellent, it works, just what I need! Thank You very much!

Post Reply