I am trying to use the DrawFixed node with a polygon mesh, to render some pictures or video on screen, but in other shapes than pure rectangles.
When I change the shape of my polygon, the texture gets deformed due to interpolation. I was hoping to be able to use the Address (EX9 SamplerState) node to disable this interpolation, so the polygon would just ‘cut out’ a smaller part of the texture, without deforming it.
So far no luck. Is this possible (with the DrawFixed node), and if so, which settings should I give the Address node in order to achieve this?
Thanks for your ideas…
can you please post the patch explaining the problem
Here is a patch explaining the issue.
drawfixed+address test.v4p (9.3 kB)
i think its not possible with the address-node
try the TexCoords at the pin source e.g. position in space
the Address doesn’t help you at all here.
i would go for a solution based on Blend (EX9.RenderState) with Draw Mode set to ‘Multiply’
i had to recreate the Polygon (EX9.Geometry 2d) because the code was broken:
drawfixed+address test.v4p (9.5 kB)
I’m not sure about understanding well your troubles.
Anyway here ids a patch which illsutrates Multiply blend mode.
Hope it gonna help you
Multiply.v4p (6.6 kB)
Thanks everyone for the valuable input.
I will definitely take a look at TexCoords, a node I didn’t know yet…