Random per island help please

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
sarmath
Posts: 135
Joined: Wed Feb 07, 2018 1:22 pm

Random per island help please

Post by sarmath »

Hi

I am trying to use random per island in Blender 2.83 and luxcore 2.4 and it seems to not work for me.
This is test scene, can someone confirm what I am doing wrong or is it somehow broken thanks.
randomperisland.blend
(4.79 MiB) Downloaded 247 times
WIndows 11 Pro Ryzen 7 5700x RTX 3090 32 GB RAM
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Random per island help please

Post by B.Y.O.B. »

The random per island shape code performs a "merge doubles" operation before detecting the islands: https://github.com/LuxCoreRender/LuxCor ... pe.cpp#L43
This should probably be removed for this shape (Cycles doesn't do this).
sarmath
Posts: 135
Joined: Wed Feb 07, 2018 1:22 pm

Re: Random per island help please

Post by sarmath »

I have merged the doubles but still no effect like in sharlybg tutorial:
https://www.youtube.com/watch?v=NO9VE2SxXm0

Still cant figure it out ...maybe sharlybg can check it??
WIndows 11 Pro Ryzen 7 5700x RTX 3090 32 GB RAM
AndreasResch
Posts: 135
Joined: Fri Jul 06, 2018 9:32 am

Re: Random per island help please

Post by AndreasResch »

The initial issue that I had was, that the term "island" is usually used in conjunction with UV islands, which the original poster also seemed to have thought (looking at his file). Aside from that, there really seems to be an issue if the polygon island is just split from the rest of the geometry but isn't moved. As soon as the the split polygons are moved away from the rest of the geometry, the RPI node works. Maybe worth looking into that "double merge" issue.
Last edited by AndreasResch on Wed Mar 03, 2021 12:33 pm, edited 1 time in total.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Random per island help please

Post by Dade »

AndreasResch wrote: Wed Mar 03, 2021 7:31 am The initial issue that I had was, that the term "island" is usually used in conjunction with UV islands, which the original poster also seemed to have thought (looking at his file). Aside from that, there really seems to be an issue if the polygon island is just split from the rest of the geometry but isn't moved. As soon as the the split polygons are moved away from the rest of the geometry, the RPI node works. Maybe worth looking into that "double merge" issue.
This is intended: overlapped edges are considered the same. 2 edges are considered overlapped if the distance of their vertices is less than an epsilon (i.e. something like a 0.00001 meters).
Support LuxCoreRender project with salts and bounties
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Random per island help please

Post by B.Y.O.B. »

Maybe the "remove doubles" step could be made optional?
In the Blender addon it would be disabled then, to make the behaviour the same as in Cycles.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Random per island help please

Post by Dade »

B.Y.O.B. wrote: Wed Mar 03, 2021 10:49 am Maybe the "remove doubles" step could be made optional?
In the Blender addon it would be disabled then, to make the behaviour the same as in Cycles.
It isn't possible (i.e. meshes split by materials, quads split in 2 triangles, etc.). It is something has been already discussed in the original Island thread.
Support LuxCoreRender project with salts and bounties
Post Reply