Jump to content


Dynamic groups


  • Please log in to reply
8 replies to this topic

#1 sanchoflat

sanchoflat

    Peon

  • Members
  • Pip
  • 60 posts
  • Joined: 03-February 12
  • Location:Russia
  • Name:Sasha Flat

Posted 15 April 2012 - 09:48 PM

Hi all.  Need your help. Destroy some object, but how can i group my mesh pieces proceduraly?  ( I pick out region )

Thanks.

Attached Files


Edited by sanchoflat, 15 April 2012 - 09:48 PM.


#2 sadhu

sadhu

    Initiate

  • Members
  • PipPip
  • 173 posts
  • Joined: 09-July 09
  • Location:Mumbai, India
  • Name:Sandeep Doshi

Posted 16 April 2012 - 12:15 AM

One of the ways is to color the input points to voronoi fracture sop and use it as condition to create groups in dop using point expression. I hope this helps.
:)

Attached Files



#3 sanchoflat

sanchoflat

    Peon

  • Members
  • Pip
  • 60 posts
  • Joined: 03-February 12
  • Location:Russia
  • Name:Sasha Flat

Posted 16 April 2012 - 04:38 AM

its cool, but i have some another idia.  I did it with  mask, but result isnt perfect.  i try to group points  with bounding box,  but  its isnt well. how can i group this pieces in Dop network with animation.  If i try to do it - my sop geometry dissapears

Attached Files



#4 sadhu

sadhu

    Initiate

  • Members
  • PipPip
  • 173 posts
  • Joined: 09-July 09
  • Location:Mumbai, India
  • Name:Sandeep Doshi

Posted 16 April 2012 - 06:15 AM

If I have understood it correctly, you can solve this in different ways.
1)Add point(particle system) at the center of each piece using foreach operator and add operator.
2)Group these points using the volume which you r importing using obj merge node.
3)Create some attrb say 'active' only on the points in the group with value 1.
4)So points not in the group will have active attrb with value 0 and those in the group will have active attrb value 1.
5)In dop group node access this value(active) using point expression to check if it is equal to 1. If the condition is satisfied then object with that id will be in the group.(similar to point expression in the previous post just type active instead of Cd)
6)Apply force only on this group or you can use this group in active value dop to activate the objects.

Edited by sorry, 16 April 2012 - 06:31 AM.


#5 sadhu

sadhu

    Initiate

  • Members
  • PipPip
  • 173 posts
  • Joined: 09-July 09
  • Location:Mumbai, India
  • Name:Sandeep Doshi

Posted 16 April 2012 - 06:16 AM

If I have understood it correctly, you can solve this in different ways.
1)Add point(particle system) at the center of each piece using foreach operator and add operator.
2)Group these points using the volume which you r importing using obj merge node.
3)Create some attrb say 'active' only on the points in the group with value 1.
4)So points not in the group will have active attrb with value 0 and those in the group will have active attrb value 1.
5)In dop group node access this value(active) using point expression to check if it is equal to 1. If the condition is satisfied then object with that id will be in the group.(similar to point expression in the previous post just type active instead of Cd)
6)Apply force only on this group.

#6 sadhu

sadhu

    Initiate

  • Members
  • PipPip
  • 173 posts
  • Joined: 09-July 09
  • Location:Mumbai, India
  • Name:Sandeep Doshi

Posted 16 April 2012 - 06:19 AM

SORRY, Internate issue. Double posted

Edited by sorry, 16 April 2012 - 06:33 AM.


#7 sanchoflat

sanchoflat

    Peon

  • Members
  • Pip
  • 60 posts
  • Joined: 03-February 12
  • Location:Russia
  • Name:Sasha Flat

Posted 16 April 2012 - 07:58 AM

thanks really for your help, but in attributes i'm isnt strong.  Did this, but have this result, i choose not pieces - only primitives

Attached Files



#8 sadhu

sadhu

    Initiate

  • Members
  • PipPip
  • 173 posts
  • Joined: 09-July 09
  • Location:Mumbai, India
  • Name:Sandeep Doshi

Posted 16 April 2012 - 09:28 PM

Hello Friend. There can be different ways of doing this. Since I have used point expression in the last post, i am using same logic here as well. If you want pieces not in the group not to move at all then use active value dop with this group.

Attached Files


Edited by sorry, 16 April 2012 - 09:29 PM.


#9 sanchoflat

sanchoflat

    Peon

  • Members
  • Pip
  • 60 posts
  • Joined: 03-February 12
  • Location:Russia
  • Name:Sasha Flat

Posted 17 April 2012 - 08:37 AM

wou man Big thanks,  i have problem with "point" expression.  rest was all clear))




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users