Timeline for Godot label Attached to 3D object gets larger when moving away from the object
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 27, 2021 at 21:00 | history | tweeted | twitter.com/StackGameDev/status/1431360888842461184 | ||
Jun 3, 2021 at 2:39 | history | became hot network question | |||
Jun 2, 2021 at 21:19 | vote | accept | Mr.Smithyyy | ||
Jun 2, 2021 at 20:57 | answer | added | Theraot | timeline score: 3 | |
Jun 2, 2021 at 20:33 | comment | added | Mr.Smithyyy | @DMGregory That actually works great, however the issue is now a matter of animating font size which as I just saw on a GitHub issue now, it seems it's not feasible due to having to use integer sizes which is choppy looking. If you want to write up your comment as answer I would gladly accept it otherwise I can do it. | |
Jun 2, 2021 at 19:29 | history | edited | Mr.Smithyyy | CC BY-SA 4.0 |
deleted 2 characters in body
|
Jun 2, 2021 at 19:11 | comment | added | DMGregory♦ | You want the distance to the cube, not the distance to the label. The label is not getting further away, and that's the problem you're trying to solve by using the distance to the cube. | |
Jun 2, 2021 at 19:05 | comment | added | Mr.Smithyyy | @DMGregory I kinda have tried to but it's not very easy to compute the distance. I asked a question previously about this and used it to get the distance between the camera and the label but I'm not sure how to actually utilize it since the distance will change when the user looks in any other direction other than straight at the label. | |
Jun 2, 2021 at 18:54 | comment | added | DMGregory♦ | It looks like your text size is measured in screenspace dimensions, not world space. So as the worldspace cube recedes into the distance and gets smaller, the label does not shrink along with it - it still occupies the same number of on-screen pixels, making it look like it's growing relative to the cube. Have you tried resizing your label inversely proportionate to its distance in front of the camera? | |
Jun 2, 2021 at 18:38 | history | asked | Mr.Smithyyy | CC BY-SA 4.0 |