Texture nodes breaking instancing?

Post your questions here and we'll all try to help.
Post Reply
JBroadway
Posts: 14
Joined: Wed Nov 29, 2023 07:17

Texture nodes breaking instancing?

Post by JBroadway »

I have rectangle going into a transform node, and then a linear node going into the translation input. Instancing works as intended and the rectangle is duplicated.

However if I convert that shape to a texture (or use a Texture2D node like crop) then send it into the transform node, instancing no longer works. Furthermore, disconnecting the texture node and re-connecting it in the original configuration no longer produces an instanced output.

Is this a bug?

Video example

tijnisfijn
Team Resolume
Posts: 311
Joined: Fri Dec 06, 2019 00:01

Re: Texture nodes breaking instancing?

Post by tijnisfijn »

Hi Man, I am getting your confusion but it is working. The big differents is the shape system will count in relative numbers. So in case of a 1920×1080 resolution the shape system will go from x = -1,777778 to 1,777778 and y = -1 to 1. And if you use a texture, wire will count in pixels, so that the translation will go from x = -960 to 960 and y = -540 to 540. So in your example that means that the textures only move one pixel Max so you don't see the movement.

I made you a little patch with some explanation. I hope this helps.

Wire Patch Attached
--begin-wire-patch--
3250.3oc6bs0aiabE9uBgdouHRL2uruIKYWjh1zhlEnIXgQ.kHkManHUIorWmf7eumYnjHk0HJJeIqzlMKht4yLbly46bcNj+1fY4YYwypRxyJG7gO8aClWju.9.kLbP9ppkqpPCtc3fpbyuwFNHIq9m98gMjRGNXYXUUbQVCoB2jxGNnHtLOck4BtO03coFuYMzPoZ3fY2GBK4zmMyntn8YyqZeZ0.s4oo0bhcoV6fSPVuf2gRF147ljEE+4iRnb3fxXmWegiqur+RBoadqb+k.ropJByJSC2aQv1mkwQt3AbXqEVtD1GElYYK0L358XRT086Ns6uJ3BmSKZel.2sPPr+T5lEv36SoxIe8Papsju6DyUNVrtkXb2LfCJFbrj0NmXWrAs6UK1oNo.4dAq2adEXmTJbHx1R5tKAA1sz8PrAgvs7P3lIKjNVI7F73sqG0+rHJtn1VBngB7ZfIxTvecQbU3fO7aCBWUceNPwfAf0hvp36xKdZvGxVklNbPT7xz7mVDmU8wvh6hqLzOEV+ytul9rvEwvm9OIEwv2dHtn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0DJc6AUtwiEiqCv7s.DvHhiijhy3eMWgTA+8+YjAlKCDDBecSbt9TYHABPqCIjTEQct93wfbl1fJBwq3rWoBNX3D3t.9b2CCPEfHfC0dbRYmoG.qP9sxVc7xV4nT8ZY.XfCuapkBNOPC5c8nm+NyqYE4Kdj5R7khS3eHGbtB9gWDGlUV6mMYt0e7ifHwDSlwsqWnWwFSUCWSUoW7mCmUk9T8gXBKEub6HK7JmUDGmE38S4q9KoodYwwQVh1NGd+nyA+wGgUCvzKs+Z8i.NO6y.NaTh+j2i.qwaZr2gRQkfAmOPv+TtrtQH2h8ACcARJX0hs496Zys5uKiibNt2FGuHiEX8ybgUEy13NYUh8lmAFdg8ggmk8fE3.HlbHVos2Py9fy8.Mr6EPV9Ve4CG7q4lGDePJ+ThILbFQRf3zIhcuUI+j41K2paXMca8qYiIwFzpMiFaNt1BxXKdns3u1imvd7R1i30dr+1luw1TR1dCz1Cm1Vv01l416qB6s5q8VewdqlYu6Gs22+1GkG1mtK1G7T1mbXCMOe2fD7++.B6ukCB
--end-wire-patch--

JBroadway
Posts: 14
Joined: Wed Nov 29, 2023 07:17

Re: Texture nodes breaking instancing?

Post by JBroadway »

Ahh this is very helpful thank you.

I believe the transform node holding its texture2D state even after reconnecting it to a Float is a bug no?
Once the transform node is re-connected to the linear node the transform visual out should reflect that without having to re-add the transform.

Please lmk if I'm mistaken.

tijnisfijn
Team Resolume
Posts: 311
Joined: Fri Dec 06, 2019 00:01

Re: Texture nodes breaking instancing?

Post by tijnisfijn »

Yes, I guess you're right about that one that should not be like that I think

Christoph
Posts: 165
Joined: Wed Jun 02, 2010 09:58

Re: Texture nodes breaking instancing?

Post by Christoph »

Yes the transform-node not switching back to shape-mode is not expected behaviour, thanks for reporting that. This should be fixed in one of the next updates.

In the meantime I noticed it seems to only break if you feed a single float into the translation-inlet (which expects a float2 but can automatically convert a single float to a float2). Little tip - you can also set the linear-node to output float2, then you have individual control over the range on both axis:
Screenshot 2023-12-20 170212.png
Screenshot 2023-12-20 170212.png (28.51 KiB) Viewed 12169 times

JBroadway
Posts: 14
Joined: Wed Nov 29, 2023 07:17

Re: Texture nodes breaking instancing?

Post by JBroadway »

Christoph wrote: Wed Dec 20, 2023 17:03 Yes the transform-node not switching back to shape-mode is not expected behaviour, thanks for reporting that. This should be fixed in one of the next updates.

In the meantime I noticed it seems to only break if you feed a single float into the translation-inlet (which expects a float2 but can automatically convert a single float to a float2). Little tip - you can also set the linear-node to output float2, then you have individual control over the range on both axis:

Screenshot 2023-12-20 170212.png
Thank you for this, looking forward to the update.

Post Reply