UVRandomMapping2D (and LocalRandomMapping3D)

Discussion related to the LuxCore functionality, implementations and API.
juangea
Donor
Donor
Posts: 332
Joined: Thu Jan 02, 2020 6:23 pm

Re: UVRandomMapping2D (and LocalRandomMapping3D)

Post by juangea »

Awesome! it was one of the missing pieces, super great!
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: UVRandomMapping2D (and LocalRandomMapping3D)

Post 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?
Attachments
random_3d.PNG
juangea
Donor
Donor
Posts: 332
Joined: Thu Jan 02, 2020 6:23 pm

Re: UVRandomMapping2D (and LocalRandomMapping3D)

Post by juangea »

I had no chance to test it yet, does it work also per island? (Separated mesh parts in the same object)
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: UVRandomMapping2D (and LocalRandomMapping3D)

Post 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.
juangea
Donor
Donor
Posts: 332
Joined: Thu Jan 02, 2020 6:23 pm

Re: UVRandomMapping2D (and LocalRandomMapping3D)

Post by juangea »

Awesome! :D
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: UVRandomMapping2D (and LocalRandomMapping3D)

Post by Sharlybg »

That will make shader more natural and realistic.
Awesome job thanks ;)
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: UVRandomMapping2D (and LocalRandomMapping3D)

Post 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.
Support LuxCoreRender project with salts and bounties
AndreasResch
Posts: 135
Joined: Fri Jul 06, 2018 9:32 am

Re: UVRandomMapping2D (and LocalRandomMapping3D)

Post by AndreasResch »

Randomization for 3D-Mapping works as well now? Damn. Cheers, guys.
Post Reply