Same size billboards from a camera (geometry nodes)


Hello. I am currently trying to create a “billboard” that not only rotates to face the camera but also appears the same size regardless of its distance from the camera. My approach involves using “Rotate Vector” with the camera’s rotation to establish the camera’s local space. Then, I calculate the Z-axis distance between the instance and the camera (in the local space) and double it to apply as the instance’s scale. This, in theory, should make the instance appear uniformly scaled from the camera’s perspective.

However, as shown in the image, the red-bordered and blue-bordered planes are not uniformly scaled as expected. What could be the issue with my node setup?
Help very appreciated.

(I’m new to this forum and not a native English speaker, so I’m using ChatGPT as a translator. I apologize if my writing is difficult to understand)

Hello,I’m not completely sure about the issue, but I think it cannot work properly unless you account for the camera’s focal length…

There is an addon that load images and make them fit the camera’s frame regardless of the distance to the camera, you might look into it and try to dissect the part that manage the size of the planes and eventually convert that into nodes …

Good luck !

2 Likes

Hey, you can try this setup:

3 Likes

Ohhh It worked perfectly in my project as well :star_struck: :star_struck: Thank you so much for answering!

1 Like