Author Topic: New UVW Randomizer playground!  (Read 13930 times)

2020-05-28, 14:48:38

GeorgeK

  • Corona Team
  • Active Users
  • ****
  • Posts: 500
  • George
    • View Profile

From the Corona Renderer 6 Daily Builds Changelog:

Added (randomized) tiling support to UvwRandomizer map:
- You can specify how many tiles to make in each (U-V) direction
- Optionally each tile can have different randomization applied
- https://corona-renderer.com/comparer/hCPRU4
- https://corona-renderer.com/comparer/7wCz5x
- https://corona-renderer.com/comparer/CDkWvE

How it works:



To enable tile randomization, navigate to your UVWRandomizer texmap, and enable Randomize each tile. You can then control the number of tiles and tile blending accordingly.



Setting UV offset ranges above 1.0 and W- Rotation to different ranges (f.e. 0-360) will assist with the randomization of the texture.

Note: Either an object with correct UVW mapping is required for this to work (unwrapping or UVW map modifier), or you can use the UVW Randomizer in combination with the Corona Triplanar map to both randomize the texture and prevent seams and stretching, without the need for UVWs.

Feel free to post your results!

You can always get the newest build at the usual location: [Link]
« Last Edit: 2020-05-28, 14:51:32 by maru »
For solutions and troubleshooting please visit - [link]
Please submit your tickets here - [link]

2020-05-28, 16:28:34
Reply #1

alexyork

  • Active Users
  • **
  • Posts: 610
  • Partner at Recent Spaces
    • View Profile
    • RECENT SPACES
Awesome work ;)

Does this now work with Corona Displacement? I believe there's currently a bug between the two resulting in artefacts.
Alex York
Partner
RECENT SPACES
recentspaces.com

2020-05-28, 16:36:55
Reply #2

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 10758
  • Marcin
    • View Profile
Awesome work ;)

Does this now work with Corona Displacement? I believe there's currently a bug between the two resulting in artefacts.

You mean UVW Randomizer + Triplanar as displacement?
UVW Randomizer should work fine with displacement (producing expected results).
Triplanar is always applied AFTER displacement, and this is by design, however sometimes not expected by the users. This was discussed in the past, and the final comment is that this is a technical limitation of Triplanar, which we will not be touching.

2020-05-28, 16:37:02
Reply #3

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 7088
  • Let's move this topic, shall we?
    • View Profile
    • My Models
People posted some pretty impressive examples from Fstorm when they requested this feature in Corona. I would be very disappointed if they won't show equally as impressive works now done in Corona :]
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2020-05-28, 16:38:09
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 10758
  • Marcin
    • View Profile
People posted some pretty impressive examples from Fstorm when they requested this feature in Corona. I would be very disappointed if they won't show equally as impressive works now done in Corona :]
Hint: in Corona you are not limited to bitmaps. You can use this with procedurals as well. :]

2020-05-28, 18:42:18
Reply #5

mvshabeer

  • Active Users
  • **
  • Posts: 63
    • View Profile
    • Portfolio
Great work. Very useful. Will try on next project.
So there wont be much left to excite about when v6 is officially released.

2020-05-28, 18:48:11
Reply #6

scionik

  • Active Users
  • **
  • Posts: 143
    • View Profile
Great job! I love it. Just tried with rocks material, it works very well with Displacement and Normal maps with UV 1:1...
Didn't test it wit RealworldMasSize yet.

2020-05-29, 13:58:38
Reply #7

shortcirkuit

  • Active Users
  • **
  • Posts: 152
    • View Profile
forgive my dumbness - is this used for instances as the references above where flat surfaces use this method to avoid repeating patterns?  Like triplanar does on organic shapes?

2020-05-29, 14:08:46
Reply #8

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 10758
  • Marcin
    • View Profile
forgive my dumbness - is this used for instances as the references above where flat surfaces use this method to avoid repeating patterns?  Like triplanar does on organic shapes?

Triplanar can be used to prevent the issues related to standard UVW mapping - visible seams and stretching - https://coronarenderer.freshdesk.com/support/solutions/articles/12000068417
UVW Randomizer with random tiling prevents the repetitive look of textures. Even if you have a seamless texture, if you apply it to a large surface, or if you move your camera far away, you will see the repetitions because of distinct features of the texture you are using (e.g. the way rocks are aligned in a grassy field texture). The tile randomization allows you to randomize the positions, scaling, and rotation of each tile, so the texture becomes both seamless, and non-repetitive.
You can combine the UVW Randomizer with Triplanar to get all of the above benefits.

2020-05-29, 14:45:14
Reply #9

LuckyFox

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 112
    • View Profile
    • Behance
Hint: in Corona you are not limited to bitmaps. You can use this with procedurals as well. :]
ouff, that might burn some fanboyz out there ;) and they will joke about the virus again

2020-05-30, 12:54:01
Reply #10

vemod

  • Active Users
  • **
  • Posts: 8
    • View Profile
Would it be possible to add a texture map for modulating the blend? I'm thinking it could work like when plugging a texture in the Corona AO distance perhaps?
The current method works suprisingly well, but a sharper transition that is still irregular would be better suited in some occasions and prevent a mushy appearance.

2020-05-30, 12:57:03
Reply #11

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 10758
  • Marcin
    • View Profile
Sure, this, or even a better solution, is possible to add in the future.

2020-05-30, 14:11:13
Reply #12

vemod

  • Active Users
  • **
  • Posts: 8
    • View Profile
Spectacular! :)

2020-05-30, 14:16:13
Reply #13

vemod

  • Active Users
  • **
  • Posts: 8
    • View Profile
While we're at it, and perhaps not entirely related to the UVW-transform but still kind-of...

Is it possible to adjust the actual normal map, or compensate for the UVW-translation when rotating it?
It seems rotating a normal map might cause unexpected lighting results otherwise?

https://robonobodojo.wordpress.com/2015/11/22/transforming-normal-maps/



2020-05-30, 14:33:48
Reply #14

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 10758
  • Marcin
    • View Profile
While we're at it, and perhaps not entirely related to the UVW-transform but still kind-of...

Is it possible to adjust the actual normal map, or compensate for the UVW-translation when rotating it?
It seems rotating a normal map might cause unexpected lighting results otherwise?

https://robonobodojo.wordpress.com/2015/11/22/transforming-normal-maps/

Have you tried it with Corona's randomizer? :)