aachman98 / Sorcar

Procedural modeling in Blender using Node Editor
https://aachman98.itch.io/sorcar
GNU General Public License v3.0
1.16k stars 112 forks source link

Can we use Float Random to have Multiple Values ... #16

Closed enzyme69 closed 5 years ago

enzyme69 commented 5 years ago

... for Extrusion?

I tried this but it does not quite work the way I would imagine. Perhaps there is a trick to make it so that Extrusion can have random multiple values?

Screen Shot 2019-04-30 at 14 39 42
aachman98 commented 5 years ago

This is because the float node is generating a random value and sending that value to extrude node, which in turn is operating on each face simultaneously. This results in a random extrude value which is common for each face. (changing seed will change extrusion level equally for all faces) If you want to extrude each face differently, then you would have to operate on them individually. Once I am able to create a "For Each Component" node, you can use it to apply same set of operations on each component separately.

BennyGovaerts commented 5 years ago

Rnd scale Array pattern 001 Can something like this be done in the future with The for each component node

aachman98 commented 5 years ago

That's exactly the plan!

BennyGovaerts commented 5 years ago

Excellent , thanks for the feedback

BennyGovaerts commented 5 years ago

Another solution for the moment if you need some random is to use the Addon Mextrude / Plus

image

aachman98 commented 5 years ago

"For Each Component" node

aachman98 commented 5 years ago

Added for-each loop nodes (commit: 27dca091ff0ceb1fe0c7eeab54392006603ab3f5) Now you can perform ops individually on faces Screenshot (13) Note: The nodes might be unstable and result in infinite loop or just might not work as expected (maybe even crash Blender). It's best to use a single instance of each node in your network for now.

aachman98 commented 5 years ago

Rnd scale Array pattern 001 Can something like this be done in the future with The for each component node

Screenshot (16)