Jump to content

Random Shape Generation


prashantcgi

Recommended Posts

Hi Everyone!!

 

I want to make some random shape generation from one polygon geometry.

 

That is a polyon geometry changing shape into a new geometry randomly. Keeping number of points same all the time.

 

Any guys have any suggestion related to approaching this task please help.

 

If you have any reference or any sample file plz let me know.

 

please check the attached image.

 

Thank you

 

 

 

 

 

post-8448-0-44819700-1413961681_thumb.jp

Link to comment
Share on other sites

That seems pretty simple, with just those parameters. But the shapes you drew are more complicated than that.

Here it is in 3 SOPs. Start with a grid, add a sort sop and in that randomize the primitives based on the frame number, then add a blast SOP and delete non selected with 0-10 primitives if you want 11 polys.

 

What it looks like you drew is more like 4-5 segmented lines radiating out from a center. Each line randomly rotates. Then all the points are fused on a grid. Squares, the size of the grid, are copied to each point. And bingo. But that's going to vary the number of points.

Edited by kleer001
Link to comment
Share on other sites

That seems pretty simple, with just those parameters. But the shapes you drew are more complicated than that.

Here it is in 3 SOPs. Start with a grid, add a sort sop and in that randomize the primitives based on the frame number, then add a blast SOP and delete non selected with 0-10 primitives if you want 11 polys.

 

What it looks like you drew is more like 4-5 segmented lines radiating out from a center. Each line randomly rotates. Then all the points are fused on a grid. Squares, the size of the grid, are copied to each point. And bingo. But that's going to vary the number of points.

 

Thanks Kleer!

i tried your method , the problem is it gives seperate faces and in some randomization steps they are completetly apart from each other which is not solving my objective.

Link to comment
Share on other sites

Maybe you could draw some shapes for me that demonstrate the qualities you're looking for? The ones you originally gave don't have the same point count. That's if you could the points as they align to a grid or just the 90 degree corners themselves. Or can you tell us what you're using it for? It's a little hard just to guess at your constraints. I'm totally happy to help, I just need to know what you need :)

 

 

 

Thanks Kleer!

i tried your method , the problem is it gives seperate faces and in some randomization steps they are completetly apart from each other which is not solving my objective.

Link to comment
Share on other sites

Ok, I think I see how you're constraining your randomness.

 

Here's a shot. It's easier to show than tell. You'll just need to be careful of the fuse SOP because if your source points are too close to each other you'll lose the same point count. So, don't randomize your points further than half their starting distance. Cool?

 

If you need thin flat edges like your drawings you'll want to start with a modified circle, flattening one of the side. Try playing with the normals too.

randomPoints.hip

Edited by kleer001
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...