Page 3 of 3

Re: UVRandomMapping2D (and LocalRandomMapping3D)

Posted: Tue Feb 23, 2021 2:27 pm
by juangea
Awesome! it was one of the missing pieces, super great!

Re: UVRandomMapping2D (and LocalRandomMapping3D)

Posted: Tue Feb 23, 2021 8:30 pm
by B.Y.O.B.
B.Y.O.B. wrote: Tue Feb 23, 2021 12:54 pm LocalRandomMapping3D still to do.
This is now also done.
When the "Random Rotation" etc. checkboxes are disabled, the same values are used for min/max internally.

The only weird thing is, it doesn't really behave like a "Local" mapping. E.g. when I rotate one of the cubes, the 3D texure is not rotated along. Maybe because the randomly chosen transformation matrix is here not divided by hitPoint.localToWorld? Is this a bug in the LuxCore code or am I misunderstanding something?

Re: UVRandomMapping2D (and LocalRandomMapping3D)

Posted: Tue Feb 23, 2021 8:55 pm
by juangea
I had no chance to test it yet, does it work also per island? (Separated mesh parts in the same object)

Re: UVRandomMapping2D (and LocalRandomMapping3D)

Posted: Tue Feb 23, 2021 9:08 pm
by B.Y.O.B.
juangea wrote: Tue Feb 23, 2021 8:55 pm I had no chance to test it yet, does it work also per island? (Separated mesh parts in the same object)
Yes. It's one of the seed types, besides object ID.

Re: UVRandomMapping2D (and LocalRandomMapping3D)

Posted: Tue Feb 23, 2021 9:47 pm
by juangea
Awesome! :D

Re: UVRandomMapping2D (and LocalRandomMapping3D)

Posted: Wed Feb 24, 2021 8:33 am
by Sharlybg
That will make shader more natural and realistic.
Awesome job thanks ;)

Re: UVRandomMapping2D (and LocalRandomMapping3D)

Posted: Wed Feb 24, 2021 11:19 am
by Dade
B.Y.O.B. wrote: Tue Feb 23, 2021 8:30 pm The only weird thing is, it doesn't really behave like a "Local" mapping. E.g. when I rotate one of the cubes, the 3D texure is not rotated along. Maybe because the randomly chosen transformation matrix is here not divided by hitPoint.localToWorld? Is this a bug in the LuxCore code or am I misunderstanding something?
I should have fixed this problem.

Re: UVRandomMapping2D (and LocalRandomMapping3D)

Posted: Wed Feb 24, 2021 11:36 am
by AndreasResch
Randomization for 3D-Mapping works as well now? Damn. Cheers, guys.