abhi12344 Posted April 3, 2018 Share Posted April 3, 2018 Hello.I am a new user to Houdini. I imported an unwrapped model (In UDIM format) . I then Painted on the object in MARI for preparing it to scatter on the locations where there is color(Black). I Imported them in Houdini and got them on my object using attribute to MAP. My object now has the paint. I want to know how do I scatter on the specific black color only and nowhere else? Quote Link to comment Share on other sites More sharing options...
jamesr Posted April 3, 2018 Share Posted April 3, 2018 In scatter sop you can turn on "Density Attribute", and set it to an attribute that will drive the density. By default this is set to "density" but you could use color also. But since you painted black as the color you want, you need to use a complement to get it to put points where you want. Complement is 1 - (val). So since you have black as the area you want to fill, and black = 0, 1 - 0 = 1, so there will be full density there. We may as well just bind it out to density while we're at it, too. Quote Link to comment Share on other sites More sharing options...
abhi12344 Posted April 4, 2018 Author Share Posted April 4, 2018 9 hours ago, jamesr said: In scatter sop you can turn on "Density Attribute", and set it to an attribute that will drive the density. By default this is set to "density" but you could use color also. But since you painted black as the color you want, you need to use a complement to get it to put points where you want. Complement is 1 - (val). So since you have black as the area you want to fill, and black = 0, 1 - 0 = 1, so there will be full density there. We may as well just bind it out to density while we're at it, too. Thank you James. It works but just having one problem. When you use copy to points SOP, and try to scatter geometry of a bit High density scale(from the scatter SOP) like 5000 instead of 10 the system crashes again and again. How can this be fixed without making the file heavy? My system config is Intel® Xeon(R) CPU E3-1240 v5 @ 3.50GHz × 8 with a 62GB RAM and 8GB Quattro M4000 Nvedia Graphic card. Quote Link to comment Share on other sites More sharing options...
jamesr Posted April 4, 2018 Share Posted April 4, 2018 In the Copy SOP, try turning on the "pack and instance" toggle. Packed geometry is much more efficient. Just note that if you're not rendering in mantra, it will need to be unpacked before rendering. Quote Link to comment Share on other sites More sharing options...
abhi12344 Posted April 4, 2018 Author Share Posted April 4, 2018 43 minutes ago, jamesr said: In the Copy SOP, try turning on the "pack and instance" toggle. Packed geometry is much more efficient. Just note that if you're not rendering in mantra, it will need to be unpacked before rendering. Thank you James! It works fine!! Gracias! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.