So after to much trial and error, I’ve managed to not just get an image to project on top of a mesh, but to also zoom in or out depending on the distance between the object and the camera. But now I’ve stumbled upon a roadblock. I am trying to get the image to move over the screen with the object, as well as scaling from the centre of the object, but I can’t sseem to get it to do what I’m after. I’ve tried connecting the highlighted part into the ‘Offset XY Texturesize Z (V3)’, hoping that the centre point of the image, which it should scale off of and follow, would move with the objects on-screen coordinates, with the value underneath being the resolution of the image, but all it seems to do is reset the scaling point to the top-left corner of the screen. I’m not really sure why this is happening.
Does anyone know of a way to accomplish this? Any advice would be welcome.
well… come to the forum. : )
that was quite a challenge. bit of googling and some math hacksh!t. that works to some degree. not sure if that is accurate enough for your application. vertex interpolator to make it fast.
you can preview anything to see what it outputs. you may have to calculate the aspect ratio and scale the uvs accordingly.
1 Like
Holy, that is exactly what I was after! Thank you so much. I have no idea how it works, but I’m definately gonna see if I can figure out the logic behind it, and play around with the numbers a bit. Thank you so much for your time.
1 Like