Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Scatter points on surface

Share your components here. First one to 100 wins!

Scatter points on surface

Postby ajk48n » Thu Oct 25, 2018 8:24 am

This will automatically scatter new points onto an incoming polygonal SOP. It works similar to the Scatter SOP in Houdini if anyone is used to that.

Just hook up a SOP and choose how many points per polygon you want. Make sure the incoming geo is polygons, not a mesh or something else.

At the moment, the new points will be kinda randomly scatterd on your surface, although there may be a small bias towards the center of the each polygon.

If anyone has an idea of how to improve this, or an answer to this question about sample positions (https://www.derivative.ca/Forum/viewtopic.php?f=4&t=13096), let me know
Attachments
scatter-v3.tox
(2.61 KiB) Downloaded 180 times
Last edited by ajk48n on Fri Nov 02, 2018 8:39 am, edited 2 times in total.
ajk48n
 
Posts: 103
Joined: Sat Jun 06, 2015 3:48 am
Location: Sydney

Re: Scatter points on surface

Postby ajk48n » Mon Oct 29, 2018 8:16 am

This has been updated to remove a bit of the bias in how the points are scattered. They should be less biased towards the center of the primitives now.
ajk48n
 
Posts: 103
Joined: Sat Jun 06, 2015 3:48 am
Location: Sydney

Re: Scatter points on surface

Postby ajk48n » Fri Nov 02, 2018 8:39 am

Updating again to more randomness in point placement. The tox will now automatically convert your input into a mesh which helps with the randomness
ajk48n
 
Posts: 103
Joined: Sat Jun 06, 2015 3:48 am
Location: Sydney

Re: Scatter points on surface

Postby matthewwachter » Fri Nov 02, 2018 3:16 pm

Thanks for sharing! This is a great tool.
matthewwachter
 
Posts: 273
Joined: Fri Jul 08, 2011 3:18 pm
Location: Los Angeles

Re: Scatter points on surface

Postby ajk48n » Fri Nov 02, 2018 6:41 pm

Glad you like it!
ajk48n
 
Posts: 103
Joined: Sat Jun 06, 2015 3:48 am
Location: Sydney

Re: Scatter points on surface

Postby ben » Mon Nov 19, 2018 9:52 am

Nice, very handy!
User avatar
ben
Staff
 
Posts: 2362
Joined: Thu Nov 08, 2007 6:55 pm
Location: Toronto

Re: Scatter points on surface

Postby riorokoko » Sat Dec 01, 2018 10:07 am

Thanks!!great work! is there a way to get the normals of the points(if they have)?
riorokoko
 
Posts: 1
Joined: Mon Aug 06, 2012 7:05 pm

Re: Scatter points on surface

Postby ajk48n » Sun Dec 02, 2018 6:47 am

It would hopefully be possible, although I haven't been able to find a way to sample the incoming geo's normals to place them on the newly created points. I'll have to take another look into that
ajk48n
 
Posts: 103
Joined: Sat Jun 06, 2015 3:48 am
Location: Sydney


Return to Shared .tox Components

Who is online

Users browsing this forum: No registered users and 2 guests