Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.
Search the Community: Showing results for tags 'LEGO'.
Found 2 results
Hi all, I made a quick "cover surface with single-square lego pieces" for a character at work and I wanted to develop it a bit more now that I have some downtime. The idea is to have any surface, static or animated covered in blocks, with some height variation here and there. Initially I was dealing with the height in a rather manual fashion, reading in a texture height map and manually selecting grey value ranges with group nodes to separate out each level before displacing them along a normal. These points then all got merged back together before being plugged into my final Copy node.. The results aren't bad, albeit a bit slow (see my screenshot), but I'd like to be able to choose how many levels I want with a slider & have this all filter through nicely. Here's what I have figured out - load a height map texture in a vop, with a bit of fit range, divisions and value flooring assign each point a "height level" attribute. Ascertain max height level value (I just promoted my point attr to a detail attr using a max filter, or i suppose i could just take my input value!). Now .. what I'm a bit stuck with is how to do what I was doing before - selecting all the points within certain ranges, displacing them upward...selecting next lot, displacing them up... and then finally merging my points back into one node before Copying! I'm sure its because I'm not thinking in a Houdini way still (Maya user here). What are my options for looping through? Or is my approach not the most efficient? I started looking at the "add point" node in Vops, is this a good road to take? The For loop structure doesn't work how I imagined (for i=0; i<max height level; i++ <-being able to do this would be amazing...I know it's possible......somehow..) Oh - and thanks in advance for any pointers!