Register Latest Topics
 
 
 


Reply
  Author   Comment  
ZC

Cooking networks
Registered:
Posts: 142
Reply with quote  #1 

hi,peter!!

Can this group node add a random selection mode?

Random selection mode can be in two ways.
1, according to the percentage of the random way, for example, the total number of 15% random.
2, according to the number of random way, for example, the total number of components we do not know, but we can randomly select 300 components.

thank you!! peter

0
pshipkov

SOuP Jedi
Registered:
Posts: 4,711
Reply with quote  #2 
You can achieve this by using the "weight map" option.
In the upfront chain use point, arrayExpression or textureToArray to vary the weights on per-point basis.
The group node will react to that and output the components accordingly.
0
ZC

Cooking networks
Registered:
Posts: 142
Reply with quote  #3 

The operation of this point node object seems to be the vertex, it can operate side or face?

The components of this group node operation object a little bit, side, etc., I hope that the operation of the object is a random surface, you can use this point node to achieve?

I tested that the point node can randomly select 10% of the components, but can not be randomly selected 300 components.

I feel that this group may be able to add a component to the maximum and minimum number of restrictions. Such as qualified components, the smallest number of 10, the largest number of 50. When the maximum number and the smallest number of the same, such as the maximum number and minimum number are 30, then you can do a random selection of 30 components.

thank  peter!!

0
pshipkov

SOuP Jedi
Registered:
Posts: 4,711
Reply with quote  #4 
I think something got lost in translation.
Do you mind explaining one more time ?

Check the attached scene.
Adjust group1.weightThreshold and switch componentToComponent1.outComponentType to different value.

 
Attached Files
ma randomizeComponentList.ma (79.46 KB, 4 views)

0
ZC

Cooking networks
Registered:
Posts: 142
Reply with quote  #5 

I am sorry. I use google translation ...
Simply put, it is hoped that the number of components output by this group node can have a clamp.

In the case of satisfying the conditions, we can clamp the number of components exported by this grout node.

If the maximum and minimum numbers are the same, we can randomly select the number of components. For example, randomly select 300 faces.

thank  peter!!

0
pshipkov

SOuP Jedi
Registered:
Posts: 4,711
Reply with quote  #6 
I think i get it.
So take my scene i posted above and connect a second group node to the existing on.
It is especially important to connect group1.outComponents to group2.inComponents.
Then in the second node inside "input components" you set the "combine" method to "subtract".
Finally type in the "pattern" field something like:
0:50 100:9999

Connect group2.outComponents to componentToComponent1.inComponents.
You will see that you effectively achieved boolean operations between different sets of components.
This is very powerful capability that can help you in many cases.

To further clarify:
- in the base scene you achieved random selection of components
- using the second group node you clamped with range (!) the components.

Now this is still different that what you suggested, basically a single attribute that controls the number of components on the output, but i figured i should mention it to you - just in case.

I added your request to my to-do list.
0
ZC

Cooking networks
Registered:
Posts: 142
Reply with quote  #7 
Thank you so much! Peter  :)
0
ZC

Cooking networks
Registered:
Posts: 142
Reply with quote  #8 
thank peter
I will support you forever!
0
ZC

Cooking networks
Registered:
Posts: 142
Reply with quote  #9 

This point node can achieve a random selection of vertices. Such as randomly selected 10% of the vertices.
Through this componentToComponent node can be achieved on the edge and the face of the random selection.

But there is a problem in which there is a problem

Because this componentToComponent node is the use of components and components of the relationship between the conversion, so it can not guarantee the conversion of the number of components and the original number of components the same.
This and we want the results of some differences.

I do not know how to randomly select 10% of the edge or 10% of the face
Can you tell me how to do it?

thank peter!!

0
pshipkov

SOuP Jedi
Registered:
Posts: 4,711
Reply with quote  #10 
Conversion is based on connectivity.

I don't have anything that will select precisely 10 or other percent of the components.
One has to eyeball it.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation: