Author Topic: Scatter populating oustide plane  (Read 8192 times)

2016-11-07, 15:33:09

zrylux

  • Active Users
  • **
  • Posts: 9
    • View Profile
Hello. Im trying to create some relaistic grass in a plane next to the pool.

Im using this model to populate the plane using corona scatter.


The results are pretty convincing but some of the grass is populated oustide the plane. I understand the scatering tool uses the model's pivot to put inside the plane. So, my final result is some grass inse the water wich is next to the plane.

Any chance to hide that or avoid populate outside the plane?

2016-11-07, 15:43:32
Reply #1

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8888
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Here's a thread where similar problem was successfully solved: https://forum.corona-renderer.com/index.php/topic,9630.0.html You may want to take a look at it.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2016-11-07, 21:10:33
Reply #2

zrylux

  • Active Users
  • **
  • Posts: 9
    • View Profile
Thanks for your reply Romullus. I ve checked it and the the vertex map technic is not an accurated solution for my problem. That was the first thing come to my mind when looking for a solution.

Is there any better way to solve that? As you can see in the attached image, some grass is populated going outside the limits of my grass plane.

I was thinking maybe create some kind of poligon surrounding the plane wich can be used as a mask and will hide the scatter object when rendering...

And idea?

Thanks

2016-11-07, 21:18:40
Reply #3

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8888
  • Let's move this topic, shall we?
    • View Profile
    • My Models
You don't necessarily have to use vertex colours for that. Use bitmap mask if you like. In fact it's not necessary to use second scatter either, everything can be achieved in the same scatterer with density or scale maps. Actually there's very fresh official Corona tutorial that's addressing exactly your situation. Here it is:

I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2016-11-08, 12:54:11
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12818
  • Marcin
    • View Profile
Another idea is to use distance tex to cut off scattered objects which are outside of some specified area.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2016-11-08, 15:07:47
Reply #5

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8888
  • Let's move this topic, shall we?
    • View Profile
    • My Models
I didn't know that distance tex works with scatterer too. Pretty cool. But i guess, time penalty can be quite signifficant.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2016-11-08, 15:20:03
Reply #6

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12818
  • Marcin
    • View Profile
I did not notice any. Just to clarify: distance tex is used as opacity map for the grass blades here.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2016-11-08, 16:03:26
Reply #7

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8888
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Just a thought, since we already have collision calculation, maybe it's worth to introduce one more checkbox, that would prevent instanced objects bounding boxes to exceed boundaries of distribution object?
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2016-11-08, 16:45:49
Reply #8

ktulu

  • Active Users
  • **
  • Posts: 33
    • View Profile
I don't want to hijack this thread, but wanted to know if there was any way to manually define the position of scattered objects. In Forest Pack its referred to as 'custom edit mode'.
I couldn't find this setting anywhere in corona scatter and it's a major deal breaker for workflows, where one needs to precisely define the position of say trees and still wants to benefit from all the goodies like random scaling, rotation and instancing.

2016-11-08, 17:14:09
Reply #9

zrylux

  • Active Users
  • **
  • Posts: 9
    • View Profile
Another idea is to use distance tex to cut off scattered objects which are outside of some specified area.

This seems a nice idea. Ill try to achieve it using the distance map. I'll have to take a look to teh tutorial.

Anyway, I ve seen in a diferent  render engine wich I do not want to say the name ;) there is an option wich allow to do not render part of an object putting overlapping it with a polygon. I think its called "Render booleans" and its a perfect solution for this problem. Just put a box next to the plane where the grass is outside the area and anything inside the box wont be rendered.

This could be a nice future feature

http://support.nextlimit.com/display/mxdocsv3/Render+booleans

2016-11-08, 19:00:46
Reply #10

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8888
  • Let's move this topic, shall we?
    • View Profile
    • My Models
zrylux, have you seen maru's reply in this topic (#4), he showed how to do exactly the same thing in Corona as you described.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2016-11-09, 09:18:28
Reply #11

zrylux

  • Active Users
  • **
  • Posts: 9
    • View Profile
Yes! thanks! I'm going to take a look!!