Jump to content

Boolean random seed per stamp??


misterbil

Recommended Posts

Hello,

I'm trying to create some really basic glass debris (small on screen and limited in poly counts (games)), so instead of using material based debris (too directional) or voronoi fracture (too hexagonal looking), I thought I would use Steven Knipping technique and use booleans.

-create one glass panel

-add points

-attribrandomize the points

-copy to points grids for cutting

-boolean scatter the glass panel with the cutting grids

-copy stamp the panels ...wishing to use stamp to add randomness to attribrandomize.

It works great except that I can't get the randomness of my stamp attribute to randomize the seed, so all panel look the same. 

I'm creating a rnd attribute in the copy stamp SOP with the following expression: rand($NCY)

and in the attribrandomize under options tab>Global seed I enter: stamp("../copy6/", "rnd", 0)*12345

If anyone as a minute to take a look or has any suggestion that'll be fantastic!!

thanks

onepanel.PNG

manyPanel.png

BooleanStamp.hip

Link to comment
Share on other sites

1 hour ago, misterbil said:

@Jesper Rahlff thank you so much! It's so obvious, I'm almost ashamed to have asked. :) works like a charm.

there are never stupid questions. Better to ask and spend 5 minutes to solve the problem than spending 2 hours trying to do it yourself. Sometimes one can't see the forest because of all the trees

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...