Itoo Software Forum

Author Topic: scattering groups  (Read 503 times)

mitviz

  • Jr. Member
  • **
  • Posts: 72
    • mitviz
scattering groups
« on: March 23, 2018, 07:57:45 AM »
when scattering a group for me, especially in this scene sometimes the group seems exploded, i am using the custom option and scatting along a spline, is this some bug?
« Last Edit: March 23, 2018, 08:00:14 AM by mitviz »
Professional architectural renders

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 512
Re: scattering groups
« Reply #1 on: March 23, 2018, 09:47:53 AM »
Do every object in the group have pivot position and orientation in the same place?

If that doesn't help, could You please attach your scene to check what exactly goes on ?

mitviz

  • Jr. Member
  • **
  • Posts: 72
    • mitviz
Re: scattering groups
« Reply #2 on: March 23, 2018, 09:53:52 AM »
in the same place? like a central point for all the models? they all have their pivots now centered
Professional architectural renders

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 512
Re: scattering groups
« Reply #3 on: March 23, 2018, 10:07:14 AM »
Yes same place, does not matter where exactly.
P.S. Centered as You wrote is not good, if You centered to every object local center.


Is it still "exploded"? Do You use any transformations? If so- they can cause this effect.

It would help to see Your scene.

mitviz

  • Jr. Member
  • **
  • Posts: 72
    • mitviz
Re: scattering groups
« Reply #4 on: March 24, 2018, 12:42:20 AM »
yeah this worked! having all pivots in the same place solves the issues, thanks man!
Professional architectural renders

abdelrahmanazmi

  • Newbie
  • *
  • Posts: 1
Re: scattering groups
« Reply #5 on: April 16, 2018, 10:03:47 AM »
Group scattering helped me save a considerable amount of time. Yet, most of time, I needed the rotation of my objects to be relative to the whole group so the shape of my group doesn't miss up.
I don't want to take time changing the pivot of every group's object (sometimes more than 50 objects per group) to the same pivot of the whole group to achieve that.
I suggest that IToo puts a check point for that, and better, a check point for every object in the group to control which one I need to be independent and which do not, hopefully in the next update.
The problem could derive from the Forest Pack object considering the pivot of every object independently in scattering, ignoring the group's pivot.
Thank you very much.
« Last Edit: April 16, 2018, 10:11:54 AM by abdelrahmanazmi »

mitviz

  • Jr. Member
  • **
  • Posts: 72
    • mitviz
Re: scattering groups
« Reply #6 on: April 16, 2018, 10:05:29 AM »
yeah that would be the best! its annoying to try to fix that
Professional architectural renders

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 512
Re: scattering groups
« Reply #7 on: April 16, 2018, 01:39:26 PM »
I created a demo example about scattering groups. Maybe some users will find that usefull.
yeah that would be the best! its annoying to try to fix that
1 Pivot is used for sampling randomizations. It must be in the same position if You want the same transformation as Your neighboring objects.
2 Objects are scaled from the pivot location. It plate on the table hadn not had pivot in the same position as table:
« Last Edit: April 16, 2018, 01:41:02 PM by Rokas »

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3245
    • iToo Software
Re: scattering groups
« Reply #8 on: April 20, 2018, 11:44:03 AM »
Quote
I suggest that IToo puts a check point for that, and better, a check point for every object in the group to control which one I need to be independent and which do not, hopefully in the next update.
The problem could derive from the Forest Pack object considering the pivot of every object independently in scattering, ignoring the group's pivot.

I made some tests to implement this, but unfortunately it's much more complex than it seems at first glance.
The problem is that once scattered, the items of a group are handled as independent objects, with its own transformation.

There is not a simple way to keep the rotation relative to the group either. Forest computes multiple rotations at different steps (random, look-at, effects, etc.), and any change has undesired effects in other parts of the code.

To make it correctly, we should modify the scattering workflow to handle the group as an single item, and then generate the sub-items at the render stage.
This is a major change which we cannot afford at this moment (FP6 is pretty stable and ready for the final release). I don't discard the idea for the future, but for now we'll keep it as now.

Thanks,
Carlos Quintero
iToo Software

mitviz

  • Jr. Member
  • **
  • Posts: 72
    • mitviz
Re: scattering groups
« Reply #9 on: April 20, 2018, 01:31:35 PM »
you know there is a reason why i scattered the group, the plant  had different displacement strengths for each leaf so i just made it a group but seems its a challenge but someone i got it to work
Professional architectural renders