Forum

Convert circle x/y position to match renderer buffer dimensions (noob)


#1

Hi,

I have a patch that creates 50 circles with random coordinates and size. The circle x/y positions range from -0.5 to 0.5 whereas the GDI renderer buffer width and height are measured in pixels;
247, 199 respectively. How can I directly match the circle coordinates with the renderer units?

My patch is here:

randomCircles.v4p (7.2 KB)


#2

you can change value ranges with a Map node:

randomCircles2.v4p (12.0 KB)

also make sure you know all these nodes:

what do you want to do with the pixel coordinates? often it makes more sense to stay in normalized coordinates…