Grasshopper

algorithmic modeling for Rhino

Hello! I've recently started experimenting with the image sampler... I'm trying to select certain points using a pattern-image (so I can then create a 3d grid out of them). I've managed to do it in xy plane but i'm having trouble figuring out how to convert the xz points to uv coordinates to match my image sampler.

I've used circles and colors to visualize the pattern. The first image is what i need and the second is what i get!

any thoughts????

Views: 2569

Attachments:

Replies to This Discussion

-The image sampler needs 2 coordinate numbers to sample pixel information from a bitmap.

-Point generates 3 numbers (X,Y,Z)

-Image sampler takes first two numbers and ignores the third one, so it reads X,Y. Since your point grid is in XZ plane, Y always returns as 0.

- Simply extract XZ coordinates of each point and feed those in to the image sampler.

Attachments:

After searching, i figured that this was my problem, i just didn't know how to "simply" extract the coordinates i needed! Thank you!!!

Check this as well.

You are better off resetting your image sampler's domain range to always 0 to 1 so that you can change  the size of point grid whatever you want by remapping your point coordinates 0 to 1 on XY plane.

Attachments:

That's actually really helpfull since i need to apply the def to a number of images of different resolution! And it works perfectly! Thank you for the twist!

(p.s. i love your white grouping color!)

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service