PDA

View Full Version : Controling Separate Surfaces



alanestrada
06-30-2017, 04:36 PM
Hello Everyone. It's been a long time.

I'm learning to code in processing, and while reading some tutorials, I did a script that creates 3D cubes depending on the color/brightness of an image. I did some tests, but now I would like to control the height of each cube separately, could be random, but I want them to grow at different rates. what would you suggest me to do?

Here's a render test I did.
https://www.youtube.com/watch?v=0ZSGI8C6hlo

daforum
06-30-2017, 04:52 PM
Your render test looks interesting.
Are you able to demonstrate how the script works ( tutorial )?

Sensei
07-01-2017, 12:38 AM
I guess, your script is Modeler Lscript?
You should make weight map, and assign index to each of these boxes. Increment index for each box.
Then in Displacement Node Editor get weight map value and plug to randomizing node, and output use for changing Y position Y (for example).

I used similar method in video tutorials of TrueArt's TrueTypeText (http://www2.trueart.pl/?URIType=Directory&URI=Products/Plug-Ins/TrueTypeText) plugin:
https://www.youtube.com/watch?v=Ow7Um2ks0Ek
You can see how each letter, each column, each row, each word can be transformed thanks to Weight map.

alanestrada
07-01-2017, 11:18 PM
Your render test looks interesting.
Are you able to demonstrate how the script works ( tutorial )?

Yes, the tutorial is located here: https://www.funprogramming.org/153-Rendering-Processing-shapes-in-Blender.html

alanestrada
07-01-2017, 11:23 PM
The script was done in processing, it reads an image brightness per pixel and creates cubes. You just gave me an idea, I'll create a separate script to create a displacement map, so I can get separate heights from each cube. Thanks a lot Sensei!

daforum
07-06-2017, 02:55 AM
Yes, the tutorial is located here: https://www.funprogramming.org/153-Rendering-Processing-shapes-in-Blender.html

Thank you for the tutorial link :thumbsup:

alanestrada
07-06-2017, 10:49 AM
Sure, no problem. Would love to see your tests!