Author Topic: CoronaPattern playground!  (Read 65189 times)

2022-07-27, 16:06:36
Reply #30

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5710
    • View Profile
Probably because the Pattern geometry only exists at render time (which is how it has such great memory savings etc. afaik), meaning there is nothing in the scene for the Decal to project onto as it doesn't exist until render is pressed. Whether that can be cunningly solved by amazing coding, I don't know, but it sounds like it would fall into the "very hard" category - devs can say otherwise of course!
Tom Grimes | chaos-corona.com
Product Manager | contact us

2022-07-27, 16:21:05
Reply #31

Rhodesy

  • Active Users
  • **
  • Posts: 555
    • View Profile
Probably because the Pattern geometry only exists at render time (which is how it has such great memory savings etc. afaik), meaning there is nothing in the scene for the Decal to project onto as it doesn't exist until render is pressed. Whether that can be cunningly solved by amazing coding, I don't know, but it sounds like it would fall into the "very hard" category - devs can say otherwise of course!

Yes I thought as much. They are wizards though! The other requests re additional node geo and rotations/scale are more important / hopefully easier.

2022-07-27, 17:41:47
Reply #32

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13041
  • Marcin
    • View Profile
Multiple feature requests are now logged for our wizards to review. No guarantees or promises yet!

- rotate the whole pattern without having to adjust base object UVWs
- randomize pattern tiles rotation
- other randomizations like in UVW Randomizer (scale, offset)
- smooth normals along slices ("weld seams")
- ability for the pattern segments to overlap with each other instead of being sliced

Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2022-07-27, 17:46:03
Reply #33

Rhodesy

  • Active Users
  • **
  • Posts: 555
    • View Profile
Thanks Maru. Is it possible to add a request for multiple node geometries? For example the ability to have a few different grass patches rather than only the one?

2022-07-27, 17:47:55
Reply #34

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13041
  • Marcin
    • View Profile
Thanks Maru. Is it possible to add a request for multiple node geometries? For example the ability to have a few different grass patches rather than only the one?

Yep, we will log other ideas from this thread too. :)
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2022-07-27, 17:48:21
Reply #35

mike288

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 353
  • Michal 'Mike' Wirth
    • View Profile
Thanks Maru. Is it possible to add a request for multiple node geometries? For example the ability to have a few different grass patches rather than only the one?
Maybe in that case you rather want scatter?
Chaos Scatter developer | In case of crash, please send minidump | Private uploader: https://corona-renderer.com/upload

2022-07-27, 18:02:16
Reply #36

Rhodesy

  • Active Users
  • **
  • Posts: 555
    • View Profile
Thanks Maru. Is it possible to add a request for multiple node geometries? For example the ability to have a few different grass patches rather than only the one?
Maybe in that case you rather want scatter?

Thanks Mike. I was wondering if corona pattern is more efficient in terms of generation speed and RAM, so it has potential to cover some of the heavy lifting from the likes of scatter. Do they work on different tech when it comes to efficiency and speed? TBH we are quite entrenched in forestpack but scatter is becoming tempting. IS scatter more efficient and faster than forestpack in corona?

2022-07-27, 18:26:42
Reply #37

mike288

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 353
  • Michal 'Mike' Wirth
    • View Profile
Thanks Maru. Is it possible to add a request for multiple node geometries? For example the ability to have a few different grass patches rather than only the one?
Maybe in that case you rather want scatter?

Thanks Mike. I was wondering if corona pattern is more efficient in terms of generation speed and RAM, so it has potential to cover some of the heavy lifting from the likes of scatter. Do they work on different tech when it comes to efficiency and speed? TBH we are quite entrenched in forestpack but scatter is becoming tempting. IS scatter more efficient and faster than forestpack in corona?
Hehe, you have a lot of questions to reply to. :-)

The technology behind scatter and pattern is completely different - implying some use cases are better fit for patterns, some for scatters. We will be addressing this by creating some help article on that topic. Stay tuned! In general, creating patterns means 'repeating' while scattering mostly means 'randomness'. If you need to use multiple grass geometries, you are probably doing it because you want to break the pattern = make it more random. That is why I suggested scatter. But it depends on each case. The help article should shed more light into it.

Yes, pattern is lighter w.r.t. RAM.

As for the comparison to FP (or actually anything), the best approach is to try. User use cases differ really greatly. It is impossible to say that A is always better than B for everybody every time. Moreover it changes over time. Try it and you will see if there are some benefits for you or not. :-)
Chaos Scatter developer | In case of crash, please send minidump | Private uploader: https://corona-renderer.com/upload

2022-07-27, 21:49:23
Reply #38

Rhodesy

  • Active Users
  • **
  • Posts: 555
    • View Profile
Thanks Mike,
Good to know. I see what you say about randomness and repeating and two different tools. Hopefully a few more options can be eeked out of pattern before it reaches its limits. Thanks for all the hard work you guys put in to this.

I will definitely explore more of scatters possibilities to see how it compares to FP.

2022-07-27, 23:42:32
Reply #39

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8992
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Probably not the most artistic image, but fun little experiment researching possible use cases for the pattern tool. It's necessary to apply some tricks to prevent fence segments from bending along the path curve, but otherwise i think it's pretty usable technique.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2022-07-28, 09:39:10
Reply #40

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
The entire point of pattern is that it bends along the way - if you dont want that, you should use 1D scatter with regular pattern here ;)
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2022-07-28, 10:26:35
Reply #41

Rhodesy

  • Active Users
  • **
  • Posts: 555
    • View Profile
Looking good Romulus. Yes the tilt is a factor to consider without adjusting the UVs.

Here's another from me, again not the most creative of compositions! Travertine stack blocked wall and Jakob ivy system. Both pattern objects. UV can be easily offset to get them to line up but not bothered here.
What I like about pattern over the likes of railclone for these types of cladding uses is that they just work whatever surface or orientation you throw them on without errors. Really easy to cut clean holes in them and not worry its going to break.
« Last Edit: 2022-07-28, 10:59:04 by Rhodesy »

2022-08-01, 14:57:44
Reply #42

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13041
  • Marcin
    • View Profile
Yes, as far as I can tell from testing if you have corona pattern on a surface - like a planked floor, you can't put a decal on the generated planks. If you switch off the pattern mod the decal will project fine on the base object but when the pattern is on the decal wont project on the pattern geometry. Does that make sense? I suppose it might be the sequencing so that the pattern should generate first and then the decal projected on after but I'm not even sure if its possible?

This seems to work fine as long as you disable the "use pattern material" option in CPattern modifier. Obviously that is a limitation, but maybe you can use it as a workaround to some degree (i.e. apply the pattern material to the base object).
I have logged it nonetheless because it would be a nice-to-have.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2022-08-01, 15:15:42
Reply #43

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8992
  • Let's move this topic, shall we?
    • View Profile
    • My Models
The entire point of pattern is that it bends along the way - if you dont want that, you should use 1D scatter with regular pattern here ;)

You're right of course, but in this particular case with extreme surface angulation, the scatter would make messy gaps between fence segments. Even if that would be physically more correct, it would not look as good as pattern's outcome :] I think both methods have the right to exist.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2022-08-01, 15:47:08
Reply #44

Rhodesy

  • Active Users
  • **
  • Posts: 555
    • View Profile
Yes, as far as I can tell from testing if you have corona pattern on a surface - like a planked floor, you can't put a decal on the generated planks. If you switch off the pattern mod the decal will project fine on the base object but when the pattern is on the decal wont project on the pattern geometry. Does that make sense? I suppose it might be the sequencing so that the pattern should generate first and then the decal projected on after but I'm not even sure if its possible?

This seems to work fine as long as you disable the "use pattern material" option in CPattern modifier. Obviously that is a limitation, but maybe you can use it as a workaround to some degree (i.e. apply the pattern material to the base object).
I have logged it nonetheless because it would be a nice-to-have.

Thanks Maru. Much appreciated.